Subject: Re: [xsl] Using URL parameters in XSL From: Julian Wood <woodj@xxxxxxxxxxx> Date: Mon, 11 Aug 2003 12:54:34 -0600 |
<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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Using URL parameters in X, Huw Wilkins | Thread | [xsl] announcement: xml, xsl and sc, Armand Datema |
RE: [xsl] reference sheet for XSLT , Michael Kay | Date | RE: [xsl] reference sheet for XSLT , Robert P. J. Day |
Month |