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

RE: use-when attribute?

Subject: RE: use-when attribute?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 17 Dec 2004 08:57:18 -0000
RE:  use-when attribute?
>     Bruce> So what I want to do is is define an output-format
>     Bruce> parameter in my main stylesheet (as above).
> 
> Perhaps you could get the effect you want by an auxiliary document.
> The fn:doc function (but NOT the document function) is in scope for
> use-when, so you could contruct an XPath expression which tested the
> value of an attribute within the auxiliary document.

Actually, the spec says that in the dynamic context for the use-when
expression, "available documents" is empty, which means that fn:doc() should
always return an error "document not found".

But it looks as if neither of the two existing implementations (mine will be
out shortly!) impose that restriction.

Michael Kay
http://www.saxonica.com/

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.