mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Mark Craig
28.26.2011 f2d1302b1ba5567d243610d31cc7d8cd0df7b8b1
Implement basic syntax highlighting for HTML and PDF
11 files modified
182 ■■■■■ changed files
opendj3/pom.xml 8 ●●●●● patch | view | raw | blame | history
opendj3/src/main/docbkx-stylesheets/fo/coredoc.xsl 6 ●●●●● patch | view | raw | blame | history
opendj3/src/main/docbkx-stylesheets/html/chunked.xsl 76 ●●●●● patch | view | raw | blame | history
opendj3/src/main/docbkx-stylesheets/html/coredoc.xsl 78 ●●●●● patch | view | raw | blame | history
opendj3/src/main/docbkx/admin-guide/chap-ldap-operations.xml 2 ●●● patch | view | raw | blame | history
opendj3/src/main/docbkx/dev-guide/chap-get-sdk.xml 2 ●●● patch | view | raw | blame | history
opendj3/src/main/docbkx/shared/man-ldapcompare.xml 2 ●●● patch | view | raw | blame | history
opendj3/src/main/docbkx/shared/man-ldapdelete.xml 2 ●●● patch | view | raw | blame | history
opendj3/src/main/docbkx/shared/man-ldapmodify.xml 2 ●●● patch | view | raw | blame | history
opendj3/src/main/docbkx/shared/man-ldappasswordmodify.xml 2 ●●● patch | view | raw | blame | history
opendj3/src/main/docbkx/shared/man-ldapsearch.xml 2 ●●● patch | view | raw | blame | history
opendj3/pom.xml
@@ -142,6 +142,8 @@
          <draftMode>yes</draftMode>
          <draftWatermarkImage>http://docbook.sourceforge.net/release/images/draft.png</draftWatermarkImage>
          <highlightSource>1</highlightSource>
          <includes>*/OpenDJ-*.xml</includes>
          <xincludeSupported>true</xincludeSupported>
          
@@ -555,6 +557,12 @@
            <version>1.2</version> <!-- Should use 2.0, but it doesn't exist? -->
            <scope>runtime</scope>
          </dependency>
          <dependency>
           <groupId>net.sf.xslthl</groupId>
           <artifactId>xslthl</artifactId>
           <version>2.0.2</version>
           <scope>runtime</scope>
          </dependency>
        </dependencies>
      </plugin>
      <plugin>
opendj3/src/main/docbkx-stylesheets/fo/coredoc.xsl
@@ -10,7 +10,7 @@
  ! Suite 900, Mountain View, California, 94041, USA.
  !
  ! You can also obtain a copy of the license at
  ! trunk/opendj3/legal-notices/CC-BY-NC-ND.txt.
  ! src/main/resources/legal-notices/CC-BY-NC-ND.txt.
  ! See the License for the specific language governing permissions
  ! and limitations under the License.
  !
@@ -24,9 +24,9 @@
  !    
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 <xsl:import href="urn:docbkx:stylesheet"/>
 <xsl:import href="titlepages.xsl"/>
 <xsl:import href="urn:docbkx:stylesheet/highlight.xsl" />
 
 <xsl:param name="page.height.portrait">9in</xsl:param>
 <xsl:param name="page.width.portrait">7.5in</xsl:param>
@@ -58,7 +58,6 @@
  <xsl:attribute name="font-style">italic</xsl:attribute>
 </xsl:attribute-set>
 
 <xsl:param name="generate.toc">
  appendix  nop
  article/appendix  nop
@@ -101,5 +100,4 @@
 </xsl:attribute-set>
 <xsl:param name="ulink.footnotes" select="1" />
</xsl:stylesheet>
opendj3/src/main/docbkx-stylesheets/html/chunked.xsl
@@ -24,8 +24,10 @@
  !    
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 xmlns:xslthl="http://xslthl.sf.net" exclude-result-prefixes="xslthl"
 version="1.0">
 <xsl:import href="urn:docbkx:stylesheet" />
 <xsl:import href="urn:docbkx:stylesheet/highlight.xsl" />
 <xsl:param name="html.stylesheet">css/coredoc.css</xsl:param>
 <xsl:param name="chunk.section.depth" select="0" />
