Subject: Re: 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
|