xsl-list
[Top] [All Lists]

Re: [xsl] Use of data() function (was: Re: [xsl] [OT])

2008-03-01 11:22:44
Mukul Gandhi wrote:

  Hi

I think, as Mike explained, the above xsl:if instruction
checks for the effective boolean value of the expression,
data(@married) to decide, whether contents of xsl:if have
to be generated.

  Yes.  If it has been declared as a xs:boolean (and been
validated), the EBV of the expression will be the value of
the boolean.  If the expression is a node (for instance
@married), the EBV is false iff this node set is empty.

(I am a bit curious why such a semantic is being designed
into the language?).

  Which semantics in particular?

  Regards,

--drkm





















      
_____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 
http://mail.yahoo.fr


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--