Subject: RE: [xsl] xsl:key and document() From: Robert Goheen <RobertG@xxxxxxxxxxx> Date: Tue, 9 Jan 2001 09:24:00 -0800 |
> -----Original Message----- > From: Jeni Tennison [mailto:mail@xxxxxxxxxxxxxxxx] > Sent: Tuesday, January 09, 2001 2:33 AM > Subject: Re: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xsl:key and document(), Robert Goheen | Thread | Re: [xsl] xsl:key and document(), David Carlisle |
Re: [xsl] cross document id idref p, David Carlisle | Date | [xsl] SAXON systemid() usage. PLEA, Peter McEvoy |
Month |