Commit 6bd0bfe2 authored by pookey's avatar pookey

docbook docs are now able to do syntax highlighting.

parent 6c42ff92
XSLSTYLE=doctrine.xsl
XSLSTYLE_CHUNKED=doctrine-chunked.xsl
%.html: %.xml
xsltproc --output $@ $(XSLSTYLE) $<
xsltproc --stringparam base.dir html/ $(XSLSTYLE_CHUNKED) $<
xsieve -xinclude --output $@ $(XSLSTYLE) $<
xsieve -xinclude --stringparam base.dir html/ $(XSLSTYLE_CHUNKED) $<
html: doctrine.html
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets-1.70.1/xhtml/chunk.xsl"/>
<xsl:param name="html.stylesheet" select="'doctrine.css'"/>
<xsl:import href="/root/src/xsieve/experiments/programlisting/colorer.xsl"/>
<xsl:import href="/root/src/xsieve/experiments/programlisting/colorer-html.xsl"/>
<xsl:param name="html.stylesheet" select="'../doctrine.css'"/>
</xsl:stylesheet>
......@@ -2,3 +2,8 @@ body, p, td
{
font-family: arial, "lucida console", sans-serif
}
.programlisting
{
margin: 10px;
background-color: #eeeeee;
}
......@@ -171,7 +171,7 @@
If the power of DQL isn't enough, you should consider using the rawSql API for object population.
</para>
<programlisting><![CDATA[
<programlisting role="php"><![CDATA[
<?php
// DO NOT USE THE FOLLOWING CODE
// (using many sql queries for object population):
......
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets-1.70.1/xhtml/docbook.xsl"/>
<xsl:import href="/root/src/xsieve/experiments/programlisting/colorer.xsl"/>
<xsl:import href="/root/src/xsieve/experiments/programlisting/colorer-html.xsl"/>
<xsl:param name="html.stylesheet" select="'doctrine.css'"/>
</xsl:stylesheet>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment