Date: 2004-10-29T07:08:32 Editor: ViPi <[EMAIL PROTECTED]> Wiki: Cocoon Wiki Page: DirectoryGenerator URL: http://wiki.apache.org/cocoon/DirectoryGenerator
no comment Change Log: ------------------------------------------------------------------------------ @@ -84,8 +84,8 @@ Beginners, when converting this kind of output to HTML, sometimes are facing problems on dealing with this namespace. Matching the elements is one of them and removing that namespace from the resulting HTML documents is the other. I've even seen some [http://cocoon.apache.org/link/livesites-2.1.html Cocoon Live Sites] still bearing this namespace within HTML pages, even though (non-X)HTML standards do not allow any namespace. -The solution is quite easy. The [http://cocoon.apache.org/2.1/userdocs/generators/directory-generator.html XSLT Standard] says: - '''NOTE:''' When a stylesheet uses a namespace declaration only for the purposes of addressing the source tree, specifying the prefix in the exclude-result-prefixes attribute will avoid superfluous namespace declarations in the result tree. +The solution is quite easy. The [http://w3.org/TR/xslt#literal-result-element XSLT Standard] says: + '''NOTE:''' When a stylesheet uses a namespace declaration only for the purposes of addressing the source tree, specifying the prefix in the exclude-result-prefixes attribute will avoid superfluous namespace declarations in the result tree. As an example, the following stylesheet will transform !DirectoryGenerator's output into an HTML unordered list with '''no''' such superfluous namespace:
