Hi Oliver,
when the content.xml is processed, the base reference of the document()
function is pointing to the ZIP root.
Therefore you have to zip your sourceB.xml, if you want to access it
with XSLT in the manner you mentioned.
If you want to open an arbitrary XML file outside of the ZIP during your
transformation it will become a little harder.
Easiest way: you would use an HTTP URL and put sourceB.xml on a webserver.
Svante
Oliver Brinzing wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
i tried to create a xslt filter to merge the information from two *.xml docs
into one writer doc ...
till now i managed to build the content.xml via a batch file:
set ooPath=D:\programs\soffice
set classPath=%ooPath%\program\classes
set
classes="%classPath%\xalan.jar;%classPath%\xml-apis.jar;%classPath%\xercesImpl.jar"
java -cp %classes% org.apache.xalan.xslt.Process -IN .\files\sourceA.xml -XSL
.\filters\report.xsl
- -OUT content.xml
inside "report.xls" i get information from "sourceB.xml" via
<xsl:variable name="sourceB" select="document('sourceB.xml',
/)/DATAPACKET/ROWDATA"/>
this works perfect as long as i do not install the filter inside oo ...
using file -> open -> "sourceA.xml" to import my report fails, cause
"sourceB.xml" is not found ...
document() points to \soffice\user\xslt\MyFilter ...
any hints ?
Oliver
GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD4DBQFE6wLWTiyrQM/QSkURAu5uAJ9sgRegP01Eswos/WjIvfp0rd44KQCVEM1R
FmcIVRbvPIVuhZiLlZ8iDw==
=AHR9
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]