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

Subject: RE: [xsl] QName as attribute value: how to be sure the prefix will be bound?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 5 Apr 2006 18:21:51 +0100
See

Example: Constructing a QName-Valued Attribute

at

http://www.w3.org/TR/xslt20/#creating-attributes

In this example everything is known statically, but pretty well everything
could have been dynamic, it would just make the example more complicated.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Florent Georges [mailto:darkman_spam@xxxxxxxx]
> Sent: 05 April 2006 18:08
> To: XSL Mulberry list
> Subject: [xsl] QName as attribute value: how to be sure the
> prefix will be bound?
>
>   Hi
>
>   I searched in the XSLT, XPath and FO recommendations, and
> wasn't able to find a clear response (and Googling and
> searching the archive were of no help).  How can I construct
> a QName as an attribute *value*, and be guaranted the prefix
> is correctly bound at this scope in the output tree?
>
>   I'd like to construct an @xsi:type.  I know the target
> namespace URI (I can use it as a string literal but would
> prefer to use node-name()).  I have to construct the local
> name (using concat() and local-name()).
>
>   What is the safer way to do this?
>
>   Thanks.  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

Current Thread