Martin Honnen created XALANJ-2721: ------------------------------------- Summary: XSLT 2/3 grouping based on node-name not yet standards compliant Key: XALANJ-2721 URL: https://issues.apache.org/jira/browse/XALANJ-2721 Project: XalanJ2 Issue Type: Bug Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.) Components: Xalan, Xalan-CmdLine, XPath-function Affects Versions: The Latest Development Code Reporter: Martin Honnen Assignee: Gary D. Gregory Attachments: group-by-node-name-test1.xsl, xhtml-elements-sample1.xml
This is a bug report against the XalanJ XSLT 3 development branch. In my view grouping based on fn:node-name is not yet standards compliant as for a sample of XML as {code:java} <root> <p xmlns="http://www.w3.org/1999/xhtml">Paragraph 1.</p> <html:p xmlns:html="http://www.w3.org/1999/xhtml">Paragraph 2.</html:p> </root>{code} and the XSLT code as {code:java} <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs"> <xsl:output method="xml" indent="yes"/> <xsl:template match="/*"> <groups> <xsl:for-each-group select="*" group-by="node-name()"> <group node-name="{current-grouping-key()}"> <xsl:sequence select="current-group()"/> </group> </xsl:for-each-group> </groups> </xsl:template> </xsl:stylesheet> {code} I get a result with two groups while Saxon gives one group (as two elements have the same node name if they namespace and the local name match). -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@xalan.apache.org For additional commands, e-mail: dev-h...@xalan.apache.org