xsl-list
[Top] [All Lists]

Re: Input Filenames available to the parser?

2006-01-05 02:14:01
Hi Anupam,

I think you should go for the XSLT 2.0 solution.

With oXygen I would set the stylesheet name as the default value for the stylesheet name parameter. For the XML file name parameter you can use a macros when you configure the transformation scenario, for instance ${cfn} will be expanded to the current file name so you can apply the same scenario to different XML files and you will get different values for ${cfn}.

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


Agnisys wrote:
In Oxygen, do I have to set that in the GUI for each transformation or can the 
parameters be
associated with a particular XSL file and applied to all XML input files?
More generally, how are parameters passed to the parser in a batch mode?

Thanks,
Anupam.


--- George Cristian Bina <george(_at_)oxygenxml(_dot_)com> wrote:

Hi Anupam,

They are not available, pass them as parameters when you invoke the transformation.

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


Agnisys wrote:
Hi,
  (Using Saxon8B, XSLT 2.0)
  Is the name of the input XML file and the XSLT file available to the parser? 
If not, how can
the
following be done?

For example: If input is "in.xml" being processed by "xform.xsl", I want the generated output to list the
two
files as ...

:
//Input XML   : in.xml
//Transformer : xform.xsl
:
:

Thanks,
Anupam.

                
__________________________________________ Yahoo! DSL ? Something to write home about. Just $16.99/mo. or less. dsl.yahoo.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>
--~--





                
__________________________________________ Yahoo! DSL – Something to write home about. Just $16.99/mo. or less. dsl.yahoo.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>
--~--