You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Raphaël Luta <lu...@networks.vivendi.net> on 2000/04/12 16:38:25 UTC
[PATCH] XSP doesn't like 'xsp' in PIs
There's a bug in the XSP library (Cocoon 1.7) which prevents the use of the string
'xsp' in PIs after they've been processed by xsp-java.xsl.
This may cause future processing of the document to fail if the stylesheet URL
contains this string.
The following patch should correct the issue:
cvs -z9 diff xsp-java.xsl (in directory
D:\cvs\xml.apache.org\xml-cocoon\src\org\apache\cocoon\processor\xsp\)
Index: xsp-java.xsl
===================================================================
RCS file:
/home/cvspublic/xml-cocoon/src/org/apache/cocoon/processor/xsp/xsp-java.xsl,v
retrieving revision 1.14
diff -r1.14 xsp-java.xsl
110c110
< <xsl:for-each select="/processing-instruction()[not(contains(.,'xsp'))]">
---
> <xsl:for-each select="/processing-instruction()[not(starts-with(.,'xsp') or (contains(.,'cocoon-process') and contains(.,'xsp')))]">
--
Raphaël Luta - luta.raphael@networks.vivendi.net