xsl-list
[Top] [All Lists]

[xsl] Extract input filename

2007-05-17 00:28:34
Dear Friends-
I have no idea about to extract input filename by passing argument in command line. In the below examples, I don't want to hardcode "input_meta.xml".

Input files
1. input.xml
2. input_meta.xml

command line
java -jar saxon8.jar input.xml x.xsl >c.xml

Stylesheet
<xsl:variable name="filename" select="document('input_meta.xml')" />
<xsl:template match="/">
        <doi>
      <xsl:copy-of select="$filename/doi/text()" />
        </doi>
</xsl:template>

Thanks in advance.
JSR


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

<Prev in Thread] Current Thread [Next in Thread>