[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: mystery #3: rendering embedded HTML
> The new error says the contents of that <envelope> is invalid: That error can't be generated by the contents of an element (unless something has gone completely wrong. It can only be generated if the document itself isn't well formed. > chars: value-of/doe is doing this, but also parses the result, value-of never parses anything. > When d-o-e is enabled, value-of is (probably correctly) > returning a node-set built from parsing the de-escaped element > contents. No, that's not what value-of does. It just returns the string value of the argument. (Really it's easy enough to read the spec, ratherthan trying to guess the specification from a few examples) D-o-e just tells teh system that if it is linearising the result tree to a file that characters in that string should be output as < rather than < (for example) even if it produces a non-well formed result. d-o-e is only a flag to the serialser, it has no effect on the result tree at all. > Does this suggest that "value-of" is an inappropriate way to extract > markup-like strings from an element (because it parses what it reads) no. David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. 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
|