[ http://nagoya.apache.org/jira/browse/XALANJ-1492?page=history ]
Henry Zongaro updated XALANJ-1492:
----------------------------------
Assign To: (was: Xalan Developers Mailing List)
type: New Feature (was: Bug)
Description:
Currently, the only system available to sort a node-list into another node-list
is to write it out into a variable as an RTF, which is wasteful of resources,
then using xalan:nodeset or exslt:node-set on it, which has the side consequence
of removing all relation to the data that wasn't included, in case that might be
useful later. This way is very useful for changing the information to be sorted
somehow, but for a straight conversion is overly complex and wasteful.
As far as I know XPath 2.0 does not eliminate this problem, since it has no
native sorting routines.
I propose adding an extension to Xalan, such as
node-set xalan:sort(node-set,node-set),
that would act similar to the apply-templates/sort desribed above, but return
the DTM handles in sorted order as if it was any other node-set assignment.
I would try to code it, and may yet, but I've only just started working on
extension functions, and it took me long enough simply making date:add()
yesterday. (It's not ready to contribute; for one, it uses regexes right now.)
was:
Currently, the only system available to sort a node-list into another node-list
is to write it out into a variable as an RTF, which is wasteful of resources,
then using xalan:nodeset or exslt:node-set on it, which has the side consequence
of removing all relation to the data that wasn't included, in case that might be
useful later. This way is very useful for changing the information to be sorted
somehow, but for a straight conversion is overly complex and wasteful.
As far as I know XPath 2.0 does not eliminate this problem, since it has no
native sorting routines.
I propose adding an extension to Xalan, such as
node-set xalan:sort(node-set,node-set),
that would act similar to the apply-templates/sort desribed above, but return
the DTM handles in sorted order as if it was any other node-set assignment.
I would try to code it, and may yet, but I've only just started working on
extension functions, and it took me long enough simply making date:add()
yesterday. (It's not ready to contribute; for one, it uses regexes right now.)
Environment:
Operating System: Other
Platform: Other
was:
Operating System: Other
Platform: Other
Priority: Major
Bugzilla Id: (was: 19173)
> Possible XPath sorting extension
> --------------------------------
>
> Key: XALANJ-1492
> URL: http://nagoya.apache.org/jira/browse/XALANJ-1492
> Project: XalanJ2
> Type: New Feature
> Components: XPath-function
> Versions: CurrentCVS
> Environment: Operating System: Other
> Platform: Other
> Reporter: foxyshadis
>
> Currently, the only system available to sort a node-list into another
> node-list
> is to write it out into a variable as an RTF, which is wasteful of resources,
> then using xalan:nodeset or exslt:node-set on it, which has the side
> consequence
> of removing all relation to the data that wasn't included, in case that might
> be
> useful later. This way is very useful for changing the information to be
> sorted
> somehow, but for a straight conversion is overly complex and wasteful.
> As far as I know XPath 2.0 does not eliminate this problem, since it has no
> native sorting routines.
> I propose adding an extension to Xalan, such as
> node-set xalan:sort(node-set,node-set),
> that would act similar to the apply-templates/sort desribed above, but return
> the DTM handles in sorted order as if it was any other node-set assignment.
> I would try to code it, and may yet, but I've only just started working on
> extension functions, and it took me long enough simply making date:add()
> yesterday. (It's not ready to contribute; for one, it uses regexes right now.)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]