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

Re: Re: Getting the current document URL from within X

Subject: Re: Re: Getting the current document URL from within XSLT
From: Uche Ogbuji <uche.ogbuji@xxxxxxxxxxxxxxx>
Date: Tue, 06 Feb 2001 13:06:38 -0700
mike moran boulder
> 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.

Good idea.  I just added a ft:base-uri extension function to 4XSLT to support 
this.  It will be in the 4Suite 0.10.2 release this week.


-- 
Uche Ogbuji                               Principal Consultant
uche.ogbuji@xxxxxxxxxxxxxxx               +1 303 583 9900 x 101
Fourthought, Inc.                         http://Fourthought.com 
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python



 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.