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

RE: xsl:key and document()

Subject: RE: xsl:key and document()
From: Robert Goheen <RobertG@xxxxxxxxxxx>
Date: Tue, 9 Jan 2001 09:24:00 -0800
RE:  xsl:key and document()
> -----Original Message-----
> From: Jeni Tennison [mailto:mail@xxxxxxxxxxxxxxxx]
> Sent: Tuesday, January 09, 2001 2:33 AM
> Subject: Re:  xsl:key and document()

> I *would* like to see a way of retrieving the URL of the source
> document, mainly because it would make dynamic client-side XSLT a lot
> easier - you usually need to include the URL of the source document in
> the script that loads the next view on that document.

It does sound like an omission.  I was a bit surprised that you could slip
into a new document context without an easy way to refer back to the base
document; storing the base doc tree in a variable seems a bit hack-y and
inefficient.

> In XSLT 1.1, there's 'support for XML Base'. It would be nice to have
> a base-uri() function in XPath 1.1 (or perhaps in XSLT 1.1) that
> allowed you to access the base URI of a node. As a temporary work

Maybe we should start a petition? :)  Ok, I am half serious.  Is there a
proper way to make suggestions of this sort to the proper W3C working group?

> around, it might be worth adopting a convention of adding an xml:base
> attribute to the document element to give its URL.

That's not even really an option to me now (and, in my
far-less-than-expert-opinion, seems an ickier workaround than using a
variable for the base doc tree).  In my current project, docs may be
processed on the server (from a database/middle tier) and/or client, and all
URLs will contain a query string that impact the information in the docs.


> Cheers,
> 
> Jeni
> 
> ---
> Jeni Tennison
> http://www.jenitennison.com/

 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.