posted 24 years ago
Hi Dave,
I am posting both xml file and xsl file which will produce
the result you want. This is based upon what Mapraputa has said.
XML File: "1.xml"
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="1.xsl"?>
<A name="alpha">
<B id="0">zero</B>
<B id="1">one</B>
</A>
XSL File: "1.xsl"
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<xsl:apply-templates />
</html>
</xsl:template>
<xsl:template match="A">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="B">
<P>
<xsl:value-of select="../@name"/> :
<xsl:value-of select="."/>
</P>
</xsl:template>
</xsl:stylesheet>
Regards
Sanjay