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

RE: access document object during xform on IE6

Subject: RE: access document object during xform on IE6
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 31 Oct 2002 17:23:42 -0000
RE:  access document object during xform on IE6
> 
> During XSLT transformation using IE6 I am trying to access 
> the document object to extract the URL of the XML doc currently being 
> transformed. 

Just pass it in to the transformation as a parameter.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 



Since the document object does not exist I am 
> getting an error. Q1) Is there any way to salvage the 
> approach used below to somehow access the URL of the XML page 
> being transformed? Q2) If the document object is unavailable 
> is there any other object that can be used in its place? 
> Thanks in advance.
> 
> <?xml version="1.0"?>
> 
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                 xmlns:msxsl="urn:schemas-microsoft-com:xslt"
>                 xmlns:user="http://mycompany.com/mynamespace"
>                 version="1.0">
> 
>  <msxsl:script language="javascript" implements-prefix="user">
>   <![CDATA[
>    function DoIt() {
>      return   document.location.href;
>    }
>   ]]> 
>  </msxsl:script>
>  
>  <xsl:template match="/">  
>   <xsl:value-of select="user:DoIt()"/>
>  </xsl:template>
> </xsl:stylesheet>
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.