xsl-list
[Top] [All Lists]

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

2006-04-05 10:22:17
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(_at_)yahoo(_dot_)fr] 
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 : 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>
--~--





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