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

Re: Naive Question about NS 1.1


Re:  Naive Question about NS 1.1


David Carlisle wrote:
> 
> > Where such values are specified to be constants, is there a reason not
> > to parse them immediately rather than to wait until the template element
> > is processed.
> 
> You seem to be assuming that XST processing is interleaved with the XML
> parsing of the stylesheet. This isn't always the case, MSXML for example
> aways just uses a complete DOM as the input stylesheet: that DOM could
> come from anywhere. If the stylesheet was parsed at all (rather than
> having been built using dom methods) the whole stylesheet is parsed
> before the XSLT engine ever sees it.

Where the constant expressions are interpreted by the XSLT processor
before it processes the tree, the result is the same as when the
interpretation is interleaved with parsing the tree. The issue is
whether, as is the case where the values are templates rather than
constants, the processor requires the bindings in order to interpret the tree.

> 
> > the only (obvious) way to predict the
> > result for all documents is to restrict the value domain to eliminate
> > prefixes. For example, by restricting the domain from QNames to NCNames
> 
> in something like the name attribute of xsl:element then elimnating
> prefixes doesn't seem to change anything, even if it's an NCName it is
> subject to the default namespace so is just as "variable" as a name with
> a prefix, it just happens to have a prefix that is the empty string (in
> which case, as a matter of surface syntax, you also miss off the ":")

The domain restriction is accompanied by the requirement that the
namespace attribute be present. That is, the namespace name is computed
explicitly rather than imputed from a prefix.

> 
> It's different for QNames in XPath (1.0) expressions as there NCNames have
> fixed interpretation as being in the null namespace.
> 
> But your comment seems to imply that in the current specification you
> think there is something unpredicatble (rather than something that you
> think is a poor design).

When the latter leads to the former...

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.