RE: [xsl] Can I use a boolean variable in an xsl:if test

Subject: RE: [xsl] Can I use a boolean variable in an xsl:if test
From: "Pawson, David" <David.Pawson@xxxxxxxxxxx>
Date: Wed, 9 Feb 2005 11:06:12 -0000
    -----Original Message-----
    From: David Carlisle 

I'd appreciate some examples showing burned fingers if anyone
has time.

regards DaveP

    > I find that I stay out of hot water with xsl:value-of if I just 
    > remember that it returns a string.
    beware though that that will get you burned again when you 
    start using
    XSLT2 scented water.
    xsl:value-of returns a text node with string value the 
    string value of the expression. This is subtly or not so 
    subtly different from a string.
    It doesn't make so much difference in XSLT1 as the only way 
    to carry strings around is to put them in text nodes, but 
    in xpath2 you can have sequences of strings and sequences 
    of text nodes (and sequences that contain both strings and 
    text nodes) the rules for the two cases (and in particular 
    whether spaces are automatically inserted between adjacent
    items) are different on the two cases.
    This e-mail has been scanned for all viruses by Star. The 
    service is powered by MessageLabs. For more information on 
    a proactive anti-virus service working around the clock, 
    around the globe, visit:


NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227


Current Thread