This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Getting the current document URL from within XSLT
- To: XSL List <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Re: Getting the current document URL from within XSLT
- From: Mike Moran <Mike dot Moran at ee dot ed dot ac dot uk>
- Date: Tue, 06 Feb 2001 17:52:36 +0000
- Organization: The University of Edinburgh, Department of Electronics and Electrical Engineering
- References: <3A80366D.7F9A451B@ee.ed.ac.uk>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Mike Moran wrote:
>
[ ... ]
> Axkit allows you to specify the style by looking for "?style=foo" at
> the end of the URL eg: "http://foo.com/doc.xml?style=foo". I want
> to embed a link in the output produced from the "doc.xml" document
> without having to specify the "doc.xml" or "http://foo.com/doc.xml" as
> part of the data the stylesheet reads, so:
>
> "http://foo.com/doc.xml?style=simple" contains:
> ... <a href="http://foo.com/doc.xml?style=complex">Complex version</a>
>
> and "http://foo.com/doc.xml?style=complex" contains:
> ... <a href="http://foo.com/doc.xml?style=simple">Simple version</a>
Actually, I reckon just having "doc.xml?style=complex" would be enough
since the base URL when it gets to the browser will be
"http://foo.com/". This still leaves the problem of getting "doc.xml",
however.
--
Mike.Moran@ee.ed.ac.uk
Web: http://houseofmoran.com/
AvantGo: http://houseofmoran.com/Lite/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list