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

Re: XSL-> Access to the XML Source Filename?

Subject: Re: XSL-> Access to the XML Source Filename?
From: Mukul Gandhi <mukul_gandhi@xxxxxxxxx>
Date: Mon, 8 Nov 2004 08:38:13 -0800 (PST)
xslt source filename
With XSLT 1.0 , I believe you cannot. You could pass
the XML file name as parameter to the processor with
1.0 ..

With XSLT 2.0, I think you can do it with document-uri
function .. I just tried with Saxon 8 and it works ..

The XSL is -
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0">

<xsl:output method="text"/>
   
<xsl:template match="/">
    <xsl:value-of select="document-uri(.)" />
</xsl:template>

</xsl:stylesheet>

When it is applied to a XML file xmlfile.xml ,
it returns result like
file:/D:/xml/xsl/xmlfile.xml

Regards,
Mukul

--- news@xxxxxxxxxxx wrote:

> is there any way to get access to the name of the
> XML file I'm currently
> tranferring?

I hope you mean transforming..



		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 

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.