get another xml value located in another path using xslt -


i want convert input xml output xml. xml conversion using xslt.

input xml , supporing xml files in local path(same path only).

xsl , saxon9.jar in server path.

output xml created in local path(same input xml path).

using xslt2.0 can input xml values not able supporting xml values(present in local)

d:\test>java -jar saxon9.jar -s:"d:\tools\masterrefs.xml" -xsl:"iop-new.xsl" -o:"d:\tools\out.xml"

below xsl getting values supporting.xml

< xsl:variable name="fpath" select="document('supporting.xml')" />

<journal-title>

<xsl:value-of select="$fpath/item-info/titles/journal-title"/>

</journal-title>

can me this...

try <xsl:variable name="fpath" select="document('supporting.xml', /)"/> resolve relative uri 'supporting.xml' main input document (/) providing base uri.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -