Boostbook: Pass through processing instructions.

[SVN r72002]
This commit is contained in:
Daniel James 2011-05-16 21:35:33 +00:00
parent 6a42dd3c65
commit 58dc4361c4
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,5 @@
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<book xmlns:xi="http://www.w3.org/2001/XInclude" id="test" lang="en">
<title>Test processing instructions</title>
<para><?dbtimestamp format="Y-m-d H:M:S"?></para>
</book>

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2011 Daniel James.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
-->
<!DOCTYPE boostbook PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN"
"http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
<boostbook id="test" xmlns:xi="http://www.w3.org/2001/XInclude"
last-revision="$Date: 2010-10-30 15:29:27 +0100 (Sat, 30 Oct 2010) $"
lang="en">
<title>Test processing instructions</title>
<para><?dbtimestamp format="Y-m-d H:M:S"?></para>
</boostbook>

View File

@ -382,6 +382,10 @@ Error: XSL template 'link-or-anchor' called with invalid link-type '<xsl:value-o
</xsl:element>
</xsl:template>
<xsl:template match="processing-instruction()">
<xsl:copy/>
</xsl:template>
<xsl:template match="code">
<computeroutput>
<xsl:apply-templates mode="annotation"/>