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]

RE: <xsl:while>


<xsl:while> doesn't make sense unless variables can be updated, which they
can't: your <xsl:variable> element is illegal.

Saxon does have a <saxon:assign> and <saxon:while> pair of instructions, but
it's a good idea to learn to use XSLT "properly" before you resort to them.

> -----Original Message-----
> From: MarkH@i2.co.uk [mailto:MarkH@i2.co.uk]
> Sent: 25 May 2000 10:19
> To: xsl-list@mulberrytech.com
> Subject: <xsl:while>
> 
> 
> My second non newbie question (see also "URL decomposition").. 
> 
> Is there a way (eg using <xsl:for-each>) to loop on a test 
> condition such
> as...
> 
>         <xsl:while test="contains($xslfile,'/')">
>           <xsl:variable name="xslfile"><xsl:value-of
> select="substring-after('/',$xslfile)"/></xsl:variable>
>         </xsl:while>
> 
> <xsl:while> is my invention and not a feature of XSLT
> 
> Thanks
> 
> Mark
> --
> Agile HTML Editor
>   Agilic Corporation
>     http://www.agilic.com
> 
> 
>  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]