essentially i have and xml file that looks like this
<?xml version="1.0"?>
<test parameters id="01"/>
<Test id="stuff">
<Container id="999" type="main">
<Step id="0"></Step>
<Step id="1"></Step>
<Step id="2"></Step>
<Container id="000" type="inside">more stuff here</Container>
<Step id="3"></Step>
</Container>
</Test>
i am passing the node of Container with id="999" into a transform and i want to treat that container different then Containers inside of it. i cannot figure out how to do this.
sample of what i am trying:
<xsl:stylesheet version="1.0" xmlns:xsl="
<xsl
utput method="html"/>
<xsl:template match="/">
<HTML>
<HEAD>
</HEAD>
<BODY>
<table>
<tr>
<td>Container</td>
<td width="" nowrap=""><xsl:value-of select="@id"/></td>
</tr>
<xsl:apply-templates select="Step | Container"/>
</table>
</BODY>
</HTML>
</xsl:template>
<xsl:template match="Container">
<tr>
<td>Container<td>
<td width="" nowrap=""><xsl:value-of select="@id"/></td>
</tr>
</xsl:template>
<xsl:template match="Step">
<tr>
<td>Step</td>
<td width="" nowrap=""><xsl:value-of select="@id"/></td>
</tr>
</xsl:template>
</xsl:stylesheet>
if i am not clear just ask and i will try to explain better what i am looking for
thanks so much...
i am very new to xml and xsl
<?xml version="1.0"?>
<test parameters id="01"/>
<Test id="stuff">
<Container id="999" type="main">
<Step id="0"></Step>
<Step id="1"></Step>
<Step id="2"></Step>
<Container id="000" type="inside">more stuff here</Container>
<Step id="3"></Step>
</Container>
</Test>
i am passing the node of Container with id="999" into a transform and i want to treat that container different then Containers inside of it. i cannot figure out how to do this.
sample of what i am trying:
<xsl:stylesheet version="1.0" xmlns:xsl="
<xsl
<xsl:template match="/">
<HTML>
<HEAD>
</HEAD>
<BODY>
<table>
<tr>
<td>Container</td>
<td width="" nowrap=""><xsl:value-of select="@id"/></td>
</tr>
<xsl:apply-templates select="Step | Container"/>
</table>
</BODY>
</HTML>
</xsl:template>
<xsl:template match="Container">
<tr>
<td>Container<td>
<td width="" nowrap=""><xsl:value-of select="@id"/></td>
</tr>
</xsl:template>
<xsl:template match="Step">
<tr>
<td>Step</td>
<td width="" nowrap=""><xsl:value-of select="@id"/></td>
</tr>
</xsl:template>
</xsl:stylesheet>
if i am not clear just ask and i will try to explain better what i am looking for
thanks so much...
i am very new to xml and xsl