This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: xsl:variable with expr


You have somehow got hold of a draft version of the XSLT spec that was
current for a few months in 1999. The xsl:variable element expects an
attribute called "select". At one stage, in the draft specs, it was
called "expr".

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com 

> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com 
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of 
> sanghamitra das
> Sent: 09 July 2002 05:28
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] xsl:variable with expr
> 
> 
> 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
> 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]