W
wardellcastles
Is it possible to acccess a DOM object of the input XML inside of the
XSLT script?
I am planning to use <msxsl:script ..> with the C#.NET language.
What I need to do is at the beginning of the xslt to access a function
that will iterate over the XML and count elements within the XML, prior
to the elements themselves being iterated over in the XSLT.
For example from this input:
<Report>
<States>
<State>Florida</State>
<State>Georgia</Georgia>
</States>
</Report>
I need to produce a report like this:
The following 2 states are in the Southeastern US
Florida
Georgia
As you can see, to produce that first line, "The following 2 ..."
I need to count the number of <State> elements before they are actually
referenced in the XSLT.
Any ideas will be appreciated.
XSLT script?
I am planning to use <msxsl:script ..> with the C#.NET language.
What I need to do is at the beginning of the xslt to access a function
that will iterate over the XML and count elements within the XML, prior
to the elements themselves being iterated over in the XSLT.
For example from this input:
<Report>
<States>
<State>Florida</State>
<State>Georgia</Georgia>
</States>
</Report>
I need to produce a report like this:
The following 2 states are in the Southeastern US
Florida
Georgia
As you can see, to produce that first line, "The following 2 ..."
I need to count the number of <State> elements before they are actually
referenced in the XSLT.
Any ideas will be appreciated.