Hey group,
Trying to come up with key declarations for the below XML trees (which
are both contained within $variables
At the end of the day, I need output that resembles
<output type="Cognitive" count="50" />
<output type="Physical" count="26" />
<output type="Visual" count="34" />
<output type="Hearing" count="90" />
<output type="Mental" count="11" />
<output type="None" count="1" />
The count, in this case, is the amount of times a Record/disabPrimary
corresponds to any disabilities/option/@oldID. These must then be
grouped by their @type and appear only once in the table.
Sorry to post so much but in trying to score for brevity I have
obviously overcorrected and gone straight to muddled ambiguity in
previous posts. Please let me know if there is anything too vague that
I may elaborate upon.
---
My current XSL has the problem of not using key in a meaningful way
(always returns 0) and also produces a row for each Record, although
it does order them by type.
XSL goes something like:
<xsl:key name="options" match="option" use="@type" />
<xsl:key name="oldID" match="Record" use="disabPrimary" />