Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 26th, 2003, 06:33 PM
Registered User
 
Join Date: Jun 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Filename of xml in xslt?

Filename of xml in xslt?

Is there a way to access the filename of the xml being tranformed within the xslt?

Thanks,

MG
 
Old June 27th, 2003, 12:50 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 147
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to armmarti
Default

Pure XSLT processor starts a transformation when it already has XML represented internally as a tree, or XML represented as a sequence of "events" as for SAX (no matter the source was the XML file, string, or some stream). Therefore, from the XSLT processor's viewpoint, it just takes it's own internal representation of source XML and applies a stylesheet.

Pure XSLT itself doesn't give such ability to access the XML source file, since, as stated, it doesn't care where from the xml source comes.

If some XSLT processor will provide such opportunity(I don't know such one), it must be done through extension element or function...

Regards,
Armen
 
Old July 4th, 2003, 02:56 AM
Authorized User
 
Join Date: Jun 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes you could try sending the XML file name as a parameter to the XSLT.

For information try this link:
http://msdn.microsoft.com/library/de...asp?frame=true

Skin





Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying your source xml filename Chamkaur XSLT 2 March 12th, 2007 04:32 AM
XSLT for complicated xml to xml transf. required doug@sirvisetti XSLT 3 June 17th, 2005 04:26 PM
merge two xml file and make new xml using xslt ketan XSLT 0 September 21st, 2004 08:48 AM
accessing an XML file with Filename in a var c# Jkelly BOOK: Professional Crystal Reports for VS.NET 0 August 16th, 2004 04:00 AM
Merge XML files into a xml file using xslt lxu XML 4 November 6th, 2003 06:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.