You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by bl...@locus.apache.org on 2000/12/21 23:14:09 UTC
cvs commit: xml-cocoon/src/org/apache/cocoon/components/language/markup/xsp/java xsp.xsl
bloritsch 00/12/21 14:14:07
Modified: src/org/apache/cocoon/components/language/markup/xsp/java
Tag: xml-cocoon2 xsp.xsl
Log:
Fixed issue where xsp:attributes were not being added in the proper order
before a regular element:
<option>
<xsp:attribute name="value"><esql:get-string column="id"/></xsp:attribute>
<esql:get-string column="name"/>
</option>
Works now!
Revision Changes Path
No revision
No revision
1.1.2.14 +4 -2 xml-cocoon/src/org/apache/cocoon/components/language/markup/xsp/java/Attic/xsp.xsl
Index: xsp.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/components/language/markup/xsp/java/Attic/xsp.xsl,v
retrieving revision 1.1.2.13
retrieving revision 1.1.2.14
diff -u -r1.1.2.13 -r1.1.2.14
--- xsp.xsl 2000/12/21 20:38:38 1.1.2.13
+++ xsp.xsl 2000/12/21 22:14:06 1.1.2.14
@@ -11,7 +11,7 @@
<!--
* @author <a href="mailto:ricardo@apache.org>Ricardo Rocha</a>
- * @version CVS $Revision: 1.1.2.13 $ $Date: 2000/12/21 20:38:38 $
+ * @version CVS $Revision: 1.1.2.14 $ $Date: 2000/12/21 22:14:06 $
-->
<!-- XSP Core logicsheet for the Java language -->
@@ -334,6 +334,8 @@
<xsl:apply-templates select="@*"/>
+ <xsl:apply-templates select="xsp:attribute"/>
+
this.contentHandler.startElement(
"<xsl:value-of select="namespace-uri(.)"/>",
"<xsl:value-of select="local-name(.)"/>",
@@ -343,7 +345,7 @@
xspAttr.clear();
- <xsl:apply-templates/>
+ <xsl:apply-templates select="node()[not(name(.) = 'xsp:attribute')]"/>
this.contentHandler.endElement(
"<xsl:value-of select="namespace-uri(.)"/>",