|
Subject: [xsl] trying to figure out handling namespace issues From: Fred Christian <fredc@xxxxxxxxxx> Date: Fri, 12 Dec 2008 12:20:25 -0800 |
Basically I have this xsl: <xsl:for-each select="child::*[1]"> 3)<xsl:value-of select="name(.)"/># </xsl:for-each> <xsl:for-each select="div"> 4)<xsl:value-of select="name(.)"/># </xsl:for-each>
and this output: 3)div#
_________ Main XML file _________
<kbooks>
<EOUProblems>pset:7</EOUProblems>
</kbooks><xsl:template match="kbooks"> <root> <xsl:apply-templates select="EOUProblems"/> </root> </xsl:template>
<xsl:template match="EOUProblems">
<xsl:variable name="psetDoc">psettest7.xhtml</xsl:variable>
<xsl:for-each select="document(string($psetDoc))">
<xsl:for-each select="child::*[1]">
<xsl:for-each select="child::*[1]">
<xsl:for-each select="child::*[1]">
3)<xsl:value-of select="name(.)"/>#
</xsl:for-each>
<xsl:for-each select="div">
4)<xsl:value-of select="name(.)"/>#
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</xsl:template>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] complex numbering problem, Mukul Gandhi | Thread | Re: [xsl] trying to figure out hand, G. Ken Holman |
| Re: [xsl] complex numbering problem, Mukul Gandhi | Date | Re: [xsl] trying to figure out hand, G. Ken Holman |
| Month |