You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by matthew denner <ma...@evtechnology.com> on 2000/12/13 18:04:19 UTC
user error! [Was: problems with Xalan & Xerces]
matthew denner wrote:
>
> matthew denner wrote:
> >
> > i believe the inclusion of the DTD in the HTML file is causing a problem and
> > removing this (from the real world files) is impossible as you get parser
> > errors when the XHTML contains " " (missing referenced entities).
>
> further info:
>
> it looks like the stuff that appears in the Xalan output are comments from
> the DTD, not the DTD itself. also, the <!DOCTYPE...> element at the top of
> the documents is removed which may explain why the XSL doesn't work (straw
> clutching there i think!).
in trying to track down the "bug" i turned on ResultTreeHandler.DEBUG in the
source and found that the namespace for the <a> needs specifying on the
match ... i did warn you that i was new to all this XSL! now everything
works, apologies to everyone.
side note though: would it not be better to separate out the ContentHandler
and DTDHandler stuff? i would assume that comments in the DTD are not
relevent to the XSL and therefore should not pass through. by separating
(or hacking like i did!) you could remove the comments from the DTD in the
final output.
once again, sorry for assuming this was a bug and not user error, next time
i'll be a little more careful!
Cheers,
Matt
-----------------------------------------------------------------------------
Sessami is a trademark of Escape Velocity Technology Mobile Services Limited.
All information contained in this e-mail is confidential and for the use of
the addressee only. If you receive this message in error please notify.