[interchange-docs] xmldocs - docelic modified 2 files

docs at icdevgroup.org docs at icdevgroup.org
Tue Mar 28 09:17:45 EST 2006


User:      docelic
Date:      2006-03-28 14:17:45 GMT
Modified:  docbook  html-chunks.xsl
Modified:  refs     shipping.tag
Log:
* Got another xsl bit working. Added <meta name=purpose content=...>,
  again to improve swish searching behavior.

  Instead of current search result, such as:

    no_locale_parse

  It will look like:

    no_locale_parse -- do not parse [L] or [LC] tags

Revision  Changes    Path
1.17      +20 -0     xmldocs/docbook/html-chunks.xsl


rev 1.17, prev_rev 1.16
Index: html-chunks.xsl
===================================================================
RCS file: /var/cvs/xmldocs/docbook/html-chunks.xsl,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- html-chunks.xsl	28 Mar 2006 10:16:59 -0000	1.16
+++ html-chunks.xsl	28 Mar 2006 14:17:45 -0000	1.17
@@ -218,5 +218,25 @@
 	</xsl:template>
 
 
+
+	<!-- This chunk inserts <meta name="purpose" content="PURPOSE_LINE" />,
+	     to help Swish index documentation properly. -->
+	<xsl:template match="refpurpose[1]">
+		<xsl:text> </xsl:text>
+		<xsl:call-template name="dingbat">
+			<xsl:with-param name="dingbat">em-dash</xsl:with-param>
+		</xsl:call-template> 
+		<xsl:text> </xsl:text>
+		<xsl:apply-templates/>
+
+		<xsl:variable name="purpose">
+		<xsl:value-of select="." />
+		</xsl:variable>
+
+		<xsl:text disable-output-escaping="yes">&lt;meta name="purpose" content="</xsl:text>
+		<xsl:value-of select="$purpose" />
+		<xsl:text disable-output-escaping="yes">" /&gt;</xsl:text>
+	</xsl:template>
+
 </xsl:stylesheet>
 



1.3       +2 -2      xmldocs/refs/shipping.tag


rev 1.3, prev_rev 1.2
Index: shipping.tag
===================================================================
RCS file: /var/cvs/xmldocs/refs/shipping.tag,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- shipping.tag	28 Mar 2006 14:02:28 -0000	1.2
+++ shipping.tag	28 Mar 2006 14:17:45 -0000	1.3
@@ -1,5 +1,5 @@
 __NAME__ purpose
-display shipping cost of electronic cart
+display shipping cost for items in electronic cart
 __END__
 
 __NAME__ synopsis 
@@ -272,4 +272,4 @@
 &ROW_CURRENCYDISPLAY;
 &ROW_INTERPOLATE_0;
 &ROW_REPARSE_1;
-__END__
\ No newline at end of file
+__END__








More information about the docs mailing list