Re: [docbook-apps] Olinking and Chunked HTML Transformations

From
Bob Stayton <>
Date
2006-04-27T21:36:17+00:00
ID
013301c66a43$34494d10$6400a8c0@totoro
Thread
Re: [docbook-apps] Olinking and Chunked HTML Transformations


Hi Ray,

 

> Validation complains 
about the <i> tags 

 

Which validation is 
that?

 

> Don’t quite understand 
the <href> content either, should it not be something like ch01s01.html 
?

 

Yes, it should, and it 
does why I test it with the html/chunk.xsl stylesheet.  Are you using a 
customization layer with the chunking stylesheet?  If so, you have to 
construct it carefully to get the import sequence right.  If you don't, 
then you get a mix of chunked and non-chunked behavior, and I suspect that is 
what happened in your target.db file.  
See:

 

http://www.sagehill.net/docbookxsl/ChunkingCustomization.html

 

If you were following those guidelines, then something else 
is going on that will require more 
information. 

 

Bob Stayton
Sagehill Enterprises
DocBook Consulting


 

 

  
----- Original Message ----- 

  
From: 
  Ray 
  Miller 

  
To:  
  

  
Sent: Thursday, April 27, 2006 2:13 
  PM

  
Subject: RE: [docbook-apps] Olinking and 
  Chunked HTML Transformations

  

  

  
> 
  collect.xref.targets="yes" 
  

  
> 
  target.database.document="olinkdb.xml"

  
> 
  targets.filename="target.db"  
  (this is the default value)

  
> 
  current.docid="foo"

  
> 

  
> 

  
> 
  Contents of 
  olinkdb.xml:

  
> 

  
> 
  <?xml 
  version="1.0"?>

  
> 
  <!DOCTYPE targetset [
> <!ENTITY data 
  SYSTEM "target.db">
> 
  ]>
> 
  <targetset>

  
>  
  <document targetdoc="foo">

  
>    
  &data;

  
>  
  </document>

  
> 
  </targetset>

  
 

  
 

  
Encountered a problem 
  with the generated target.db file (seem to recall this issue previously 
  occurring) 

  
Validation complains 
  about the <i> tags and the extended characters embedded in the 
  <xreftext> tags. 

  
Don’t quite 
  understand the <href> content either, should it not be something like 
  ch01s01.html ?

  
 

  
Fragment of generated 
  target.db file below:

  
 

  
<div 
  element="book" href="#vhimComm" number="" 
  targetptr="vhimComm">

  
   
  <ttl>Foo</ttl>

  
   
  <xreftext>Foo</xreftext>

  
   
  <div element="chapter" href="#overview" number="1" 
  targetptr="overview">

  
      
  <ttl>Overview</ttl>

  
      
  <xreftext>1. <i>Overview</i>

  
      
  </xreftext>

  
      
  <div element="sect1" href="#d5e67" number="1.1">

  
         
  <ttl>Introduction</ttl>

  
         
  <xreftext>Section 1.1, “Introduction�</xreftext>

  
      
  </div>

  
      
  <div element="sect1" href="#prjSummary" number="1.2" 
  targetptr="prjSummary">

  
         
  <ttl>Project Summary</ttl>

  
         
  <xreftext>Section 1.2, “Project Summary�</xreftext>

  
         
  <div element="sect2" href="#purpScopeObj" number="1.2.1" 
  targetptr="purpScopeObj">

  
            
  <ttl>Purpose, Scope and Objectives</ttl>

  
            
  <xreftext>Section 1.2.1, “Purpose, Scope and 
  Objectives�</xreftext>

  
            
  <div element="sect3" href="#d5e104" number="1.2.1.1">

  
      
           <ttl>Statement of 
  Purpose</ttl>

  
               
  <xreftext>Section 1.2.1.1, “Statement of 
  Purpose�</xreftext>

  
            
  </div>