Re: elements in a namespace
Mike Brown writes > The default namespace, as declared by the xmlns attribute, is just for the > assignment of a namespace to result tree elements that aren't expressed in > the stylesheet with qualifiers (prefixes). Not necessarily result tree elements, If you get fed up of sticking xsl: in front of everything, you can do this: <stylesheet xmlns="http://www.w3.org/XSL/Transform/1.0" > and then just use <template match= etc. Of course you then need to explicitly namespace any literal result elements, or don't use literals, and use <element name="foo"> instead. > The gist is: namespace declarations in the stylesheet have nothing to do > with elements in the source tree. Not really `nothing'. If you want to access elements in the source tree which have a particular namespace associated, you have to declare that namespace in the stylesheet, to associate the namespace with a prefix. Don't you? David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format