[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Trouble with XT??

Subject: Trouble with XT??
From: Yann Desnoues <Yann.Desnoues@xxxxxxxxxx>
Date: Thu, 16 Dec 1999 12:24:05 +0100
yann cyriac
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 &gt; 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.