Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77676 - in trunk/tools: boostbook/xsl build/v2/doc/src
From: steven_at_[hidden]
Date: 2012-03-31 16:38:36


Author: steven_watanabe
Date: 2012-03-31 16:38:35 EDT (Sat, 31 Mar 2012)
New Revision: 77676
URL: http://svn.boost.org/trac/boost/changeset/77676

Log:
Oops. Use the right attribute.
Text files modified:
   trunk/tools/boostbook/xsl/annotation.xsl | 2 +-
   trunk/tools/boostbook/xsl/docbook.xsl | 4 ++--
   trunk/tools/build/v2/doc/src/reference.xml | 32 ++++++++++++++++++--------------
   3 files changed, 21 insertions(+), 17 deletions(-)

Modified: trunk/tools/boostbook/xsl/annotation.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/annotation.xsl (original)
+++ trunk/tools/boostbook/xsl/annotation.xsl 2012-03-31 16:38:35 EDT (Sat, 31 Mar 2012)
@@ -388,7 +388,7 @@
     </computeroutput>
   </xsl:template>
 
- <xsl:template match="code[@lang='jam']" mode="annotation">
+ <xsl:template match="code[@language='jam']" mode="annotation">
     <computeroutput>
       <xsl:apply-templates mode="annotation"/>
     </computeroutput>

Modified: trunk/tools/boostbook/xsl/docbook.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/docbook.xsl (original)
+++ trunk/tools/boostbook/xsl/docbook.xsl 2012-03-31 16:38:35 EDT (Sat, 31 Mar 2012)
@@ -392,7 +392,7 @@
     </computeroutput>
   </xsl:template>
 
- <xsl:template match="code[@lang='jam']">
+ <xsl:template match="code[@language='jam']">
     <computeroutput>
       <xsl:apply-templates mode="highlight-jam"/>
     </computeroutput>
@@ -453,7 +453,7 @@
     <programlisting><xsl:apply-templates/></programlisting>
   </xsl:template>
 
- <xsl:template match="programlisting[@lang='jam']">
+ <xsl:template match="programlisting[@language='jam']">
     <programlisting>
       <xsl:apply-templates mode="highlight-jam"/>
     </programlisting>

Modified: trunk/tools/build/v2/doc/src/reference.xml
==============================================================================
--- trunk/tools/build/v2/doc/src/reference.xml (original)
+++ trunk/tools/build/v2/doc/src/reference.xml 2012-03-31 16:38:35 EDT (Sat, 31 Mar 2012)
@@ -1830,35 +1830,35 @@
 
         <listitem id="bbv2.reference.modules.modules.binding">
           <indexterm zone="bbv2.reference.modules.modules.binding"><primary>binding</primary></indexterm>
- <code lang="jam">rule binding ( module-name )</code>
+ <code language="jam">rule binding ( module-name )</code>
           <para>Returns the filesystem binding of the given module.</para>
           <para>For example, a module can get its own location with:
- <programlisting>me = [ modules.binding $(__name__) ] ;</programlisting>
+ <programlisting language="jam">me = [ modules.binding $(__name__) ] ;</programlisting>
           </para>
         </listitem>
 
         <listitem id="bbv2.reference.modules.modules.poke">
           <indexterm zone="bbv2.reference.modules.modules.poke"><primary>poke</primary></indexterm>
- <code lang="jam">rule poke ( module-name ? : variables + : value * )</code>
+ <code language="jam">rule poke ( module-name ? : variables + : value * )</code>
           <para>Sets the module-local value of a variable.</para>
           <para>For example, to set a variable in the global module:
- <programlisting>modules.poke : ZLIB_INCLUDE : /usr/local/include ;</programlisting>
+ <programlisting language="jam">modules.poke : ZLIB_INCLUDE : /usr/local/include ;</programlisting>
           </para>
         </listitem>
 
         <listitem id="bbv2.reference.modules.modules.peek">
           <indexterm zone="bbv2.reference.modules.modules.peek"><primary>peek</primary></indexterm>
- <code lang="jam">rule peek ( module-name ? : variables + )</code>
+ <code language="jam">rule peek ( module-name ? : variables + )</code>
           <para>Returns the module-local value of a variable.</para>
           <para>
             For example, to read a variable from the global module:
- <programlisting>local ZLIB_INCLUDE = [ modules.peek : ZLIB_INCLUDE ] ;</programlisting>
+ <programlisting language="jam">local ZLIB_INCLUDE = [ modules.peek : ZLIB_INCLUDE ] ;</programlisting>
           </para>
         </listitem>
 
         <listitem id="bbv2.reference.modules.modules.call-in">
           <indexterm zone="bbv2.reference.modules.modules.call-in"><primary>call-in</primary></indexterm>
- <code lang="jam">rule call-in ( module-name ? : rule-name args * : * ) </code>
+ <code language="jam">rule call-in ( module-name ? : rule-name args * : * ) </code>
           <para>Call the given rule locally in the given module. Use
           this for rules accepting rule names as arguments, so that
           the passed rule may be invoked in the context of the rule's
@@ -1867,7 +1867,8 @@
           <note><para>rules called this way may accept at most
           8 parameters.</para></note></para>
           <para>Example:
- <programlisting>rule filter ( f : values * )
+<programlisting language="jam">
+rule filter ( f : values * )
 {
     local m = [ CALLER_MODULE ] ;
     local result ;
@@ -1879,13 +1880,14 @@
         }
     }
     return result ;
-}</programlisting>
+}
+</programlisting>
           </para>
         </listitem>
 
         <listitem id="bbv2.reference.modules.modules.load">
           <indexterm zone="bbv2.reference.modules.modules.load"><primary>load</primary></indexterm>
- <code lang="jam">rule load ( module-name : filename ? : search * )</code>
+ <code language="jam">rule load ( module-name : filename ? : search * )</code>
           <para>Load the indicated module if it is not already loaded.</para>
           <variablelist>
             <varlistentry>
@@ -1910,7 +1912,7 @@
 
         <listitem id="bbv2.reference.modules.modules.import">
           <indexterm zone="bbv2.reference.modules.modules.import"><primary>import</primary></indexterm>
- <code lang="jam">rule import ( module-names + : rules-opt * : rename-opt * )</code>
+ <code language="jam">rule import ( module-names + : rules-opt * : rename-opt * )</code>
           <para>Load the indicated module and import rule names into the
           current module. Any members of <code>rules-opt</code> will be
           available without qualification in the caller's module. Any
@@ -1923,16 +1925,18 @@
           <note><para>The <literal>import</literal> rule is available
           without qualification in all modules.</para></note>
           <para>Examples:
- <programlisting>import path ;
+<programlisting language="jam">
+import path ;
 import path : * ;
 import path : join ;
-import path : native make : native-path make-path ;</programlisting>
+import path : native make : native-path make-path ;
+</programlisting>
           </para>
         </listitem>
 
         <listitem id="bbv2.reference.modules.modules.clone-rules">
           <indexterm zone="bbv2.reference.modules.modules.clone-rules"><primary>clone-rules</primary></indexterm>
- <code lang="jam">rule clone-rules ( source-module target-module )</code>
+ <code language="jam">rule clone-rules ( source-module target-module )</code>
           <para>Define exported copies in <code>$(target-module)</code>
           of all rules exported from <code>$(source-module)</code>. Also
           make them available in the global module with qualification,


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk