I'm creating questionnaires using XML and XSLT. The XML looks something like this: <survey>
<section type="labeltop"> <question type="text"> <text>Displayed text for question?</text> </question>
<question type="checkbox"> <text>Displayed text for question?</text> <choice value="answer 1">Answer 1</choice> <choice value="answer 2">Answer 2</choice> <choice value="answer 3">Answer 3</choice>
</question></section>
<section type="grid"> <text>Section instructions</text>
<question type="radio"> <text>Displayed text for question?</text> <choice value="1" /> <choice value="2" /> <choice value="3" /> <choice value="4" /> <choice value="5" />
</question>
<question type="radio"> <text>Displayed text for question?</text> <choice value="1" /> <choice value="2" /> <choice value="3" /> <choice value="4" /> <choice value="5" />
</question></section></survey> Currently, I'm numbering the questions using <xsl:number count="question" level="any" format="1. "/>. The type="grid" for section indicates that all of the questions are scale questions that are displayed in a grid with the scale listed above the entire grid, instead of separately for each question. My dilemma is this, I would like to number the "labeltop" questions normally, but label the entire section as one question for "grid", then go back to normal numbering for any questions following the grid (see below for an illustration). Any ideas on how to do this in XSLT? 1. Normal question 2. Normal question 3. Grid
a. Scale question b. Scale question
4. Normal question Thanks for any help anyone can give me. Michelle