Thanks for the responses.
I've managed to create a simple example that demonstrates the problem.
See the attached files.
Running the ant script for me generates no errors. Oddly, removing the
<!doctype> from the input.in file does cause the errors to be emitted.
Cheers,
Simon
[EMAIL PROTECTED] wrote:
Can you point to the buildfile, xmlfile, entities and stylesheet in SVN?
Would be easier to retest...
Jan
-----Ursprüngliche Nachricht-----
Von: Simon Kitching [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 29. November 2005 00:11
An: user@ant.apache.org
Betreff: Obtaining error messages from xslt task
Hi,
The myfaces project has some documents that make heavy use of
xml entity references (&foo;) to compose a JSP TLD file from
multiple parts. The ant <xslt> task is used to create a
document with all these entity references expanded inline
(plus a little pretty-printing).
However some people (including myself) get no error messages
when entity references have mistakes (ie reference an entity
that doesn't exist), while some others get errors reported for this.
We can't figure out why some people get error messages and
others don't.
It's probably something to do with build properties, or
library versions or something. I would definitely like to be
able to see these error messages; the problems reported (by
the people who do get the messages) are valid.
Sytems where errors aren't reported:
* linux, java1.5
* windows, java1.4
Any hints would be gratefully received.
Regards,
Simon
<project name="test" default="xsl">
<target name="xsl">
<xslt basedir="."
includes="input.in"
extension=".tld"
destdir="."
style="identity.xsl">
<xmlcatalog>
<dtd publicid="-//foo" location="foo.dtd"/>
</xmlcatalog>
</xslt>
</target>
</project>
<!ELEMENT test (#PCDATA)>
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="ISO-8859-1"/>
<xsl:template match="*">
<xsl:copy>
<xsl:copy-of select="@*" />
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]