Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] transforming something with a namespace


Subject: Re: [xsl] transforming something with a namespace
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 3 Feb 2007 01:12:10 GMT

> I know this is a dumb question,
Not really, It's a faq,

> I tried adding xmlns="urn://www.photoparata.com/events.xsd" to the
> root element of the XSLT, but that did not work.

try adding

xmlns:p="urn://www.photoparata.com/events.xsd" to xsl:stylesheet then
use

/p:element/p:otherelement

(unprefixed names in xpath 1, are like unprefixed attribute names and refer
to no-namespace.)

If you are using xslt2 you have the new option of using unprefixed names
in xpaths and instead setting default-xpath-namespace=... on your
xsl:stylesheet.


David


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor
Keywords