I run it inside Ant using the xslt task including the saxon9.jar and also the 
saxon.jar of my colleague (Version 6?) 
My colleague run it in his environment.

But I found a solution:

I changed
   <xsl:document href="{$errorfilename}" method="text"></xsl:document>
to
   <xsl:result-document href="{$errorfilename}"></xsl:result-document>

And now it works with saxon9.

I dont know why....
Maybe saxon9 is xslt 2.0 and saxon 6 is xslt 1.1...

-- 
Jürgen Knuplesch                    

-----Ursprüngliche Nachricht-----
Von: Stefan Krause [mailto:stefan.kra...@editura.de] 
Gesendet: Mittwoch, 25. März 2009 10:39
An: Ant Users List
Betreff: Re: Xslt troubles

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It looks to me more like a bug in the stylesheet than like an ant issue. Have 
you tried to run the stylesheet in a debugger or from the command line?

Stefan Krause

Knuplesch, Juergen schrieb:
> Hello,
> 
> I am using Saxon to run a special XSLT.
> This XSLT has run well using saxon9.jar.
> Now it had to be changed and now I get the following error:
> 
>      [xslt] Processing D:\Temp\xsltPRL\install.dsf to 
> D:\Temp\xsltPRL\Ergebnis.html
>      [xslt] Loading stylesheet 
> D:\Entwicklung\Build\DopeBuildServer\XSLT\compare-dsf.xsl
>      [xslt] D:\Entwicklung\Build\DopeBuildServer\XSLT\compare-dsf.xsl:185:61: 
> Fatal Error! Attribute @href is not allowed on element <xsl:document>
>      [xslt] D:\Entwicklung\Build\DopeBuildServer\XSLT\compare-dsf.xsl:185:61: 
> Fatal Error! Attribute @method is not allowed on element <xsl:document>
>      [xslt] Failed to process D:\Temp\xsltPRL\install.dsf
> 
> The XSLT developer gave me the saxon.jar, he used to test his XSLT.
> Here I get this error:
>      [xslt] Processing D:\Temp\xsltPRL\install.dsf to 
> D:\Temp\xsltPRL\Ergebnis.html
>      [xslt] Loading stylesheet 
> D:\Entwicklung\Build\DopeBuildServer\XSLT\compare-dsf.xsl
>      [xslt] : Warning! Failure reading D:\Temp\xsltPRL\install.dsf Cause: 
> java.io.EOFException: no more input
>      [xslt] : Warning! Failure reading D:\Temp\xsltPRL\util.dsf Cause: 
> java.io.EOFException: no more input
> 
> Who has an idea, what to do?
> 
> Greetings
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJyfvO6m+l2LO+BGwRAheYAJ9tf40dpl9Pg8ACveBf5fTbu7EJ0QCg84pn
0oy/l6DUBRy3GZtBJlseDHo=
=Qcg+
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
commands, e-mail: user-h...@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to