[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Hello,
[xsl] can't get variable content after call-template
Subject: [xsl] can't get variable content after call-template From: "Georg Hohmann" <georg.hohmann@xxxxxxxxx> Date: Mon, 26 Jun 2006 11:08:01 +0200 |
Hello,
I've gone through the "variable" section at http://www.dpawson.co.uk/xsl/sect2/N8090.html#d10293e40 but couldn't find a solution ... so here i'm back on the list.
I got a stylesheet like this ... <xsl:template match="//example" mode="multi"> <xsl:variable name="pmode">multi</xsl:variable> <xsl:call-template name="logfile"/> <xsl:apply-templates mode="multi"/> </xsl:template> ... <xsl:template name="logfile"> <xsl:choose> <xsl:when test="@pmode='multi'"> <xsl:text>mode: multi</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>mode: normal</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:template>
I want to use this for writing a logfile which content depends on the mode set by the "-im" option of saxon. But when i run this i get "Variable $pmode has not been declared". It seems like the variable declaration in the initial template is not recognized, but i don't know why. Any help is appreciated.
Regards, Georg
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] RE : Re: [xsl] Accessing , Michael Kay | Thread | Re: [xsl] can't get variable conten, David Carlisle |
RE: [xsl] Concatenating multiple va, Florent Georges | Date | Re: [xsl] can't get variable conten, David Carlisle |
Month |