Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72002 - in trunk/tools/boostbook: test/more/tests/misc xsl
From: dnljms_at_[hidden]
Date: 2011-05-16 17:35:34


Author: danieljames
Date: 2011-05-16 17:35:33 EDT (Mon, 16 May 2011)
New Revision: 72002
URL: http://svn.boost.org/trac/boost/changeset/72002

Log:
Boostbook: Pass through processing instructions.
Added:
   trunk/tools/boostbook/test/more/tests/misc/
   trunk/tools/boostbook/test/more/tests/misc/processing.gold (contents, props changed)
   trunk/tools/boostbook/test/more/tests/misc/processing.xml (contents, props changed)
Text files modified:
   trunk/tools/boostbook/xsl/docbook.xsl | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Added: trunk/tools/boostbook/test/more/tests/misc/processing.gold
==============================================================================
--- (empty file)
+++ trunk/tools/boostbook/test/more/tests/misc/processing.gold 2011-05-16 17:35:33 EDT (Mon, 16 May 2011)
@@ -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>
\ No newline at end of file

Added: trunk/tools/boostbook/test/more/tests/misc/processing.xml
==============================================================================
--- (empty file)
+++ trunk/tools/boostbook/test/more/tests/misc/processing.xml 2011-05-16 17:35:33 EDT (Mon, 16 May 2011)
@@ -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>
+
+

Modified: trunk/tools/boostbook/xsl/docbook.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/docbook.xsl (original)
+++ trunk/tools/boostbook/xsl/docbook.xsl 2011-05-16 17:35:33 EDT (Mon, 16 May 2011)
@@ -382,6 +382,10 @@
     </xsl:element>
   </xsl:template>
 
+ <xsl:template match="processing-instruction()">
+ <xsl:copy/>
+ </xsl:template>
+
   <xsl:template match="code">
     <computeroutput>
       <xsl:apply-templates mode="annotation"/>


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