Trouble with XT??
Subject: Trouble with XT?? From: Yann Desnoues <Yann.Desnoues@xxxxxxxxxx> Date: Thu, 16 Dec 1999 12:24:05 +0100 |
Hello xsl-list men,
I posted a trouble on LotusXSL yesterday and I switched on XP/XT.
Now I have another trouble....
Here is the style sheet:
I pass a parameter in a template and wants to reuse it in an name attribute
but it doesn't work.
(Look at the style sheet below).
XT doesn't understand the $v1. It doesn't understand this is a variable.
(But LotusXSL works fine (as I was waiting) in this case).
Please explain me why. (I read the spec but I don't understand why
it doesn't work).
Thanks a lot.
Yann Desnoues.
XML DOC:
<notes>
<note>a</note>
<note>b</note>
</notes>
XSL:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:xt="http://www.jclark.com/xt"
extension-element-prefixes="xt">
<xsl:output method="text"/>
<xsl:strip-space elements="*"/>
<xsl:template match="notes">
<xsl:call-template name="t">
<xsl:with-param name="v1">called</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template name="called">
pipo display
</xsl:template>
<xsl:template name="t">
<xsl:param name="v1">v1def</xsl:param>
<xsl:choose>
<xsl:when test="1 > 2">
<xsl:call-template name="$v1"/> <!-- this causes a
trouble to XT -->
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="{$v1}"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
How to get Layout--Newbie, John . Cyriac | Thread | Re: Trouble with XT??, David Carlisle |
Re: test and variable. LotusXSL cra, David Carlisle | Date | Re: <xsl:copy-of> question, David Rocher |
Month |