Interesting. My first bet is that this is a Xerces issue. You should try the parse with just Xerces to see what happens.
-scott "Chris P. McCabe" <[EMAIL PROTECTED] To: xalan-dev@xml.apache.org otels.com> cc: (bcc: Scott Boag/CAM/Lotus) Sent by: Subject: Bug: External Entities that begin with newline [EMAIL PROTECTED] com 01/21/00 05:37 PM Please respond to xalan-dev I don't know if this is a Xerces or Xalan bug, but if an external entity that contains XML begins with a newline character, the XML cannot be referenced in the stylesheet in certain circumstances. In the test case below, if test2.xml begins with a newline, the xsl:value-of element in the stylesheet will produce no value. If the newline is removed, it works as expected. This is a contrived example to illustrate the problem, and if a template is created for the "bar" element and apply-templates is called, it works correctly in either case. ============ test.xml ============== <?xml version="1.0"?> <!DOCTYPE page [ <!ENTITY values SYSTEM "test2.xml"> ]> <page> &values; </page> ===================================== ============ test2.xml ============== <foo> <bar>Some Text</bar> </foo> ===================================== ============= test.xsl ============== <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/REC-html40"> <xsl:output method="html" indent="yes"/> <xsl:template match="page"> <html><body> <xsl:value-of select="//bar"/> </body></html> </xsl:template> </xsl:stylesheet> ===================================== -- Chris P. McCabe 602-953-4416 Choice Hotels International [EMAIL PROTECTED]