B
bjam
Hi, I am trying to have a style sheet read an xml file that has some
tagged data inside of it that has the name of the section the syle
sheet should process, does anyone know how I can do this?? Thanks
greatly for any help, I really appreciate it. Below is an example of
what I am describing.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="../xml/dqm_general.dev.xsl"?>
<perldata>
<arguments>
<test>TEST 0003</test>
<file>capacity_count.xml</file>
<xsl>dqm_general.dev.xsl</xsl>
</arguments>
Now further on in the xml document there is a tagged section called
item with a key value = "TEST 003" in the xml as such below
<item key="TEST 0003"> ... </item>
I want the style sheet to be able to read the <argument>/<test> tag in
order to know which section to match / process. I basically want the
template match and select commands to use this TEST 003 value at
processing time. Any ideas? Thanks again for your help with this.
<!-- apply templates for the test found in test tag -->
<xsl:apply-templates select='hashref/item @key="{arguments/test}"'/>
<!-- test template to process -->
<xsl:template match='hashref/item[@key={arguments/test}]'>
tagged data inside of it that has the name of the section the syle
sheet should process, does anyone know how I can do this?? Thanks
greatly for any help, I really appreciate it. Below is an example of
what I am describing.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="../xml/dqm_general.dev.xsl"?>
<perldata>
<arguments>
<test>TEST 0003</test>
<file>capacity_count.xml</file>
<xsl>dqm_general.dev.xsl</xsl>
</arguments>
Now further on in the xml document there is a tagged section called
item with a key value = "TEST 003" in the xml as such below
<item key="TEST 0003"> ... </item>
I want the style sheet to be able to read the <argument>/<test> tag in
order to know which section to match / process. I basically want the
template match and select commands to use this TEST 003 value at
processing time. Any ideas? Thanks again for your help with this.
<!-- apply templates for the test found in test tag -->
<xsl:apply-templates select='hashref/item @key="{arguments/test}"'/>
<!-- test template to process -->
<xsl:template match='hashref/item[@key={arguments/test}]'>