rubys 01/10/08 02:44:41
Modified: proposal/gump/stylesheet bash.xsl win2k.xsl
Log:
Performance optimization: hardcode the expansion of the most common
element. Avoids a lot of calls to expand.
Revision Changes Path
1.45 +8 -0 jakarta-alexandria/proposal/gump/stylesheet/bash.xsl
Index: bash.xsl
===================================================================
RCS file: /home/cvs/jakarta-alexandria/proposal/gump/stylesheet/bash.xsl,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- bash.xsl 2001/10/07 12:16:00 1.44
+++ bash.xsl 2001/10/08 09:44:41 1.45
@@ -620,6 +620,14 @@
</xsl:if>
</xsl:template>
+ <xsl:template match="a[count(*)=0]">
+ <xsl:text>eval "echo \<a href=\"</xsl:text>
+ <xsl:value-of select="@href"/>
+ <xsl:text>\"\></xsl:text>
+ <xsl:value-of select="."/>
+ <xsl:text>\</a\> $OUT" </xsl:text>
+ </xsl:template>
+
<xsl:template match="*">
<xsl:text>eval "echo \<</xsl:text>
<xsl:value-of select="name()"/>
1.18 +8 -0 jakarta-alexandria/proposal/gump/stylesheet/win2k.xsl
Index: win2k.xsl
===================================================================
RCS file: /home/cvs/jakarta-alexandria/proposal/gump/stylesheet/win2k.xsl,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- win2k.xsl 2001/10/07 12:16:00 1.17
+++ win2k.xsl 2001/10/08 09:44:41 1.18
@@ -553,6 +553,14 @@
</xsl:if>
</xsl:template>
+ <xsl:template match="a[count(*)=0]">
+ <xsl:text>echo ^<a href="</xsl:text>
+ <xsl:value-of select="@href"/>
+ <xsl:text>"^></xsl:text>
+ <xsl:value-of select="."/>
+ <xsl:text>^</a^> %OUT% </xsl:text>
+ </xsl:template>
+
<xsl:template match="*">
<xsl:text>echo ^<</xsl:text>
<xsl:value-of select="name()"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]