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: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


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