ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1308130 - in /webservices/commons/trunk/modules/axiom/src/docbkx: devguide.xml userguide.xml xsl/fo.xsl
Date Sun, 01 Apr 2012 15:13:44 GMT
Author: veithen
Date: Sun Apr  1 15:13:43 2012
New Revision: 1308130

URL: http://svn.apache.org/viewvc?rev=1308130&view=rev
Log:
Fixed a couple of formatting issues in the PDF output.

Modified:
    webservices/commons/trunk/modules/axiom/src/docbkx/devguide.xml
    webservices/commons/trunk/modules/axiom/src/docbkx/userguide.xml
    webservices/commons/trunk/modules/axiom/src/docbkx/xsl/fo.xsl

Modified: webservices/commons/trunk/modules/axiom/src/docbkx/devguide.xml
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/src/docbkx/devguide.xml?rev=1308130&r1=1308129&r2=1308130&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/src/docbkx/devguide.xml (original)
+++ webservices/commons/trunk/modules/axiom/src/docbkx/devguide.xml Sun Apr  1 15:13:43 2012
@@ -112,6 +112,7 @@
                     The following StAX implementations are available to test compatibility
with Axiom:
                 </para>
                 <variablelist>
+                    <?dbfo list-presentation="blocks"?>
                     <varlistentry>
                         <term>Woodstox</term>
                         <listitem>
@@ -138,7 +139,7 @@
                                 Geronimo's implementation of the StAX API library will not
be able to locate
                                 the reference implementation unless the following system
properties are set:
                             </para>
-<programlisting>javax.xml.stream.XMLInputFactory=com.bea.xml.stream.MXParserFactory
+<programlisting><?db-font-size 80%?>javax.xml.stream.XMLInputFactory=com.bea.xml.stream.MXParserFactory
 javax.xml.stream.XMLOutputFactory=com.bea.xml.stream.XMLOutputFactoryBase</programlisting>
                         </listitem>
                     </varlistentry>
@@ -931,7 +932,7 @@ javax.xml.stream.XMLOutputFactory=com.be
     <profile>
       <id>apache-release</id>
       <properties>
-        <gpg.passphrase> <!-- YOUR KEY PASSPHRASE --> </gpg.passphrase>
+        <gpg.passphrase><!-- KEY PASSPHRASE --></gpg.passphrase>
       </properties>
     </profile>
   </profiles>

Modified: webservices/commons/trunk/modules/axiom/src/docbkx/userguide.xml
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/src/docbkx/userguide.xml?rev=1308130&r1=1308129&r2=1308130&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/src/docbkx/userguide.xml (original)
+++ webservices/commons/trunk/modules/axiom/src/docbkx/userguide.xml Sun Apr  1 15:13:43 2012
@@ -420,7 +420,7 @@ OMElement documentElement = builder.getD
             </para>
 <programlisting>public OMNamespace declareNamespace(String uri, String prefix);
 public OMNamespace declareNamespace(OMNamespace namespace);
-public OMNamespace findNamespace(String uri, String prefix) throws OMException;</programlisting>
+public OMNamespace findNamespace(String uri, String prefix);</programlisting>
             <para>
                 The <methodname>declareNamespaceXX</methodname> methods are fairly
straightforward. Add a namespace
                 to namespace declarations section. Note that a namespace declaration that
has
@@ -455,7 +455,7 @@ root.addChild(elt1);</programlisting>
             <para>
                 Serialization of the root element produces the following XML:
             </para>
-<screen>&lt;x:root xmlns:x="bar" xmlns:y="bar1"&gt;&lt;x:foo&gt;&lt;y:yuck&gt;blah&lt;/y:yuck&gt;&lt;/x:foo&gt;&lt;/x:root&gt;</screen>
+<programlisting><?db-font-size 80%?>&lt;x:root xmlns:x="bar" xmlns:y="bar1"&gt;&lt;x:foo&gt;&lt;y:yuck&gt;blah&lt;/y:yuck&gt;&lt;/x:foo&gt;&lt;/x:root&gt;</programlisting>
         </section>
         <section>
             <title>Traversing</title>
