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

Re: Using URL parameters in XSL

Subject: Re: Using URL parameters in XSL
From: Julian Wood <woodj@xxxxxxxxxxx>
Date: Mon, 11 Aug 2003 12:54:34 -0600
huw wilkins
Hi Huw,

Yes, this is exactly what I need, and it works perfectly in IE, but I need it to work in Mozilla too. Any way to do this using just standard XSL?

Thanks,

J

On Monday, August 11, 2003, at 11:26 AM, Huw Wilkins wrote:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:path="urn:test">

<xsl:output method="html"/>

            <msxsl:script implements-prefix="path" language="JScript">
                        function URL(oObj) {
						// Assumes oObj is an IXMLDOMNodeList
						// smarter type checking might be
						// advisable in a production environment.
                                    return oObj.item(0).url;
                        }
            </msxsl:script>

            <xsl:template match="/">
				Path of XSL Stylesheet document:<br/>
                        <xsl:value-of select="path:URL(document(''))"/>
                        <br/>
				Path of XML Document:<br/>
                        <xsl:value-of select="path:URL(.)"/>
            </xsl:template>

</xsl:stylesheet>

--
Julian Wood

Programmer/Analyst
Learning Commons, University of Calgary


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.