cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphaël Luta <luta.raph...@networks.vivendi.net>
Subject [PATCH] XSP doesn't like 'xsp' in PIs
Date Wed, 12 Apr 2000 14:38:25 GMT
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

Mime
View raw message