You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gr...@locus.apache.org on 2000/12/10 19:30:08 UTC
cvs commit: xml-cocoon/src/org/apache/cocoon/processor/xsp xsp-java.xsl
greenrd 00/12/10 10:30:08
Modified: . changes.xml
src/org/apache/cocoon/processor/xsp xsp-java.xsl
Log:
fixed xsp:pi to output before document element not after
Revision Changes Path
1.162 +5 -1 xml-cocoon/changes.xml
Index: changes.xml
===================================================================
RCS file: /home/cvs/xml-cocoon/changes.xml,v
retrieving revision 1.161
retrieving revision 1.162
diff -u -r1.161 -r1.162
--- changes.xml 2000/12/08 22:54:39 1.161
+++ changes.xml 2000/12/10 18:30:07 1.162
@@ -4,7 +4,7 @@
<!--
History of Cocoon changes
- $Id: changes.xml,v 1.161 2000/12/08 22:54:39 greenrd Exp $
+ $Id: changes.xml,v 1.162 2000/12/10 18:30:07 greenrd Exp $
-->
<changes title="History of Changes">
@@ -18,6 +18,10 @@
</devs>
<release version="@version@" date="@date@">
+ <action dev="RDG" type="fix" due-to="Gerard Maas"
+ due-to-email="gerard.maas@alcatel.be">
+ Fixed xsp:pi to add PI before document element instead of after.
+ </action>
<action dev="RDG" type="add">
Added LinkEncodingProcessor, designed to encode all links with session ids if
necessary, using response.encodeUrl().
1.23 +2 -2 xml-cocoon/src/org/apache/cocoon/processor/xsp/xsp-java.xsl
Index: xsp-java.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/xsp-java.xsl,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- xsp-java.xsl 2000/11/20 18:04:40 1.22
+++ xsp-java.xsl 2000/12/10 18:30:07 1.23
@@ -201,7 +201,7 @@
<xsl:template match="xsp:pi">
<!-- Appending to xspCurrentNode doesn't work for Cocoon PIs,
because Cocoon expects its PIs to be at the top level. -->
- document.appendChild(
+ document.insertBefore(
document.createProcessingInstruction(
"<xsl:value-of select="@target"/>",
<xsl:for-each select="xsp:text|xsp:expr">
@@ -216,7 +216,7 @@
+
</xsl:for-each>
""
- )
+ ), document.getDocumentElement ()
);
</xsl:template>