From: SourceForge.net <no...@so...> - 2011-10-31 20:42:25
|
Bugs item #3388088, was opened at 2011-08-07 15:47 Message generated for change (Comment added) made by bobstayton You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=3388088&group_id=21935 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: XSL Group: output: HTML >Status: Pending >Resolution: Fixed Priority: 5 Private: No Submitted By: Nic Gibson (nicg) Assigned to: Robert Stayton (bobstayton) Summary: Chunk template cannot match sections Initial Comment: The non-namespaced stylesheets fail to chunk content correctly when sections are to be chunked if chunkfast.xsl is used when the original XML document is namespaced. The chunk.hierarchy variable is created by processing the original input document not the stripped one. This may have namespaced elements. The 'chunk' named template in chunk-common.xsl assumes that the content is in no namespace. Therefore the test for 'count(ancestor::section) + 1' will always give a result of 1. ---------------------------------------------------------------------- >Comment By: Robert Stayton (bobstayton) Date: 2011-10-31 13:42 Message: I created a new global variable 'no.namespace' that is populated with the stripped document only if the document is in the docbook namespace. That variable is then used for both chunk.hierarchy and for processing the document for output, so they should match. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=3388088&group_id=21935 |