Update of /cvsroot/fink/web/xml
In directory vz-cvs-3.sog:/tmp/cvs-serv14182

Modified Files:
        finkdoc-website.i18n.xsl finkdoc-website.xsl 
Log Message:
When generating .php.inc, Replace " in shorttitle by " to avoid syntax 
errors

Index: finkdoc-website.xsl
===================================================================
RCS file: /cvsroot/fink/web/xml/finkdoc-website.xsl,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- finkdoc-website.xsl 20 Oct 2004 13:01:09 -0000      1.16
+++ finkdoc-website.xsl 27 Oct 2011 11:35:06 -0000      1.17
@@ -1,6 +1,9 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
-                version="1.1">
+                version="1.1"
+                xmlns:str="http://exslt.org/strings";
+                extension-element-prefixes="str"
+                >
 
 <!-- just a dummy, everything is written with xsl:document -->
 <xsl:output method="text"/>
@@ -75,7 +78,8 @@
 </xsl:text>
 <xsl:for-each select="chapter">
 <xsl:text>  "</xsl:text><xsl:value-of select="$DESTDIR"/><xsl:value-of 
select="@filename"/><xsl:text>.php", "</xsl:text>
-<xsl:value-of select="shorttitle"/>
+<!-- <xsl:value-of select="shorttitle"/> -->
+<xsl:value-of select="str:replace(shorttitle, '&quot;', '&amp;quot;')"/>
 <xsl:text>",
 </xsl:text>
 </xsl:for-each>

Index: finkdoc-website.i18n.xsl
===================================================================
RCS file: /cvsroot/fink/web/xml/finkdoc-website.i18n.xsl,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- finkdoc-website.i18n.xsl    20 Oct 2004 13:01:09 -0000      1.21
+++ finkdoc-website.i18n.xsl    27 Oct 2011 11:35:06 -0000      1.22
@@ -1,6 +1,9 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
-                version="1.1">
+                version="1.1"
+                xmlns:str="http://exslt.org/strings";
+                extension-element-prefixes="str"
+                >
 
 <!-- set the variables used throughout the document -->
 <xsl:variable name="lang-ext" ><xsl:value-of select="document/@lang" 
/></xsl:variable>
@@ -86,7 +89,8 @@
 </xsl:text>
 <xsl:for-each select="chapter">
 <xsl:text>  "</xsl:text><xsl:value-of select="$DESTDIR"/><xsl:value-of 
select="@filename"/><xsl:text>.php?phpLang=</xsl:text><xsl:value-of 
select="$lang-ext"/><xsl:text>", "</xsl:text>
-<xsl:value-of select="shorttitle"/>
+<!-- <xsl:value-of select="shorttitle"/> -->
+<xsl:value-of select="str:replace(shorttitle, '&quot;', '&amp;quot;')"/>
 <xsl:text>",
 </xsl:text>
 </xsl:for-each>


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to