[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: elements in a namespace
> 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" > > > > [...] > > > 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? Yes, I stand corrected on both points. I'm just disappointed in that there's no way to define a default namespace for references to source tree elements. Of course, I realize that such an implementation would require a mechanism for references to source tree elements that have no namespace associations. The obvious solution would be to associate a prefix with an empty namespace, but the Namespaces in XML spec prohibits this (...why?) http://www.w3.org/TR/REC-xml-names/#dt-prefix 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
|