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

RE: xsl:function

Subject: RE: xsl:function
From: "Dominic Blythe" <dblythe@xxxxxxxxxxxxxxxxxx>
Date: Tue, 18 Jun 2002 14:34:41 +0100
RE:  xsl:function
> 
>  I'm trying to 
> > pad the string out to a given length to output in fixedwidth 
> > format. The <xsl:variable/> on line 5 doesnt seem to work - 
> 
> xsl:variable doesn't take an "expr" attribute, and Saxon 
> throws this out
> as a syntax error, so presumably the code you're showing us isn't the
> code you ran?
> 

actually the saxon documentation gives the following example for
xsl:variable...

<xsl:variable name="title">A really exciting document"</xsl:variable>
<xsl:variable name="backcolor" expr="'#FFFFCC'" />
<xsl:template match="/*">
    <HTML><TITLE<xsl:value-of select="$title"/></TITLE>
    <BODY BGCOLOR='{$backcolor}'>
    ...
    </BODY></HTML>
</xsl:template>
  
also, Saxon doesnt throw out 
<xsl:variable name="x" expr="&#32;&#32;&#32;&#32;......"/>

but it *does* throw out
<xsl:variable name="x" select="&#32;&#32;&#32;&#32;......"/>
as an *Unexpected EOF*


 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-2011 All Rights Reserved.