xslt - <xsl:variable> which is an xml file on intranet -


i using xslt process config file (which in xml format).

the processing requires inputs xml file hosted on intranet.

when copy file d:, can use <xsl:variable> read xml file below:

<xsl:variable name="vprods" select="document('file:///d:/packages.xml')" /> 

however, when specify intranet location http://abc.xyz/api/xyz.xml, below:

<xsl:variable name="vprods" select="document('http://abc.xyz/api/xyz.xml')" /> 

i exception "data @ root level invalid. line 1, position 1."

what correct way read file intranet?

thanks


Comments

Popular posts from this blog

multithreading - Exception in Application constructor -

React Native allow user to reorder elements in a scrollview list -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -