-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Timothy:
Have you tested that those changes will not break other XSLT
processors? Saxon 7 is experimental and there is no guarantee that
further changes will not break it again.
I'm strongly -1 about this changes
Carlos
- ----- Original Message -----
From: "Timothy Larson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 16, 2002 10:56 AM
Subject: [BUGFIX] Cocoon-2.1, Saxon-7.3.1, XSP pages
I solved my problem with Cocoon-2.1, Saxon-7.3.1, and XSP pages,
without breaking support for Xalan.
In the file:
xml-cocoon\src\java\org\apache\cocoon\components\language\markup\xsp\j
ava\xsp.xsl
I did these two steps to allow the generated java source code for XSP
pages to compile
without errors:
Step 1:
To stop the namespaces from the "xsp.xsl" stylesheet from being
inserted at the top of the generated java source file I added the
line:
exclude-result-prefixes="xsp XSLTExtension"
To make this:
<xsl:stylesheet version="1.0"
xmlns:xsp="http://apache.org/xsp"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:XSLTExtension="org.apache.cocoon.components.language.markup.xsp.
XSLTExtension"
exclude-result-prefixes="xsp XSLTExtension">
Step 2:
To stop the namespaces from the source XSP document from landing in
the "generate()" function
I changed the <xsl:copy-of select="."/> elements the <xsl:value-of
select="."/> elements in the
xsp:init-page and xsp:exit-page code in the generate() function:
<!-- Do any user-defined necessary initializations -->
<xsl:for-each select="xsp:init-page">
<xsl:value-of select="."/>
</xsl:for-each>
<!-- Do any user-defined necessary clean-ups -->
<xsl:for-each select="xsp:exit-page">
<xsl:value-of select="."/>
</xsl:for-each>
Would you do any verification you need and check these changes into
CVS please?
Tim
- ---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBPf48g8CcDbA6pDGqEQIWEgCfTCPeVrVLfUAAmveIU4mJhGHeNW0AoO/n
GCiFrp8L50FX4O+CwOtHPcxw
=UGM9
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]