@@ -56,4 +58,78 @@
 <xsl:param name="toc.section.depth" select="1" />
 <xsl:param name="toc.max.depth" select="1" />
 <xsl:param name="generate.meta.abstract" select="1" />
 <xsl:template match="xslthl:keyword" mode="xslthl">
   <strong class="hl-keyword">
     <xsl:apply-templates mode="xslthl"/>
   </strong>
 </xsl:template>
 <xsl:template match="xslthl:string" mode="xslthl">
   <strong class="hl-string">
     <em style="color: #f58220">
       <xsl:apply-templates mode="xslthl"/>
     </em>
   </strong>
 </xsl:template>
 <xsl:template match="xslthl:comment" mode="xslthl">
   <em class="hl-comment" style="color: #868686">
     <xsl:apply-templates mode="xslthl"/>
   </em>
 </xsl:template>
 <xsl:template match="xslthl:directive" mode="xslthl">
   <span class="hl-directive" style="color: #868686">
     <xsl:apply-templates mode="xslthl"/>
   </span>
 </xsl:template>
 <xsl:template match="xslthl:tag" mode="xslthl">
   <strong class="hl-tag" style="color: #f58220">
     <xsl:apply-templates mode="xslthl"/>
   </strong>
 </xsl:template>
 <xsl:template match="xslthl:attribute" mode="xslthl">
   <span class="hl-attribute" style="color: #868686">
     <xsl:apply-templates mode="xslthl"/>
   </span>
 </xsl:template>
 <xsl:template match="xslthl:value" mode="xslthl">
   <span class="hl-value" style="color: #333">
     <xsl:apply-templates mode="xslthl"/>
   </span>
 </xsl:template>
 <xsl:template match="xslthl:html" mode="xslthl">
   <strong>
     <em style="color: #f58220">
       <xsl:apply-templates mode="xslthl"/>
     </em>
   </strong>
 </xsl:template>
 <xsl:template match="xslthl:xslt" mode="xslthl">
   <strong style="color: #868686">
     <xsl:apply-templates mode="xslthl"/>
   </strong>
 </xsl:template>
 <!-- Not emitted since XSLTHL 2.0 -->
 <xsl:template match="xslthl:section" mode="xslthl">
   <strong>
     <xsl:apply-templates mode="xslthl"/>
   </strong>
 </xsl:template>
 <xsl:template match="xslthl:number" mode="xslthl">
   <span class="hl-number">
     <xsl:apply-templates mode="xslthl"/>
   </span>
 </xsl:template>
 <xsl:template match="xslthl:annotation" mode="xslthl">
   <em>
     <span class="hl-annotation" style="color: #868686">
       <xsl:apply-templates mode="xslthl"/>
     </span>
   </em>
 </xsl:template>
 <!-- Not sure which element will be in final XSLTHL 2.0 -->
 <xsl:template match="xslthl:doccomment|xslthl:doctype" mode="xslthl">
   <strong class="hl-tag" style="color: #868686">
     <xsl:apply-templates mode="xslthl"/>
   </strong>
 </xsl:template>
</xsl:stylesheet>
opendj3/src/main/docbkx-stylesheets/html/coredoc.xsl
@@ -10,7 +10,7 @@
  ! Suite 900, Mountain View, California, 94041, USA.
  !
  ! You can also obtain a copy of the license at
  ! trunk/opendj3/legal-notices/CC-BY-NC-ND.txt.
  ! src/main/resources/legal-notices/CC-BY-NC-ND.txt.
  ! See the License for the specific language governing permissions
  ! and limitations under the License.
  !
@@ -24,8 +24,10 @@
  !    
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xslthl="http://xslthl.sf.net" exclude-result-prefixes="xslthl"
 version="1.0">
 <xsl:import href="urn:docbkx:stylesheet" />
 <xsl:import href="urn:docbkx:stylesheet/highlight.xsl" />
 <xsl:param name="html.stylesheet">css/coredoc.css</xsl:param>
 <xsl:param name="generate.legalnotice.link" select="1" />
