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

Re: New XT release

Subject: Re: New XT release
From: James Clark <jjc@xxxxxxxxxx>
Date: Fri, 05 Nov 1999 17:46:48 +0700
Re: New XT release
Eric van der Vlist wrote:
> 
> Hi James,
> 
> I have a couple of questions about the already much discussed
> restrictions on "11.1 Result Tree Fragments" :=)
> 
> Using the August release of XT, I have noticed that these restrictions
> do not seem to apply when you use the document XPath function...

That's because document() returns a node-set not a result tree fragment.

> If you assign the content of a document to a variable :
>   <xsl:variable name="tarifdef" select="document('tarif.xml')/tarif"/>
> 
> you can then use it without the restrictions on the tree fragments...
> 
>   <xsl:for-each select="$tarifdef/marque[position() &lt;= $gauche]">
>     <xsl:call-template name="marque">
>       <xsl:with-param name="taxe" select="$taxe"/>
>       <xsl:with-param name="language" select="$language"/>
>     </xsl:call-template>
>   </xsl:for-each>
> 
> will work as expected.
> 
> Is it "normal" and something on which we can rely ?

Yes.

> My second question is about your sentence :
> 
> > There is no support for
> > using the DOM for the result tree. This would be relatively easy to do,
> > but I don't know whether it's useful enough to be worthwhile.
> 
> Using DOM for the result tree, wouldn't it be possible and relatively
> easy to handle a result tree fragment as a node set ?

No harder or easier than it is with SAX.

James



 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.