Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Simple Question on Special Charaters in Attributes (Newbie) >Thread Next - Re: Simple Question on Special Charaters in Attributes (Newbie) Re: Simple Question on Special Charaters in Attributes (Newbie)To: NULL Date: 2/8/2008 1:26:00 PM
conorgaff@g... wrote:
> I'm trying to select an attribute called xmi:id in an xslt.
>
> <xsl:value-of select="@xmi:d"/>
>
> but won't work with ':' in the select.
You need to bind the prefix 'xmi' to a namespace URI by declaring e.g.
<xsl:stylesheet
xmlns:xmi="http://example.org/ex1"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
Of course you need a different namespace URI than given in my example
but the right URI obviously depends on your XML input.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
