Re: How to get to the XML Declaration
Why was this decision made? I see from the XSLT 2.0 requirements document, that one of the requirements was to give XSLT the ability to figure out what the input encoding was. There is even a use case mentioned in the requirements document : http://www.w3.org/TR/xslt20req (see item 1.4) which talks about why this would be useful.
Speaking for myself (I have no idea what the WG's thinking was) that requirement was a COULD, not a MUST or even a SHOULD. I tend to think it's not that important to know the encoding. Most importantly providing that functionality would mean that an XSLT 2 processor couldn't be implemented on top of a standard XML parser which does not provide that information.
-- o;?Elliotte Rusty Harold elharo@xxxxxxxxxxxxxxx XML in a Nutshell 3rd Edition Just Published! http://www.cafeconleche.org/books/xian3/ http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim
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