Subject: Re: [xsl] How to get to the XML Declaration From: Kenneth Stephen <marvin.the.cynical.robot@xxxxxxxxx> Date: Wed, 10 Aug 2005 08:37:42 -0500 |
Elliotte, I dont know the constraints on the WG either, but it seemed to me that there was a lot of give and take between the various active committees. And if the WG wanted to pursue this reqt., they could have asked for this information to be in the infoset.... In a client-server conversational mode of XML (example - SOAP), it is possible that the client may not understand the default encoding selected by the server for its response. Wouldnt it be nice for the server to say - "I know that the client can understand encoding X because thats how the request was recieved, so let me serialize the response using encoding X instead of my default of encoding Y"? Yes, I realize that some encodings (UTF-8?) are supposed to be universally accepted, but it would be nice to not always demand that conversations take place in the universally accepted encodings and to allow some flexibility in this. Thanks, Kenneth On 8/10/05, Elliotte Harold <elharo@xxxxxxxxxxxxxxx> wrote: > Kenneth Stephen wrote: > > > 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. > > -- > 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to get to the XML Dec, Elliotte Harold | Thread | RE: [xsl] How to get to the XML Dec, Michael Kay |
Re: [xsl] Exsl str:replace template, Kenneth Stephen | Date | Re: [xsl] User defined SAX ContentH, Prakash |
Month |