A
andrew_nuss
Hi,
I have simplified my DTD for the purposes of this question. Let's say
that I have the following tags: <section1>, <section2>, <section3>
with xsl that uses <xsl:template match="section1"> etc for each
section tag and corresponding <xsl::template match="blah"> for all of
the implied subtags.
Now, lets say I need to concatenate the results of 2 passes thru the
document, such that I (a) spit out some predefined HTML, (2) make a
pass thru the XML file using one interpretation of each section and
concatenate to the HTML already output, (3) spit out some more HTML,
(3) make a second pass thru the XML file using a different
interpretation of each section and concatenate to HTML already output,
and (4) spit out my final predefined HTML section.
My question is how with <xsl:template match ...> do I have different
xsl:template tags for the same sections and ask the transformation to
use the appropriate one. Can anyone give me some sample xsl code?
Thanks,
Andy
P.S. I'm wanting to identify my header sections and create a left nav
for the final HTML file, with the
left nav being the results of the first transformation and the content
being the result of the second transformation, all to the same output
HTML file.
I have simplified my DTD for the purposes of this question. Let's say
that I have the following tags: <section1>, <section2>, <section3>
with xsl that uses <xsl:template match="section1"> etc for each
section tag and corresponding <xsl::template match="blah"> for all of
the implied subtags.
Now, lets say I need to concatenate the results of 2 passes thru the
document, such that I (a) spit out some predefined HTML, (2) make a
pass thru the XML file using one interpretation of each section and
concatenate to the HTML already output, (3) spit out some more HTML,
(3) make a second pass thru the XML file using a different
interpretation of each section and concatenate to HTML already output,
and (4) spit out my final predefined HTML section.
My question is how with <xsl:template match ...> do I have different
xsl:template tags for the same sections and ask the transformation to
use the appropriate one. Can anyone give me some sample xsl code?
Thanks,
Andy
P.S. I'm wanting to identify my header sections and create a left nav
for the final HTML file, with the
left nav being the results of the first transformation and the content
being the result of the second transformation, all to the same output
HTML file.