Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Simple Question on Special Charaters in Attributes (Newbie) [Thread Next] Re: Simple Question on Special Charaters in Attributes (Newbie)To: NULL Date: 2/8/2008 7:27:00 AM On Feb 8, 12:26 pm, Martin Honnen <mahotr...@yahoo.de> wrote: > conorg...@gmail.com 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/ This did the trick xmlns:xmi="http://www.omg.org/XMI" Thanks | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
