httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/docs/manual/style/xsl/util nbsp.xml
Date Mon, 14 Apr 2003 18:40:27 GMT
nd          2003/04/14 11:40:12

  Modified:    docs/manual/style/xsl Tag: APACHE_2_0_BRANCH common.xsl
                        directiveindex.xsl indexpage.xsl manualpage.xsl
                        moduleindex.xsl quickreference.xsl sitemap.xsl
                        synopsis.xsl
  Added:       docs/manual/style/xsl/util Tag: APACHE_2_0_BRANCH nbsp.xml
  Log:
  filter no breaking spaces in text output.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.20.2.6  +31 -4     httpd-2.0/docs/manual/style/xsl/common.xsl
  
  Index: common.xsl
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/common.xsl,v
  retrieving revision 1.20.2.5
  retrieving revision 1.20.2.6
  diff -u -r1.20.2.5 -r1.20.2.6
  --- common.xsl	6 Apr 2003 18:34:50 -0000	1.20.2.5
  +++ common.xsl	14 Apr 2003 18:40:00 -0000	1.20.2.6
  @@ -1,5 +1,7 @@
   <?xml version="1.0"?>
  -<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
  +<!DOCTYPE xsl:stylesheet [
  +    <!ENTITY nbsp SYSTEM "util/nbsp.xml">
  +]>
   <xsl:stylesheet version="1.0"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                     xmlns="http://www.w3.org/1999/xhtml">
  @@ -763,6 +765,31 @@
   
   
     <!--                                                    -->
  +  <!-- Filter &#160; in text() nodes.                     -->
  +  <!-- In some environments this character won't be       -->
  +  <!-- transformed correctly, so we just write it         -->
  +  <!-- explicitely as "&nbsp;"                            -->
  +  <!--                                                    -->
  +  <xsl:template match="text()" name="filter.nbsp">
  +  <xsl:param name="text"><xsl:value-of select="."/></xsl:param>
  +    <xsl:choose>
  +        <xsl:when test="contains($text, '&#160;')">
  +            <xsl:value-of select="substring-before($text, '&#160;')"/>
  +            &nbsp;
  +            <xsl:call-template name="filter.nbsp">
  +                <xsl:with-param name="text"
  +                              select="substring-after($text, '&#160;')"/>
  +            </xsl:call-template>
  +        </xsl:when>
  +
  +        <xsl:otherwise>
  +            <xsl:value-of select="$text"/>
  +        </xsl:otherwise>
  +    </xsl:choose>
  +  </xsl:template>
  +
  +
  +  <!--                                                    -->
     <!-- Process everything else by just passing it through -->
     <!--                                                    -->
     <xsl:template match="*|@*">
  @@ -785,9 +812,9 @@
       </xsl:if>
   
       <a href="#{substring($letters,1,1)}">
  -      <xsl:text>&nbsp;</xsl:text>
  +      &nbsp;
         <xsl:value-of select="substring($letters,1,1)"/>
  -      <xsl:text>&nbsp;</xsl:text>
  +      &nbsp;
       </a>
   
       <xsl:if test="string-length($letters) &gt; 1">
  @@ -858,4 +885,4 @@
     </xsl:template>
     <!-- /module-translatename -->
   
  -</xsl:stylesheet>
  \ No newline at end of file
  +</xsl:stylesheet>
  
  
  
  1.6.2.3   +3 -1      httpd-2.0/docs/manual/style/xsl/directiveindex.xsl
  
  Index: directiveindex.xsl
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/directiveindex.xsl,v
  retrieving revision 1.6.2.2
  retrieving revision 1.6.2.3
  diff -u -r1.6.2.2 -r1.6.2.3
  --- directiveindex.xsl	11 Apr 2003 22:05:34 -0000	1.6.2.2
  +++ directiveindex.xsl	14 Apr 2003 18:40:01 -0000	1.6.2.3
  @@ -1,5 +1,7 @@
   <?xml version="1.0"?>
  -<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
  +<!DOCTYPE xsl:stylesheet [
  +    <!ENTITY nbsp SYSTEM "util/nbsp.xml">
  +]>
   <xsl:stylesheet version="1.0"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                     xmlns="http://www.w3.org/1999/xhtml">
  
  
  
  1.1.2.3   +3 -1      httpd-2.0/docs/manual/style/xsl/indexpage.xsl
  
  Index: indexpage.xsl
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/indexpage.xsl,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- indexpage.xsl	9 Apr 2003 12:55:58 -0000	1.1.2.2
  +++ indexpage.xsl	14 Apr 2003 18:40:03 -0000	1.1.2.3
  @@ -1,5 +1,7 @@
   <?xml version="1.0"?>
  -<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
  +<!DOCTYPE xsl:stylesheet [
  +    <!ENTITY nbsp SYSTEM "util/nbsp.xml">
  +]>
   <xsl:stylesheet version="1.0"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                     xmlns="http://www.w3.org/1999/xhtml">
  
  
  
  1.1.2.3   +3 -1      httpd-2.0/docs/manual/style/xsl/manualpage.xsl
  
  Index: manualpage.xsl
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/manualpage.xsl,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- manualpage.xsl	9 Apr 2003 15:15:53 -0000	1.1.2.2
  +++ manualpage.xsl	14 Apr 2003 18:40:03 -0000	1.1.2.3
  @@ -1,5 +1,7 @@
   <?xml version="1.0"?>
  -<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
  +<!DOCTYPE xsl:stylesheet [
  +    <!ENTITY nbsp SYSTEM "util/nbsp.xml">
  +]>
   <xsl:stylesheet version="1.0"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                     xmlns="http://www.w3.org/1999/xhtml">
  
  
  
  1.3.2.7   +3 -1      httpd-2.0/docs/manual/style/xsl/moduleindex.xsl
  
  Index: moduleindex.xsl
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/moduleindex.xsl,v
  retrieving revision 1.3.2.6
  retrieving revision 1.3.2.7
  diff -u -r1.3.2.6 -r1.3.2.7
  --- moduleindex.xsl	11 Apr 2003 22:05:34 -0000	1.3.2.6
  +++ moduleindex.xsl	14 Apr 2003 18:40:03 -0000	1.3.2.7
  @@ -1,5 +1,7 @@
   <?xml version="1.0"?>
  -<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
  +<!DOCTYPE xsl:stylesheet [
  +    <!ENTITY nbsp SYSTEM "util/nbsp.xml">
  +]>
   <xsl:stylesheet version="1.0"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                     xmlns="http://www.w3.org/1999/xhtml">
  
  
  
  1.7.2.4   +3 -1      httpd-2.0/docs/manual/style/xsl/quickreference.xsl
  
  Index: quickreference.xsl
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/quickreference.xsl,v
  retrieving revision 1.7.2.3
  retrieving revision 1.7.2.4
  diff -u -r1.7.2.3 -r1.7.2.4
  --- quickreference.xsl	11 Apr 2003 22:05:34 -0000	1.7.2.3
  +++ quickreference.xsl	14 Apr 2003 18:40:03 -0000	1.7.2.4
  @@ -1,5 +1,7 @@
   <?xml version="1.0"?>
  -<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
  +<!DOCTYPE xsl:stylesheet [
  +    <!ENTITY nbsp SYSTEM "util/nbsp.xml">
  +]>
   <xsl:stylesheet version="1.0"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                     xmlns="http://www.w3.org/1999/xhtml">
  
  
  
  1.4.2.5   +3 -1      httpd-2.0/docs/manual/style/xsl/sitemap.xsl
  
  Index: sitemap.xsl
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/sitemap.xsl,v
  retrieving revision 1.4.2.4
  retrieving revision 1.4.2.5
  diff -u -r1.4.2.4 -r1.4.2.5
  --- sitemap.xsl	6 Apr 2003 18:34:50 -0000	1.4.2.4
  +++ sitemap.xsl	14 Apr 2003 18:40:03 -0000	1.4.2.5
  @@ -1,5 +1,7 @@
   <?xml version="1.0"?>
  -<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
  +<!DOCTYPE xsl:stylesheet [
  +    <!ENTITY nbsp SYSTEM "util/nbsp.xml">
  +]>
   <xsl:stylesheet version="1.0"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                     xmlns="http://www.w3.org/1999/xhtml">
  
  
  
  1.5.2.7   +3 -1      httpd-2.0/docs/manual/style/xsl/synopsis.xsl
  
  Index: synopsis.xsl
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/synopsis.xsl,v
  retrieving revision 1.5.2.6
  retrieving revision 1.5.2.7
  diff -u -r1.5.2.6 -r1.5.2.7
  --- synopsis.xsl	9 Jan 2003 03:10:55 -0000	1.5.2.6
  +++ synopsis.xsl	14 Apr 2003 18:40:03 -0000	1.5.2.7
  @@ -1,5 +1,7 @@
   <?xml version="1.0"?>
  -<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
  +<!DOCTYPE xsl:stylesheet [
  +    <!ENTITY nbsp SYSTEM "util/nbsp.xml">
  +]>
   <xsl:stylesheet version="1.0"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                     xmlns="http://www.w3.org/1999/xhtml">
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +0 -0      httpd-2.0/docs/manual/style/xsl/util/nbsp.xml
  
  Index: nbsp.xml
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/util/nbsp.xml,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  
  
  

Mime
View raw message