xsl-list
[Top] [All Lists]

Re: [xsl] transforming something with a namespace

2007-02-02 18:12:33

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--