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

Re: docref example/explanation?

Subject: Re: docref example/explanation?
From: "Mark D. Anderson" <mda@xxxxxxxxxxxxxx>
Date: Mon, 3 May 1999 18:19:36 -0700
example explanation
> [G. Ken Holman's explanation]

hmmm....

so doc() and docref() do essentially the same
thing, except that doc takes a scalar argument, and docref
takes a vector (node-set) argument?

are there any dictums about what sort of URI a compliant processor
must know how to handle? for example, at least "http:" and "file:"?
how about a pipe?

how does the processor signal that:
- it doesn't know how to handle the uri's scheme
- it gets an access denied error accessing the resource
- the resource does not exist
- the resource is not well-formed
- the resource has nothing in it

what dtd is the resource validated against?

suppose i have a source xml document with an xlink:
<employee>
<employer xml:link="simple" href="http://some.company.com/employer.xml" show="embed" actuate="auto">
</employee>
and stylesheet fragment like this:
<xsl:apply-templates select="employee/*"/>
would a compliant XSLT processor have to deal with the above the same as if
it were given this source:
<employee employer="http://some.company.com/employer.xml"/>
and had this stylesheet fragment:
<xsl:apply-templates select="doc(@employer)"/>
?

does the processor timeout if it can't get the resource in time?
is that a system-property? 
is a compliant processor prohibited from loading resources 
from doc/ref expressions that aren't activated, and must any
other resource exactly once?
can it load the ones it will load in parallel and in any order?

if i understand this correctly, for the sanity of xslt programmers
it is actually now necessary for XPointer and XSLT to converge, since
doc/ref would naturally use xpointer syntax in uri, while the
rest of a style sheet uses xslt expressions?

-mda



 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.