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

Re: Result Tree Fragments

Subject: Re: Result Tree Fragments
From: "Steve Muench" <Steve.Muench@xxxxxxxxxx>
Date: Tue, 28 Nov 2000 07:02:36 -0800
steve hartnoll
See:

http://users.iclway.co.uk/mhkay/saxon/saxon6.0.1/changes.html

and search for:

"In Saxon 5.5, I introduced a change that allows a 
 result-tree-fragment to be implicitly converted to a 
 node-set."

In Saxon 6.0 Michael's "decided to withdraw the facility".

______________________________________________________________
Steve Muench, Lead XML Evangelist & Consulting Product Manager
BC4J & XSQL Servlet Development Teams, Oracle Rep to XSL WG
Author "Building Oracle XML Applications", O'Reilly
http://www.oreilly.com/catalog/orxmlapp/

----- Original Message ----- 
From: "Dave Hartnoll" <Dave_Hartnoll@xxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Tuesday, November 28, 2000 2:13 AM
Subject: Result Tree Fragments


| Hello All,
| 
| I have been using Saxon 5.5.1 to help me understand the XSLT spec, but I've
| come to a point where I can't reconcile Saxon's behaviour with the way I
| read the spec. Section 11.1 of the spec describes Result Tree Fragments, and
| in particular, describes how operations permitted on them are a subset of
| those allowed on node-sets.
| 
| Please consider this XSL stylesheet (which can be applied to any xml
| document):
| 
| ------------------------------------------------------------
| 
| <xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
| version="1.0">
| <xsl:output method="text"/>
| 
| <xsl:variable name="a">
|   <NAME>
|     <FIRST>Dave</FIRST>
|     <LAST>Hartnoll</LAST>
|   </NAME>
|   <ADDRESS>
|     <TOWN>Swindon</TOWN>
|     <POSTCODE>SN1 4BA</POSTCODE>
|   </ADDRESS>
| </xsl:variable>
| 
| <xsl:template match="/">
|   Count   : <xsl:value-of select="count($a)"/>
|   Elements: <xsl:value-of select="count($a//*)"/>
|   All text: <xsl:value-of select="$a[1]"/>
|   Town    : <xsl:value-of select="$a/ADDRESS/TOWN"/>
| </xsl:template>
| 
| </xsl:stylesheet>
| 
| ------------------------------------------------------------
| 
| I believe that the spec invalidates all of the xsl:value-of operations,
| although Saxon does give the "right" answers if they were allowed.
| 
| I tried a similar stylesheet with MSXML3 in IE5 and it complained on the
| first value-of that variable a was not a node-set.
| 
| So, my question, is this:
|    a) A bug in Saxon
|    b) A deliberate extension to Saxon
|    c) My misunderstanding of the spec
| 
| Many thanks,
| Dave Hartnoll.
| 
| 
| 
|  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| 


 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.