0

I want to convert input XML to output XML. Similarly XML conversion using xslt.

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

XSl and saxon9.jar is in server path.

output xml will be created in local path(same as input xml path).

using xslt2.0 i can get an input xml values but not able to get the 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 is my xsl for getting values from 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 anyone help me for this...

1 Answer 1

0

Try <xsl:variable name="fpath" select="document('supporting.xml', /)"/> to resolve the relative URI 'supporting.xml' with the main input document (/) providing the base URI.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.