|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r66277 - in trunk/tools/boostbook: test/more/tests/book xsl
From: dnljms_at_[hidden]
Date: 2010-10-30 11:52:05
Author: danieljames
Date: 2010-10-30 11:52:02 EDT (Sat, 30 Oct 2010)
New Revision: 66277
URL: http://svn.boost.org/trac/boost/changeset/66277
Log:
Copy boostbook element attributes.
Added:
trunk/tools/boostbook/test/more/tests/book/
trunk/tools/boostbook/test/more/tests/book/boostbook.gold (contents, props changed)
trunk/tools/boostbook/test/more/tests/book/boostbook.xml (contents, props changed)
Text files modified:
trunk/tools/boostbook/xsl/docbook.xsl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Added: trunk/tools/boostbook/test/more/tests/book/boostbook.gold
==============================================================================
--- (empty file)
+++ trunk/tools/boostbook/test/more/tests/book/boostbook.gold 2010-10-30 11:52:02 EDT (Sat, 30 Oct 2010)
@@ -0,0 +1,4 @@
+<!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" last-revision="$Date: 2010-10-30 15:29:27 +0100 (Sat, 30 Oct 2010) $">
+ <title>Test 'boostbook' root.</title>
+</book>
\ No newline at end of file
Added: trunk/tools/boostbook/test/more/tests/book/boostbook.xml
==============================================================================
--- (empty file)
+++ trunk/tools/boostbook/test/more/tests/book/boostbook.xml 2010-10-30 11:52:02 EDT (Sat, 30 Oct 2010)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!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) $">
+ <title>Test 'boostbook' root.</title>
+</boostbook>
+
+
Modified: trunk/tools/boostbook/xsl/docbook.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/docbook.xsl (original)
+++ trunk/tools/boostbook/xsl/docbook.xsl 2010-10-30 11:52:02 EDT (Sat, 30 Oct 2010)
@@ -437,7 +437,7 @@
</xsl:template>
<xsl:template match="boostbook">
- <book><xsl:apply-templates/></book>
+ <book><xsl:copy-of select="@*"/><xsl:apply-templates/></book>
</xsl:template>
<xsl:template match="programlisting">
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