xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mukul Gandhi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (XALANJ-2572) Extension implementation for data grouping
Date Fri, 10 May 2013 01:10:13 GMT

    [ https://issues.apache.org/jira/browse/XALANJ-2572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13653455#comment-13653455
] 

Mukul Gandhi commented on XALANJ-2572:
--------------------------------------

Wanted to mention this,

This extension implementation emits grouping results wrapped within groups/group/@key fragments.
This is very much hard coded within this extension. I couldn't avoid such a design, since
Xalan extension framework looks like cannot provide a single pass XSLT 2.0 for-each-group
like semantics (with things like current-group(), current-grouping-key() available as a result).

This may be overcome by post processing within the stylesheet, using built-in node-set extension
for a user specific rendering of grouping results.
                
> Extension implementation for data grouping
> ------------------------------------------
>
>                 Key: XALANJ-2572
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2572
>             Project: XalanJ2
>          Issue Type: Task
>      Security Level: No security risk; visible to anyone(Ordinary problems in Xalan projects.
 Anybody can view the issue.) 
>          Components: Xalan-extensions
>    Affects Versions: 2.7.1
>            Reporter: Mukul Gandhi
>            Assignee: Steven J. Hathaway
>            Priority: Minor
>         Attachments: GroupExtensionUtil.java, Group.java, output_l1.xml, output_l2.xml,
test_l1.xml, test_l1.xsl, test_l2.xml, test_l2.xsl
>
>
> I thought the Xalan forum may be right place to post this.
> I've been thinking on this topic lately. I wrote a Xalan extension quite equivalent to
XSLT 2.0 for-each-group element. The implementation I'm submitting doesn't provide full range
of capabilities as XSLT 2.0 for-each-group element, but it seems to be fairly useful to me
for XSLT 1.0 environments. The well known grouping techniques for XSLT 1.0 environments like
muenchian grouping have some limitations I think, for example its difficult to specify multilevel
groups with muenchian technique.
> I'm providing source code of the extension implementation, and few examples.
> The example files should be collected as follows,
> *l1.*
> *l2.*
> The downside of this extension is that, its an extension and not pure XSLT 1.0. But it
may be used, if Xalan has to be the XSL environment.
> There might be few bugs with the submission I'm providing, since I've done limited testing
on this. Any feedback is welcome.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


Mime
View raw message