Hi, I have an XSL stylesheet which needs to be preprocessed with JXTemplate so that the resulting sheet strictly conforms to XSL 1.0 (so it can be processed by some recent browsers).
The stylesheet looks like this:
<xsl:stylesheet version="1.0"
xmlns=" <http://www.w3.org/1999/xhtml>
http://www.w3.org/1999/xhtml"
xmlns:xsl=" <http://www.w3.org/1999/XSL/Transform>
http://www.w3.org/1999/XSL/Transform"
xmlns:jx=" <http://apache.org/cocoon/templates/jx/1.0>
http://apache.org/cocoon/templates/jx/1.0"
exclude-result-prefixes="jx">
<!-- Parameter declaration. -->
<jx:choose>
<jx:when test="${empty(cocoon.request.select)}">
<xsl:param name="select">start</xsl:param>
</jx:when>
<jx:otherwise>
<xsl:param name="select">${cocoon.request.select}</xsl:param>
</jx:otherwise>
</jx:choose>
<!-- remainder omitted -->
</xsl:stylesheet>
Now if I preprocess it like this:
<map:match pattern="*.xsl">
<map:generate label="style" type="jx" src="{0}"/>
<map:serialize type="xml"/>
</map:match>
... then the resulting output still contains the xmlns:jx attribute in the
<xsl:stylesheet> tag:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE stylesheet>
<xsl:stylesheet xmlns=" <http://www.w3.org/1999/xhtml>
http://www.w3.org/1999/xhtml"
xmlns:xsl=" <http://www.w3.org/1999/XSL/Transform>
http://www.w3.org/1999/XSL/Transform"
xmlns:jx=" <http://apache.org/cocoon/templates/jx/1.0>
http://apache.org/cocoon/templates/jx/1.0"
version="1.0"
exclude-result-prefixes="jx">
<xsl:param name="select">start</xsl:param>
<!-- remainder omitted -->
</xsl:stylesheet>
This should not be necessary since all <jx:tag>s have been processed and
removed from the output.
Any clues how I can remove them easily (without writing another XSL
stylesheet hopefully)?
Kind regards,
Christian Schlichtherle
--
Schlichtherle IT Services
Wittelsbacherstr. 10a
10707 Berlin
Tel: +49 (0) 30 / 34 35 29 29
Mobil: +49 (0) 173 / 27 12 470
<mailto:[EMAIL PROTECTED]> mailto:[EMAIL PROTECTED] <
<mailto:[EMAIL PROTECTED]> mailto:[EMAIL PROTECTED]>
<http://www.schlichtherle.de> http://www.schlichtherle.de <
<http://www.schlichtherle.de/> http://www.schlichtherle.de/>
smime.p7s
Description: S/MIME cryptographic signature
