|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Disable output-escaping
At 10:10 AM 1/25/2005, you wrote:
>>>>> "Michael" == Michael Kay <mike@xxxxxxxxxxxx> writes: I can't speak to the issue of what "deprecated" should mean or what should be respectable, but I think it's worth noting, again, that the problems that come with d-o-e are all related to the fact that, unlike almost everything else you do in XSLT, what this feature controls is the serializer that writes the output to a file, not the processor that generates the output (the "result tree") to begin with. A reason it is optional is that serializers are optional, and if an implementor builds an engine with no expectation that the result tree will be written out to a file, how is it to be handled? As to whether it's "respectable", I find in my own work that it's worth considering whether the application of disable-output-escaping in question * really needs to use the serializer to solve the problem (often there's a better solution in XSLT) * respects the fact that it introduces dependencies on (a) a processor that implements d-o-e, and (b) the invocation of a serializer to write the results (i.e. you can't just pass the tree along) -- in practice this often means "won't work client-side in Mozilla" * encapsulates the logic sufficiently to mitigate these dependencies, to the extent possible (on the rare occasions I've resorted to d-o-e I've kept it separate from the main stylesheet, as a pre- or post- process) -- this eases maintenance and reuse All this having been said, I agree with Mike that it can be useful to undo the damage caused by having escaped markup inline (or the equivalent in the case Mike cites), which you need to recover (whether it's putatively HTML or XML). I don't know if it's respectable, but that kind of process by its very nature demands a serializer. Cheers, Wendell
|
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
|

Cart








