Subject: RE: QName as attribute value: how to be sure the prefix will be bound?
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Wed, 5 Apr 2006 20:01:52 +0200 (CEST)
|
Michael Kay wrote:
> Example: Constructing a QName-Valued Attribute
> http://www.w3.org/TR/xslt20/#creating-attributes
As simple as that. I don't find it :-(. Thanks.
In this example, a literal attribute is used. I personnaly used
xsl:attribute to create it, 'cause when we see the XSLT script as an
XML document, the 'data' element (in the example you pointed) has an
@xsi:type saying it is an integer:
<data xsi:type="xs:integer"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:namespace name="xs"
select="'http://www.w3.org/2001/XMLSchema'"/>
<xsl:text>42</xsl:text>
</data>
but its content is a complex content. What do you think?
Thanks for the response. Regards,
--drkm
___________________________________________________________________________
Nouveau : tiliphonez moins cher avec Yahoo! Messenger ! Dicouvez les tarifs exceptionnels pour appeler la France et l'international.
Tilichargez sur http://fr.messenger.yahoo.com
|