[
http://issues.apache.org/jira/browse/COCOON-1535?page=comments#action_12430426
]
Leszek Gawron commented on COCOON-1535:
---------------------------------------
I do not like that condition to be dropped:
- if ( end == start )
- throw new MalformedURLException("Malformed uri for xmodule source
(cannot find attribute name) : " + uri);
What do you think about <generate src="xmodule:global:*"/> ?
> [PATCH] enhancement to {global:} input module: return all sitemap globals
> -------------------------------------------------------------------------
>
> Key: COCOON-1535
> URL: http://issues.apache.org/jira/browse/COCOON-1535
> Project: Cocoon
> Issue Type: Bug
> Components: - Components: Avalon
> Affects Versions: 2.1.8
> Environment: Operating System: other
> Platform: Other
> Reporter: Mark Lundquist
> Assigned To: Cocoon Developers Team
> Attachments: patch
>
>
> If invoked with an empty attribute name, serializes all the global variables
> to a SAX stream all in one
> whack. This allows for the following:
> <match pattern="globals">
> <generate src="xmodule:global:" />
> <serialize>
> </match>
> The idea is that this pipeline is a convnient way to get visibility to
> sitemap globals from within an XSLT
> stylesheet, without having to pass them in as stylesheet parameters.
> This patch also relaxes XModuleSource to accept an input module name with an
> empty attribute name.
> It should be up to the input module whether an empty attribute is valid.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira