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

Subject: Re: [xsl] Use of data() function (was: Re: [xsl] [OT])
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Sat, 1 Mar 2008 19:22:07 +0100 (CET)
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

Current Thread