@@ -53,4 +55,78 @@
 <xsl:param name="toc.section.depth" select="1" />
 <xsl:param name="toc.max.depth" select="1" />
 <xsl:param name="generate.meta.abstract" select="1" />
 <xsl:template match="xslthl:keyword" mode="xslthl">
   <strong class="hl-keyword">
     <xsl:apply-templates mode="xslthl"/>
   </strong>
 </xsl:template>
 <xsl:template match="xslthl:string" mode="xslthl">
   <strong class="hl-string">
     <em style="color: #f58220">
       <xsl:apply-templates mode="xslthl"/>
     </em>
   </strong>
 </xsl:template>
 <xsl:template match="xslthl:comment" mode="xslthl">
   <em class="hl-comment" style="color: #868686">
     <xsl:apply-templates mode="xslthl"/>
   </em>
 </xsl:template>
 <xsl:template match="xslthl:directive" mode="xslthl">
   <span class="hl-directive" style="color: #868686">
     <xsl:apply-templates mode="xslthl"/>
   </span>
 </xsl:template>
 <xsl:template match="xslthl:tag" mode="xslthl">
   <strong class="hl-tag" style="color: #f58220">
     <xsl:apply-templates mode="xslthl"/>
   </strong>
 </xsl:template>
 <xsl:template match="xslthl:attribute" mode="xslthl">
   <span class="hl-attribute" style="color: #868686">
     <xsl:apply-templates mode="xslthl"/>
   </span>
 </xsl:template>
 <xsl:template match="xslthl:value" mode="xslthl">
   <span class="hl-value" style="color: #333">
     <xsl:apply-templates mode="xslthl"/>
   </span>
 </xsl:template>
 <xsl:template match="xslthl:html" mode="xslthl">
   <strong>
     <em style="color: #f58220">
       <xsl:apply-templates mode="xslthl"/>
     </em>
   </strong>
 </xsl:template>
 <xsl:template match="xslthl:xslt" mode="xslthl">
   <strong style="color: #868686">
     <xsl:apply-templates mode="xslthl"/>
   </strong>
 </xsl:template>
 <!-- Not emitted since XSLTHL 2.0 -->
 <xsl:template match="xslthl:section" mode="xslthl">
   <strong>
     <xsl:apply-templates mode="xslthl"/>
   </strong>
 </xsl:template>
 <xsl:template match="xslthl:number" mode="xslthl">
   <span class="hl-number">
     <xsl:apply-templates mode="xslthl"/>
   </span>
 </xsl:template>
 <xsl:template match="xslthl:annotation" mode="xslthl">
   <em>
     <span class="hl-annotation" style="color: #868686">
       <xsl:apply-templates mode="xslthl"/>
     </span>
   </em>
 </xsl:template>
 <!-- Not sure which element will be in final XSLTHL 2.0 -->
 <xsl:template match="xslthl:doccomment|xslthl:doctype" mode="xslthl">
   <strong class="hl-tag" style="color: #868686">
     <xsl:apply-templates mode="xslthl"/>
   </strong>
 </xsl:template>
</xsl:stylesheet>
opendj3/src/main/docbkx/admin-guide/chap-ldap-operations.xml
@@ -774,7 +774,7 @@
  <para>You can use <filename>~/.opendj/tools.properties</filename> to set
  the defaults for bind DN, host name, and port number as in the following
  example.</para>
  <programlisting language="java">hostname=directory.example.com
  <programlisting language="ini">hostname=directory.example.com
port=1389
bindDN=uid=kvaughan,ou=People,dc=example,dc=com
opendj3/src/main/docbkx/dev-guide/chap-get-sdk.xml
@@ -207,7 +207,7 @@
  described, if you have a directory server running import sample data,
  and test your configuration with a sample client application.</para>
  <programlisting>// Test.java:
  <programlisting language="java">// Test.java:
//  Kick the SDK tires, reading Babs Jensen's entry and displaying LDIF.
//  If your LDAP server is not listening on localhost:1389, or if your
//  data are different change the appropriate lines below.
opendj3/src/main/docbkx/shared/man-ldapcompare.xml
@@ -298,7 +298,7 @@
  <para>You can use <filename>~/.opendj/tools.properties</filename> to set
  the defaults for bind DN, host name, and port number as in the following
  example.</para>
  <programlisting language="java">hostname=directory.example.com
  <programlisting language="ini">hostname=directory.example.com
port=1389
bindDN=uid=kvaughan,ou=People,dc=example,dc=com
opendj3/src/main/docbkx/shared/man-ldapdelete.xml
@@ -301,7 +301,7 @@
  <para>You can use <filename>~/.opendj/tools.properties</filename> to set
  the defaults for bind DN, host name, and port number as in the following
  example.</para>
  <programlisting language="java">hostname=directory.example.com
  <programlisting language="ini">hostname=directory.example.com
port=1389
bindDN=uid=kvaughan,ou=People,dc=example,dc=com
opendj3/src/main/docbkx/shared/man-ldapmodify.xml
@@ -316,7 +316,7 @@
  <para>You can use <filename>~/.opendj/tools.properties</filename> to set
  the defaults for bind DN, host name, and port number as in the following
  example.</para>
  <programlisting language="java">hostname=directory.example.com
  <programlisting language="ini">hostname=directory.example.com
port=1389
bindDN=uid=kvaughan,ou=People,dc=example,dc=com
opendj3/src/main/docbkx/shared/man-ldappasswordmodify.xml
@@ -297,7 +297,7 @@
  <para>You can use <filename>~/.opendj/tools.properties</filename> to set
  the defaults for bind DN, host name, and port number as in the following
  example.</para>
  <programlisting language="java">hostname=directory.example.com
  <programlisting language="ini">hostname=directory.example.com
port=1389
bindDN=uid=kvaughan,ou=People,dc=example,dc=com
opendj3/src/main/docbkx/shared/man-ldapsearch.xml
@@ -399,7 +399,7 @@
  <para>You can use <filename>~/.opendj/tools.properties</filename> to set
  the defaults for bind DN, host name, and port number as in the following
  example.</para>
  <programlisting language="java">hostname=directory.example.com
  <programlisting language="ini">hostname=directory.example.com
port=1389
bindDN=uid=kvaughan,ou=People,dc=example,dc=com