G
gregmcmullinjr
Hello,
I am new to the concept of XSL and am looking for some assistance.
Take the following XML document:
<binder>
<author>Greg</author>
<notes>
<time>11:45</time>
<content>
This would be some content... every once in a while you may run
into
<heading>A Heading!</heading>
Which could be followed by more content... and possible
<heading>More Headings.</heading>
and even more content!
</content>
</notes>
</binder>
What I would like to do is to be able to extract the value of the
<content> node, and have special formatting for the headings.
When I do something like:
<xsl:value-of select="content" />
I receive the data within <content> - including the values of the
nested <heading> nodes, but what I really want to be able to do is do
is to have XSLT read the text of the <content> node until a <heading>
node is reached, at which point the value of the heading node is
formatted correctly and displayed, and then continued by the text of
the <content> node after the <heading> until another <heading> is
reached... etc etc...
Could someone give me some pointers as to how this can be accomplished?
I am new to the concept of XSL and am looking for some assistance.
Take the following XML document:
<binder>
<author>Greg</author>
<notes>
<time>11:45</time>
<content>
This would be some content... every once in a while you may run
into
<heading>A Heading!</heading>
Which could be followed by more content... and possible
<heading>More Headings.</heading>
and even more content!
</content>
</notes>
</binder>
What I would like to do is to be able to extract the value of the
<content> node, and have special formatting for the headings.
When I do something like:
<xsl:value-of select="content" />
I receive the data within <content> - including the values of the
nested <heading> nodes, but what I really want to be able to do is do
is to have XSLT read the text of the <content> node until a <heading>
node is reached, at which point the value of the heading node is
formatted correctly and displayed, and then continued by the text of
the <content> node after the <heading> until another <heading> is
reached... etc etc...
Could someone give me some pointers as to how this can be accomplished?