xsl-list
[Top] [All Lists]

RE: [xsl] QName as attribute value: how to be sure the prefix will be bound?

2006-04-05 11:02:12
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 : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>