On Friday, Oct 31, 2003, at 12:31 Europe/Rome, Sylvain Wallez wrote:


Reinhard Poetz wrote:

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

sylvain 2003/10/31 03:12:56

 Modified:    src/java/org/apache/cocoon Constants.java
              src/java/org/apache/cocoon/components/treeprocessor
                       AbstractProcessingNodeBuilder.java
 Log:
 Sitemap components now can know their usage location in the sitemap


What does this mean? Can you give me an example?



Wow, you're fast!


Here's an example:

public void setup(blah, blah, Parameters params) {
getLogger().debug("I am used at location " + params.getParameter(Constants.SITEMAP_PARAMETER_LOCATION);
}


--> I am used a location /path/to/sitemap.xmap:234:12

Does this mean that we can have the sitemap-oriented stacktraces now <hint/> <hint/>? ;-)


--
Stefano.



Reply via email to