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

Get the XML File name in XSL?

Subject: Get the XML File name in XSL?
From: c p <bugs75il@xxxxxxxxx>
Date: Fri, 11 Mar 2005 09:02:03 -0800 (PST)
xsl xml file name
I have couple of questions:

1. Is there a way in XSL to get the name of the XML
file that it is currently transforming?  If yes, how?

2. Is there a way to get to the XML file name if its
included in another XML file via entities.  Let me
give you an example to make it a bit clear:

Lets say I have master.xml that includes (via
entities) 3 other xml files.  I am going to send the
master.xml and my XSL file to the transformer to
transform it to HTML.  Since the master.xml includes
all three files, as I am transforming each subfile, I
want to get the name of the subfile in XSL.  Is that
possible?

Here are example files:
I have master.xml file that looks something like this:
-------------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE root SYSTEM "xml.dtd" [
    <!ENTITY % entFile SYSTEM "xml.ent">
    %entFile;
]>
<root>
  &subfile1;
  &subfile2;
  &subfile3;
</root>

My xml.ent file looks like this:
-------------------------------------------------
<!ENTITY subfile1 SYSTEM "11111.xml" >
<!ENTITY subfile2 SYSTEM "22222.xml" >
<!ENTITY subfile3 SYSTEM "33333.xml" >
-------------------------------------------------


Thanks for your help.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.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.