I hope this is a simple problem that I'm not noticing, but it seems that Xalan (2_2_D14 and 13) doesn't match anything except "/" if an xmlns is declared in the instance document. Here are short examples:
---------- TestDoc.xml - instance with an xmlns declared: <?xml version="1.0" encoding="UTF-8"?> <DocRoot xmlns="http://birch.asset.com/TestNamespace"> <Child>Data</Child> <Child>MoreData</Child> <Child>EvenMoreData</Child> </DocRoot> --------- TestStylesheet.xsl - Stylesheet trying to match an element: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" indent="yes"/> <xsl:template match="/"> <html> <head></head> <body> <p>Trying to match Child elements....</p> <xsl:for-each select="DocRoot/Child"> <b>Child Element Found!</b> </xsl:for-each> <p>Finished.</p> </body> </html> </xsl:template> </xsl:stylesheet> ---------- And output: D:\xalan-j_2_2_D14>java org.apache.xalan.xslt.Process -IN D:\Temp\TestDoc.xml -XSL D:\Temp \TestStylesheet.xsl <html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <p>Trying to match Child elements....</p> <p>Finished.</p> </body> </html> The Child elements are matched properly if I remove the xmlns from the root element (eg. <DocRoot>). Am I missing something important (and probably obvious) here? Thanks! David A. Riggs -- David A. Riggs Science Applications International Corporation - SAIC (304)284-9000x201 [EMAIL PROTECTED]
