hi oliver,
be shure that sourceA.xml and sourceB.xml have the same base uri (i.e.
the same directory) and your document('sourceB.xml', /) should work as
expected (and as for xalan - http://www.w3.org/TR/xslt#document )
Probably it is a bug that has to be fixed in oo´s transformer
implementation (and in many other xslt-engines ;) and you will have use
one of the workarounds posted.
regards stefan
stefan ziel
clan informática do brasil ltda
mailto:[EMAIL PROTECTED]
http://www.claninfo.com.br
Oliver Brinzing escreveu:
-----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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]