[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: mystery #3: rendering embedded HTML

Subject: Re: mystery #3: rendering embedded HTML
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sun, 14 Apr 2002 23:37:36 +0100
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 &lt; (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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.