Hi Joseph, On Sun, Mar 12, 2023 at 11:09 PM Joseph Kessselman <[email protected]> wrote: > I am still seeing ./build.sh conf.xsltc on Linux reporting failure on > multiple tests (whitespace35, output63, idkey49, idkey31, math111)
I've analyzed, one of these tests (idkey31), which the XalanJ test suite is reporting as failing. My analysis shows that, XalanJ implementation is correct on this, and this test's gold (i.e, expected output) file is wrongly written. This test's .xsl document says, <!-- Purpose: Test of 'generate-id()' on namespace nodes --> The following XML document is transformed, by this stylesheet, <?xml version="1.0"?> <docs> <doc xmlns:ext="http://somebody.elses.extension"> <section xmlns:foo="http://foo.com"> <inner xmlns:whiz="http://whiz.com/special/page" att="view"><!-- Inner comment -->inner text<?s-pi side ?></inner> </section> </doc> </docs> The stylesheet of this test, is essentially producing result of following XSLT statements (i.e, the stylesheet is printing the count of XML namespace nodes), <xsl:text>Number of IDs accumulated: </xsl:text> <xsl:value-of select="count(descendant-or-self::*/namespace::*)"/> The number of namespace nodes, within the XML document that's been transformed is 4. But the gold file for this test, mentions following, <?xml version="1.0" encoding="UTF-8"?> <out>Number of IDs accumulated: 10</out> I think, the gold file of this test needs to be written like following, <?xml version="1.0" encoding="UTF-8"?> <out>Number of IDs accumulated: 4</out> I can further observe that, after making above mentioned changes to gold file of this test, this test passes. Any thoughts please? -- Regards, Mukul Gandhi --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
