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

xsl:variable with expr

Subject: xsl:variable with expr
From: "sanghamitra das" <sanghamitra.das@xxxxxxxxxx>
Date: Tue, 9 Jul 2002 09:57:38 +0530
expr in xslt
Hi  , I am not able to run the following code it gives an error saying

 XSLT Error (javax.xml.transform.TransformerConfigurationException): "expr"
xsl:variable element!


Can anu tell me the reason.
sanghamitra




<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xalan="http://xml.apache.org/xslt"
>

<xsl:template match="/">
    <xsl:variable name="DebugOpts" expr="abc123"/>
    <xsl:call-template name="childTemplate">
        <xsl:with-param name="DebugOpts" select="$DebugOpts"/>
    </xsl:call-template>
</xsl:template>

<xsl:template name="childTemplate">
    <xsl:param="DebugOpts" select="."/>
    <xsl:text>The value of $DebugOpts is: </xsl:text>
    <xsl:value-of select="$DebugOpts"/>
</xsl:template>
</xsl:stylesheet>



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.