xsl-list
[Top] [All Lists]

RE: [xsl] Dynamic Input file path on document method

2009-12-03 12:09:00
That posting on exslt-list solves the problem for a XSLT 1.0 processor:
[applying a dynamic XPath to a RTF, which document('comments.xml') is in
your case]
http://lists.fourthought.com/pipermail/exslt/2009-November/001861.html


Mit besten Gruessen / Best wishes,

Hermann Stamm-Wilbrandt
Developer, XML Compiler
WebSphere DataPower SOA Appliances
----------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294


                                                                       
             "Ramkumar"                                                
             <ramkumar(_at_)premedi                                         
             aglobal.com>                                               To
                                       
<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
             12/03/2009 03:56                                           cc
             PM                                                        
                                                                   Subject
                                       RE: [xsl] Dynamic Input file path
             Please respond to         on document method              
             xsl-list(_at_)lists(_dot_)mu                                       
  
              lberrytech.com                                           
                                                                       
                                                                       
                                                                       
                                                                       





I can't hard code the static path in xslt. I am asking dynamic path. I can
use any path for input file for the transformation.

I need to use dynamic input file path on this document method.

URL for the document method is input file's path.

-----Original Message-----
From: Andrew Welch [mailto:andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com]
Sent: Thursday, December 03, 2009 8:16 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Dynamic Input file path on document method

document('comments.xml', /)


2009/12/3 Ramkumar <ramkumar(_at_)premediaglobal(_dot_)com>:
How to use as a second argument in my code? Please share your idea.

-----Original Message-----
From: Andrew Welch [mailto:andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com]
Sent: Thursday, December 03, 2009 7:57 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Dynamic Input file path on document method

2009/12/3 Ramkumar <ramkumar(_at_)premediaglobal(_dot_)com>:
Hi List,

When using "document('comments.xml')", xslt looking default path for
comments.xml' on xslt path. Actually I have it in input file path.

So how to implement the dynamic input path on this code. Please suggest
your
idea.put

You can supply a node from the input as second arg to the document()
function, and then it will be resolved against that.

http://www.w3.org/TR/xslt20/#function-document




--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

--~------------------------------------------------------------------
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>
--~--




--~------------------------------------------------------------------
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>
--~--





--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

--~------------------------------------------------------------------
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>
--~--





--~------------------------------------------------------------------
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>
--~--




--~------------------------------------------------------------------
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>
--~--