Subject: Re: [xsl] Comparing with a variable position From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Thu, 10 Oct 2002 09:18:09 +0200 |
----- Original Message ----- From: "Joerg Heinicke" <joerg.heinicke@xxxxxx>
Thank you Jörg, this seems elegant, two questions though.
<xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:template>
1) Why the above template rather than the simpler <xsl:template match="container">, I'm especially puzzled by the <xsl:copy> (I'm a newbie).
<xsl:template match="container/text()"> <sub-container> <xsl:value-of select="."/> </sub-container> </xsl:template>
<xsl:template match="separator"/>
If "thus several node are possible" instead of text "mixed content"
2) Well I do not know if it is "instead", I meant "or". Is mixed content contardictory with several nodes (text and elements)?
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Comparing with a variable, Louis Meigret | Thread | [xsl] XSL with multiple levels, Adam Cohen |
RE: [xsl] quoted string in select, Jarno . Elovirta | Date | RE: [xsl] Abbreviated form of XSLT?, Eric van der Vlist |
Month |