Subject: Re: [xsl] mystery #3: rendering embedded HTML From: David Carlisle <davidc@xxxxxxxxx> Date: Sun, 14 Apr 2002 23:37:36 +0100 |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] mystery #3: rendering emb, Mark Wonsil | Thread | Re: [xsl] mystery #3: rendering emb, Gary Lawrence Murphy |
Re: [xsl] Combining stylesheets for, Daniel Brockman | Date | Re: [xsl] Combining stylesheets for, Daniel Brockman |
Month |