xsl-list
[Top] [All Lists]

RE: Can I use attributes with namespaces?

2005-11-14 01:07:59
Hi Jarno 

Thanks for the quick reply.

This attributes are part of the input xml. So what I need is to get the
value of this attributes using XPath.

Regards,

Néstor Boscán

-----Mensaje original-----
De: Jarno(_dot_)Elovirta(_at_)nokia(_dot_)com 
[mailto:Jarno(_dot_)Elovirta(_at_)nokia(_dot_)com] 
Enviado el: Monday, November 14, 2005 4:04 AM
Para: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Asunto: RE: [xsl] Can I use attributes with namespaces?

Hi, 

I would like to add new attributes to existing XHTML elements. 
For example <a myns:reference="...">. Is this possible and how

By just creating that attribute into the result tree. You can do it e.g. by
declaring the myns namespace in the xsl:stylesheet element and then adding
the myns:reference attribute using xsl:attribute.

can I use xpath to access this attribute?.

With XSLT 1.0, not while you're creating the attribute, unless you use
node-set extension to cast the Result Tree Fragment that contains the
attribute into a node set.

Jarno

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