Subject: RE: [xsl] using different templates From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Tue, 3 Dec 2002 20:23:26 -0000 |
> > I did this and it didn't work... > <xsl:template match="/"> > <xsl:variable name = "sName"> > <xsl:value-of select="./uSession/sName"/> > </xsl:variable> > <xsl:variable name = "sid"> > <xsl:value-of select="./uSession/sid"/> > </xsl:variable> > </xsl:template> > What XML document did you apply it to and what output were you hoping it would produce? As written, it declares two variables, neither of which is ever referenced, and then exits. It's a no-op. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] using different templates, Joerg Heinicke | Thread | [xsl] mathematical functions - spec, bix xslt |
RE: [xsl] special character, Michael Kay | Date | RE: [xsl] Element creation, Zarella Rendon |
Month |