Subject: Re: [xsl] Different Namespace Prefixes for Same Namespace URI From: David N Bertoni/Cambridge/IBM <david_n_bertoni@xxxxxxxxxx> Date: Mon, 3 Mar 2003 11:07:18 -0800 |
> I have a situation where I don't control the > source document. Normally I could get the value > of the <widget> element from this document: > > <content xmlns:foo="http://example.org/ns"> > <foo:widget>test</foo:widget> > </content> > > with > > <xsl:value-of select="/content/foo:widget"/> > > But what happens if the namespace prefix isn't > "foo", but "bar" as in this document: > > <content xmlns:bar="http://example.org/ns"> > <bar:widget>test</bar:widget> > </content> > > Can the namespace be referenced via the URI in > some manner, or is there another standard approach > to dealing with this issue? Which prefix you use is irrelevant. As long as whatever prefix you use is bound to the appropriate namespace, everything will work as it should. If your processor doesn't work this way, then it's broken. Dave XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Different Namespace Prefi, Lars Huttar | Thread | [xsl] Re: Different Namespace Prefi, Dimitre Novatchev |
RE: [xsl] Different Namespace Prefi, Lars Huttar | Date | [xsl] Matching in two documents (sa, Marty McKeever |
Month |