I am using dom4j in a XML course as it seemed to be the best available Java Parser; unfortunately I just have aproblem I cannot solve.
I try to do an XSLT transformation as described in the F.A.Q. and it basically works (no exceptions), but the result document is not correct: one template is not processed, though the XSL is correct, as I cross checked it with the JEdit XSLT processor as well as with the Mozilla XSLT engine. Is this a dom4j problem? Help would be *very* welcome! Alex Transformation code is: // create the transformer TransformerFactory factory = TransformerFactory.newInstance(); transformer = factory.newTransformer( new StreamSource(styleFile) ); // perform the transformation DocumentSource source = new DocumentSource( aDocument ); DocumentResult result = new DocumentResult(); transformer.transform(source, result); Stylesheet start with <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> and the problem occurs at: <xsl:template match="PERIODIC_TABLE"> <h1>Periodensystem</h1> <xsl:apply-templates /> </xsl:template> <xsl:template match="ATOM"> one Atom </xsl:template> the second one is not working in dom4j, but in all other processors! what could be the problem?? thank you -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! ------------------------------------------------------- This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for? http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user