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

No Subject

  • From: Uche Ogbuji <uche.ogbuji@f...>
  • To: Evan Lenz <elenz@x...>
  • Date: Wed, 21 Feb 2001 18:17:09 -0700 (MST)

No Subject
You refer, I assume, to the following, from XSLT 1.0:

"When the source tree is created by parsing a well-formed XML document,
the root node of the source tree will automatically satisfy the normal
restrictions of having no text node children and exactly one element
child. When the source tree is created in some other way, for example by
using the DOM, the usual restrictions are relaxed for the source tree as
for the result tree."

I must say I think this is rather thin ice as it stands now.  I've always
found this clause in the XSLT spec a bit baffling.  Since there is no
normalized mapping from the DOM to the XPath  data model, the above can
mean quite different things on different conforming processors.

For instance, if implementor A gets a clever thought and allows processor
A to accept a DOM document fragment of elements as a root node according
to  the above, and implementor B decides instead that all text nodes and
all  elements except for the first in a doc frag be ignored, both would be
good citizens by the spec, but of course the processors could render quite
different results.

Not a problem as far as XSLT qua XSLT.  But once you rely on this property
for standardized  treatment of a grove (term loosely used), which is what
it seems your XSLT-base dproposal would do, I think you'd need to have
strict prescription of the mapping  from multiple documents to XSLT source
for this not to be problematic.  Maybe you already do so in your paper,
which would, I think, cover my concerns.


-- 
Uche Ogbuji                               Principal Consultant
uche.ogbuji@f...               +1 303 583 9900 x 101
Fourthought, Inc.                         http://Fourthought.com
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.