xsl-list
[Top] [All Lists]

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

2014-03-12 11:48:47
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:

http://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/201207/msg00021.html

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
Saxonica

On 12 Mar 2014, at 15:15, ranjith kumar <ranjithproxy(_at_)gmail(_dot_)com> 
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(_at_)CraneSoftwrights(_dot_)com 
|
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--