Trouble with <set> containing <set> in DB5I think the stylesheets have not been 
updated to support nested sets yet.  Can you please file a bug report on the 
SourceForge site for this problem, and upload your test files?  Thanks.

Bob Stayton
Sagehill Enterprises
[EMAIL PROTECTED]


  ----- Original Message ----- 
  From: Ron Catterall 
  To: [email protected] 
  Sent: Monday, December 17, 2007 12:15 PM
  Subject: [docbook-apps] Trouble with <set> containing <set> in DB5


  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: [EMAIL PROTECTED]
  Prolongacion de Hidalgo 140                             http://catterall.net/
  San Felipe del Agua                                        tel: +52 951 520 
1821
  Oaxaca      68020  Mexico                          fax: +1 530 348 8309
  --------------------------------------------------------------------- To 
unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL 
PROTECTED] 

Reply via email to