From: SourceForge.net <no...@so...> - 2008-01-05 17:08:21
|
Bugs item #1853172, was opened at 2007-12-18 09:50 Message generated for change (Comment added) made by roncat You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=1853172&group_id=21935 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: XSL Group: output: print/FO/PDF >Status: Open Resolution: Fixed Priority: 5 Private: No Submitted By: Ron Catterall (roncat) Assigned to: Nobody/Anonymous (nobody) Summary: Docbook 5 stylesheets have not been updated to support nest Initial Comment: Toolchain: MacOSX 10.3.9;Oxygen 8.2;Saxon6.5.5;XEP4.10; I'm having trouble getting <set> to include <set> although the DB5 spec clearly allows this. My code is below, but all I get is a 2 page document (XEP4.10) and the following warning messages. [warning] unresolved internal destination: 'toc...SET' [warning] unresolved internal destination: 'OT' [warning] unresolved internal destination: 'd0e23' [warning] unresolved internal destination: 'd0e40' [warning] unresolved internal destination: 'd0e45' [warning] unresolved internal destination: 'd0e63' [warning] unresolved internal destination: 'd0e86' [warning] unresolved internal destination: 'd0e92' [warning] unresolved internal destination: 'd0e110' [warning] unresolved internal destination: 'NT' [warning] unresolved internal destination: 'd0e133' [warning] unresolved internal destination: 'd0e138' [warning] unresolved internal destination: 'd0e156' [warning] unresolved internal destination: 'd0e179' [warning] unresolved internal destination: 'd0e184' [warning] unresolved internal destination: 'd0e202' ) (generate [output-format pdf][1][2])) Process ended with exit code: 0 <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE set> <set xml:id="SET" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="EN"> <title>SET TITLE</title> <subtitle>Set Subtitle</subtitle> <set xml:id="OT" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="EN"> <title>OT set title</title> <subtitle>OT set subtitle</subtitle> <book> <title>OT book 1 title</title> <titleabbrev>OT-1</titleabbrev> </cover></info> <preface><title>Preface Title</title><para>para in preface</para></preface> <chapter><title>A</title> <formalpara><title>1.</title><para>1st formalpara in chapter 1, book 1, OT</para></formalpara> <formalpara><title>2.</title><para>2nd formalpara in chapter 1, book 1, OT</para></formalpara> <formalpara><title>3.</title><para>3rd formalpara in chapter 1, book 1, OT</para></formalpara> </chapter> <chapter><title>B</title> <formalpara><title>1.</title><para>1st formalpara in chapter 2, book 1, OT</para></formalpara> <formalpara><title>2.</title><para>2nd formalpara in chapter 2, book 1, OT</para></formalpara> <formalpara><title>3.</title><para>3rd formalpara in chapter 2, book 1, OT</para></formalpara> <formalpara><title>4.</title><para>4th formalpara in chapter 2, book 1, OT</para></formalpara> </chapter> </book> <book> <title>OT book 2 title.</title> <titleabbrev>OT-2</titleabbrev> <info></info> <chapter><title>C</title> <formalpara><title>1.</title><para>1st formalpara in chapter 1, book 2, OT</para></formalpara> <formalpara><title>2.</title><para>2nd formalpara in chapter 1, book 2, OT</para></formalpara> <formalpara><title>3.</title><para>3rd formalpara in chapter 1, book 2, OT</para></formalpara> </chapter> <chapter><title>D</title> <formalpara><title>1.</title><para>1st formalpara in chapter 2, book 2, OT</para></formalpara> <formalpara><title>2.</title><para>2nd formalpara in chapter 2, book 2, OT</para></formalpara> <formalpara><title>3.</title><para>3rd formalpara in chapter 2, book 2, OT</para></formalpara> </chapter> </book> </set> <set xml:id="NT" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="EN"> <title>NT set title</title> <subtitle>NT set subtitle</subtitle> <book> <title>NT book 1 title</title> <titleabbrev>NT-1</titleabbrev> <chapter><title>E</title> <formalpara><title>1.</title><para>1st formalpara in chapter 1, book 1, NT</para></formalpara> <formalpara><title>2.</title><para>2nd formalpara in chapter 1, book 1, NT</para></formalpara> <formalpara><title>3.</title><para>3rd formalpara in chapter 1, book 1, NT</para></formalpara> </chapter> <chapter><title>F</title> <formalpara><title>1.</title><para>1st formalpara in chapter 2, book 1, NT</para></formalpara> <formalpara><title>2.</title><para>2nd formalpara in chapter 2, book 1, NT</para></formalpara> <formalpara><title>3.</title><para>3rd formalpara in chapter 2, book 1, NT</para></formalpara> <formalpara><title>4.</title><para>4th formalpara in chapter 2, book 1, NT</para></formalpara> </chapter> </book> <book> <title>NT book 2 title.</title> <titleabbrev>NT-2</titleabbrev> <chapter><title>G</title> <formalpara><title>1.</title><para>1st formalpara in chapter 1, book 2, NT</para></formalpara> <formalpara><title>2.</title><para>2nd formalpara in chapter 1, book 2, NT</para></formalpara> <formalpara><title>3.</title><para>3rd formalpara in chapter 1, book 2, NT</para></formalpara> </chapter> <chapter><title>H</title> <formalpara><title>1.</title><para>1st formalpara in chapter 2, book 2, NT</para></formalpara> <formalpara><title>2.</title><para>2nd formalpara in chapter 2, book 2, NT</para></formalpara> <formalpara><title>3.</title><para>3rd formalpara in chapter 2, book 2, NT</para></formalpara> </chapter> </book> </set> </set> My customisation layer is <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:d="http://docbook.org/ns/docbook" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0" exclude-result-prefixes="exsl"> <!-- import the latest snapshot name space aware stylesheet --> <xsl:import href="/Applications/Utilities/oxygen/8.2/oxygen/frameworks/docbook/5.0/docbook-xsl-ns-snapshot/fo/docbook.xsl"/> <!-- set page size --> <xsl:param name="page.height" select="'8.375in'" /> <xsl:param name="page.width" select="'5.5in'" /> <xsl:param name="page.height.portrait" select="'8.375in'" /> <xsl:param name="page.width.portrait" select="'5.5in'" /> <!-- define the layout of a page --> <xsl:param name="page.margin.inner" select="'0.75in'" /> <xsl:param name="page.margin.outer" select="'0.6875in'" /> <xsl:param name="page.margin.top" select="'0.4in'" /> <xsl:param name="page.margin.bottom" select="'0.4in'" /> <xsl:param name="body.margin.top" select="'0.45in'" /> <xsl:param name="body.margin.bottom" select="'0.55in'" /> <xsl:param name="region.before.extent" select="'0.25in'" /> <xsl:param name="region.after.extent" select="'0.25in'" /> <!-- indent of body text from start of title --> <xsl:param name="body.start.indent" select="'0pt'" /> <!-- select page orientation, select="'land'" or select="'USletter'" --> <xsl:param name="paper.type" select="'USletter'" /> <!-- select single- ("0") or double-sided ("1") output --> <xsl:param name="double.sided" select="1" /> <!-- set base directory to where the PDF file is to be stored --> <xsl:param name="base.dir" select="'/Library/WebServer/Documents/_XML/_test/'" /> <!-- set the output filename for the file --> <xsl:param name="root.filename" select="'test_set'" /> <!-- activate XEP extensions --> <xsl:param name="xep.extensions" select ="1" /> </xsl:stylesheet> -- Ron Catterall, Phd, DSc email: ro...@ca... Prolongacion de Hidalgo 140 http://catterall.net/ San Felipe del Agua tel: +52 951 520 1821 Oaxaca 68020 Mexico fax: +1 530 348 8309 ---------------------------------------------------------------------- >Comment By: Ron Catterall (roncat) Date: 2008-01-05 11:08 Message: Logged In: YES user_id=1962635 Originator: YES I tried revision 7632 of 2007-12-31 at 1041 PST on the same files (without xi:include of course) No difference in pdf output, title page for outer set only. Is there something wrong in my test XML and XSL? Bugs item #1853172 has disappeared from the bug list. (I have submitted a separate RFE for xi:include within set) ---------------------------------------------------------------------- Comment By: Mauritz Jeanson (mzjn) Date: 2008-01-05 10:14 Message: Logged In: YES user_id=582041 Originator: NO If you want <set> to allow <xi:include>, please file this as a separate DocBook 5 RFE. ---------------------------------------------------------------------- Comment By: Mauritz Jeanson (mzjn) Date: 2008-01-05 10:14 Message: Logged In: YES user_id=582041 Originator: NO A fix for this issue has been added to the current codebase. Please test the fix with the latest snapshot from: http://docbook.sourceforge.net/snapshots/ ---------------------------------------------------------------------- Comment By: Ron Catterall (roncat) Date: 2008-01-03 14:09 Message: Logged In: YES user_id=1962635 Originator: YES Just tried again with 4.5 - same result. Nested sets are not supported in 4.5 or 5.0. Also a requested feature - <set> should allow <xi:include> Ron ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=1853172&group_id=21935 |