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

RE: submitting rtf contained within param

Subject: RE: submitting rtf contained within param
From: David_Marston@xxxxxxxxx
Date: Tue, 15 Aug 2000 10:20:25 -0400
RE: submitting rtf contained within param
Matthew Bentley wants to do
<xsl:apply-templates select="$gentext" />
where $gentext is a result tree fragment (RTF). He notes that
Saxon complains, as would Xalan, but MSXML accepts it.

Then Joshua Allen (joshuaa@xxxxxxxxxxxxx) says:
>MSXML treats everything as a node-set, thus no extension function.
>Most other processors have a node-set extension function (which is
>how Saxon does things).  My vote is "spec vagueries",...

My vote is that the spec is clear enough, if just barely.

First, note the syntax in Section 5.4
<xsl:apply-templates select= node-set-expression ...
Now, look at Section 11.1, which defines RTFs. It talks about
binding a variable to an RTF "instead of" a node-set, and goes on
to use verbiage that consistently avoids portraying RTFs as a
subclass of node-sets.

As for automatic conversion, 11.1 also says "An operation is
permitted on a result tree fragment only if that operation would
be permitted on a string..." and XPath 3.3 says that no objects
can be converted to node-sets. That xsl:apply-templates
instruction takes a node-set, not a string.

Taken together, these provisions eliminate all the claimed
vagueness in the specs.
.................David Marston


 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.