You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by js...@apache.org on 2002/11/12 09:11:47 UTC
cvs commit: jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/html radioToPDA.jelly
jstrachan 2002/11/12 00:11:47
Modified: jelly/src/test/org/apache/commons/jelly/html
radioToPDA.jelly
Log:
minor patch to include text content inside <td> elements
Revision Changes Path
1.3 +3 -3 jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/html/radioToPDA.jelly
Index: radioToPDA.jelly
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/html/radioToPDA.jelly,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- radioToPDA.jelly 5 Nov 2002 07:45:57 -0000 1.2
+++ radioToPDA.jelly 12 Nov 2002 08:11:47 -0000 1.3
@@ -27,20 +27,20 @@
<!-- strip out these elements-->
<jsl:template match="form|table|td|center">
- <jsl:applyTemplates select="*"/>
+ <jsl:applyTemplates select="*|text()"/>
</jsl:template>
<jsl:template match="tr">
<br />
<div>
- <jsl:applyTemplates select="*"/>
+ <jsl:applyTemplates select="*|text()"/>
</div>
</jsl:template>
<jsl:template match="script|img|input"/>
<!-- pass through all other elements -->
- <jsl:template match="*">
+ <jsl:template match="*" trim="false">
<jsl:copy>
<jsl:applyTemplates/>
</jsl:copy>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>