Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Simple Question on Special Charaters in Attributes (Newbie)

From: conorgaff@-----.---
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent