Dear Wiki user, You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change notification.
The following page has been changed by FlorentAndre: http://wiki.apache.org/lenya/DebuggingTips The comment on the change is: minor change (pronouns and a lost >) ------------------------------------------------------------------------------ With Lenya/Cocoon XMAP, debugging a complex process with multiple pipelines in multiple XMAPs can be a challenge. - But... Don't worry ! here you will see 3 different techniques for debugging tour Xmap. + But... Don't worry ! Here you will see 3 different techniques for debugging your Xmap. === 1) Cut the stream and see it === - When first creating an XMAP, I serialize after each generator, aggregator, and transformer and save the XML from the browser to a file. Knowing the results of each process greatly helps with writing the next stage. I often discover namespaces in element names that need to be either dropped in the current process or handled by the next process. The saved output provides reference for later development. [1] + When first creating an XMAP, serialize after each generator, aggregator, and transformer and save the XML from the browser to a file. Knowing the results of each process greatly helps with writing the next stage. + + You may often discover namespaces in element names that need to be either dropped in the current process or handled by the next process. The saved output provides reference for later development. [1] TODO : add an example with explanation of matcher and url address that we have to type. @@ -20, +22 @@ 1 -- Create your own datetime - We use the datetime to prevent overwrites with multiple threads and to provide a history. A disadvantage is that many files are created and must be deleted manually. + Datetime is create to prevent overwrites with multiple threads and to provide an history. A disadvantage is that many files are created and must be deleted manually. - We create a datetime because Lenya's default date format is "yyyy-M-dd HH:mm:ss Z". Most operating systems do not allow colons in filenames. + A datetime is create because Lenya's default date format is "yyyy-M-dd HH:mm:ss Z" and most operating systems do not allow colons in filenames. To configure a new datetime : Open the build\lenya\webapp\WEB-INF\cocoon.xconf Inside the <input-modules> element, add: {{{ - <component-instance class="org.apache.cocoon.components.modules.input.DateInputModule" logger="core.modules.input" name="filedatetime + <component-instance class="org.apache.cocoon.components.modules.input.DateInputModule" logger="core.modules.input" name="filedatetime> <format>yyyy-MM-d-HH-mm-ss</format> </component-instance> }}} @@ -39, +41 @@ This resource groups some transformations that allow you to write the stream. - Copy-paste this in your module's sitemap for a local usage, or in the /lenya/sitemap.xmap for global usage + Copy-paste this in your module's sitemap for a local usage, or in the /lenya/sitemap.xmap for a global usage : {{{ <map:resources> <map:resource name="log-to-file"> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