@@ -542,7 +542,8 @@ while(children.hasNext()){
                 reference to the earlier code sample- <xref linkend="list1"/>
                 that created a SOAP envelope.
             </para>
-<programlisting>XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
+<programlisting>XMLStreamWriter writer =
+    XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
 //dump the output to console with caching
 envelope.serialize(writer); 
 writer.flush();</programlisting>
@@ -558,11 +559,11 @@ writer.flush();</programlisting>
                 which creates a small object model programmatically.
                 Serialization of the root element produces the following:
             </para>
-<screen>&lt;x:root xmlns:x="bar" xmlns:y="bar1"&gt;&lt;x:foo&gt;&lt;y:yuck&gt;blah&lt;/y:yuck&gt;&lt;/x:foo&gt;&lt;/x:root&gt;</screen>
+<programlisting><?db-font-size 80%?>&lt;x:root xmlns:x="bar" xmlns:y="bar1"&gt;&lt;x:foo&gt;&lt;y:yuck&gt;blah&lt;/y:yuck&gt;&lt;/x:foo&gt;&lt;/x:root&gt;</programlisting>
             <para>
                 However, serialization of only the foo element produces the following:
             </para>
-<screen>&lt;x:foo xmlns:x="bar"&gt;&lt;y:yuck xmlns:y="bar1"&gt;blah&lt;/y:yuck&gt;&lt;/x:foo&gt;</screen>
+<programlisting><?db-font-size 80%?>&lt;x:foo xmlns:x="bar"&gt;&lt;y:yuck
xmlns:y="bar1"&gt;blah&lt;/y:yuck&gt;&lt;/x:foo&gt;</programlisting>
             <para>
                 Note how the serializer puts the relevant namespace declarations in place.
             </para>
@@ -1082,11 +1083,11 @@ with CRLF</root>]]></screen>
                         supported in 1.2.9 and the default Axiom implementation is chosen
using the new
                         <varname>org.apache.axiom.om.OMMetaFactory</varname>
system property. For LLOM, you should set:
                     </para>
-<programlisting>org.apache.axiom.om.OMMetaFactory=org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory</programlisting>
+<programlisting><?db-font-size 70%?>org.apache.axiom.om.OMMetaFactory=org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory</programlisting>
                     <para>
                         This is the default and is equivalent to the defaults in 1.2.8. For
DOOM, you should set:
                     </para>
-<programlisting>org.apache.axiom.om.OMMetaFactory=org.apache.axiom.om.impl.dom.factory.OMDOMMetaFactory</programlisting>
+<programlisting><?db-font-size 70%?>org.apache.axiom.om.OMMetaFactory=org.apache.axiom.om.impl.dom.factory.OMDOMMetaFactory</programlisting>
                 </section>
                 <section>
                     <title>Factories returned by <classname>StAXUtils</classname></title>
@@ -1633,7 +1634,8 @@ public InputStream getInputStream() thro
                         </para>
                         <example id="OMDataSource-serialize">
                             <title>Proper implementation of the <methodname>OMDataSource#serialize</methodname>
method</title>
-<programlisting>public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException
{
+<programlisting>public void serialize(XMLStreamWriter xmlWriter)
+        throws XMLStreamException {
     StreamingOMSerializer serializer = new StreamingOMSerializer();
     serializer.serialize(getReader(), xmlWriter);
 }</programlisting>
@@ -1693,7 +1695,7 @@ public InputStream getInputStream() thro
         <title>Appendix</title>
         <section>
             <title>Program Listing for Build and Serialize</title>
-<programlisting>import org.apache.axiom.om.OMElement;
+<programlisting><?db-font-size 80%?>import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMXMLBuilderFactory;
 import org.apache.axiom.om.OMXMLParserWrapper;
 

Modified: webservices/commons/trunk/modules/axiom/src/docbkx/xsl/fo.xsl
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/src/docbkx/xsl/fo.xsl?rev=1308130&r1=1308129&r2=1308130&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/src/docbkx/xsl/fo.xsl (original)
+++ webservices/commons/trunk/modules/axiom/src/docbkx/xsl/fo.xsl Sun Apr  1 15:13:43 2012
@@ -27,4 +27,14 @@
     
     <xsl:param name="admon.graphics.extension">.svg</xsl:param>
     <xsl:param name="admon.graphics.path"><xsl:value-of select="$img.src.path"/></xsl:param>
+
+    <xsl:attribute-set name="monospace.verbatim.properties">
+        <xsl:attribute name="font-size">
+            <xsl:choose>
+                <xsl:when test="processing-instruction('db-font-size')"><xsl:value-of
+                          select="processing-instruction('db-font-size')"/></xsl:when>
+                <xsl:otherwise>inherit</xsl:otherwise>
+            </xsl:choose>
+        </xsl:attribute>
+    </xsl:attribute-set>
 </xsl:stylesheet>
\ No newline at end of file



Mime
View raw message