Relative path reference to XML file in XSLT does not find elements -
i have 2 xml files containing elements in different languages. position in forders following:
i want load value of elements dynamically, according language selected , passed xsl document. let's call it:
<xsl:variable name="messagebundle_lang">lang1.xml</xsl:variable>
i like:
<xsl:variable name="mainroot">../xmlfiles/</xsl:variable> <xsl:variable name="root" select="string(concat($mainroot, $messagebundle_lang))"></xsl:variable> <xsl:value-of select="document($root)/data/xml_element_1" />
this work locally, after deployment elements loaded dynamically not appear in pdf generated based on test.xsl. presume because of this:
../xmlfiles/
how include path of xml files? can problem of os dependent path separator?
Comments
Post a Comment