[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] printing input XML file location/path and XSLT file location/path

Subject: Re: [xsl] printing input XML file location/path and XSLT file location/path
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 12 Mar 2014 12:48:24 -0400

If the XML processor in your XSLT processor provides enough information, then the technique I described in this post works using XSLT 1.0 functions:


I hope this helps. I used it often when I was working with XSLT 1.0.

. . . . . . . . . . Ken

At 2014-03-12 15:20 +0000, Michael Kay wrote:
There's no standard way of doing this in XSLT 1.0.

It can be done in 2.0 using the functions document-uri() and static-base-uri() respectively.

Michael Kay

On 12 Mar 2014, at 15:15, ranjith kumar <ranjithproxy@xxxxxxxxx> wrote:

> Hi,
> I am running a c++ program which lanuches MSXML (as a COM object) .
> This MSXML runs the style sheet on an XML file.
> Ignore the above two lines if you don't understand.
> How to write xslt code to print the path/location of the input xml file?
> How to print the path/location of the xslt file itself, inside the xslt file?
> Thanks in advance.

Public XSLT, XSL-FO, UBL & code list classes: Melbourne, AU May 2014 |
Contact us for world-wide XML consulting and instructor-led training |
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm |
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/s/ |
G. Ken Holman                   mailto:gkholman@xxxxxxxxxxxxxxxxxxxx |
Google+ profile:      http://plus.google.com/+GKenHolman-Crane/about |
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal |

--- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com

Current Thread