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

RE: XML string copying w/o d-o-e (was Re: Fixing &

Subject: RE: XML string copying w/o d-o-e (was Re: Fixing <b>)
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 1 Apr 2002 19:39:50 +0100
fixing xml string
> Michael Kay wrote:
> > I think one could clean up the semantics to make it workable. I'm
> > thinking in terms of a facility that says "Here is some
> XML, represented as
> > unparsed text containing markup characters. I want this XML
> copied onto the
> > result tree. Conceptually, I want to parse the XML and copy
> the resulting
> > nodes to the result tree. But if the result tree is being
> serialized to XML,
> > I don't mind the processor being clever and bypassing the
> parse/serialize
> > operations by copying the raw XML straight to the serial
> output file."
>
> I don't see how you could ever get away with bypassing the
> parse operation.

By delayed evaluation. Conceptually, you put a virtual element on the result
tree which is represented by means of its serialized XML string. You only
expand this element if you need to; if the only operation performed on it is
to serialize it, then you don't bother parsing it.

Of course, in practice, processors don't actually build the result tree in
memory anyway. There's a difference between how the semantics are described
and how the implementation actually works.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx



 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-2007 All Rights Reserved.