I am a total rookie so forgive my ignorance in advance.
I am (trying) to use XSLT to transform XML output from my Filemaker database so that I can re-import it (to synchronize the data after it has been copy-edited externally).
The whole business works fine with one exception. In the xml file, some text has visual tags such as <hirend="italic"></hi>.
The xslt does not bring this tagging into the transformed file. I have tried using
either one of these brings the text perfectly, but not the <hi> tags.
I'm using oXygen 12.2 and FMProAdvanced 11.
I used XSD.EXE to convert my schema to a C# class. The tool creates arrays to represent elements whose maxOccurs attribute is unbounded. Arrays are very limiting: you cannot add or delete items without a lot of shuffling.
Has anyone found a way around this limitation of arrays? For simple cases, I have converted the array to a List and back to an array, but that is only useful in the simplest of cases. Perhaps there is another tool that can convert my schema and use a list or some other suitable container (?).
There is no need for converting the list back to an array, you can replace it. I did that e.g. with GPX files (see also Bernie’s Trackviewer[^] where I use some more tricks for getting "nice" classes from an "ugly" XML schema).
The problem is that the tool (XSD.EXE) generates code that uses arrays. Arrays are limiting since it is difficult to add to or remove items from them. I was looking for another tool (that used a more appropriate collection) or an easy workaround.
Perhaps I could have phrased my question better. The limitation I mentioned was intended to mean that the tool generated arrays, not that of arrays themselves.
Even at this late stage, I appreciate your answer. However, I believe you misread the question.
<questionnaire><questionnaireid>1</questionnaireid><questionnairename>sample questionnaire</questionnairename><questions><questionqid="1"><qid>1</qid><questiondesc>Q1) Enter some free text</questiondesc><typeid>2</typeid><required>1</required><parentquestion></parentquestion></question><questionqid="2"><qid>2</qid><questiondesc>Q2) Select any of the choices</questiondesc><typeid>6</typeid><required>1</required><parentquestion></parentquestion><choices><choice>Choice1</choice><choice>Choice2</choice><choice>Choice3</choice></choices></question></questions></questionnaire><questionnaireresponse><questionnaireid>1</questionnaireid><userid>1234</userid><responses><responseqid="1"><answers><answer>This is some text</answer></answers></response><responseqid="2"><answers><answer>Choice 2</answer></answers></response></responses></questionnaireresponse>
How do you use xslt to add the response for this user to questionnare file and display as HTML form so in the above example the textbox will be populated with 'This is some text' and the dropdown will have 'Choice 2' selected?
Some example xslt implementing the above would be very helpful to get started. ideally I would like to do this in asp.net
Many thanks ! I don't know how I missed noticing that one, since Apress books have generally been very useful to me, and I thought I had searched their site.
It keeps me humble to think there's more bacteria in my gut than neurons in my brain, and that twenty trillion neutrinos pass through one hand a second, and that the average mattress contains 20 million bedbugs each of whom sh*ts once per hour.