[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Can I use attributes with namespaces?

Subject: RE: Can I use attributes with namespaces?
From: Néstor Boscán <nestor.boscan@xxxxxxxxxx>
Date: Mon, 14 Nov 2005 04:07:59 -0400
RE:  Can I use attributes with namespaces?
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,

Nistor Boscan

-----Mensaje original-----
De: Jarno.Elovirta@xxxxxxxxx [mailto:Jarno.Elovirta@xxxxxxxxx]
Enviado el: Monday, November 14, 2005 4:04 AM
Para: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Asunto: RE:  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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.