Next in thread → Next in month →

Re: [docbook-apps] generate.id.attributes problem with bibliographies

From
Bob Stayton <>
Date
2012-07-16T22:45:24+00:00
ID
004f01cd63a4$ac813e30$6600a8c0@pazu
Thread
Re: [docbook-apps] generate.id.attributes problem with bibliographies
OK, this is fixed in SVN and the latest 
snapshot.  Thanks for the report.

 

Bob Stayton
Sagehill Enterprises


 

 

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

  
From: 
  Bob Stayton 
  

  
To: Jason Zech ; DocBook Apps 

  
Sent: Tuesday, July 10, 2012 11:17 
  PM

  
Subject: Re: [docbook-apps] 
  generate.id.attributes problem with bibliographies

  

  
OK, I can duplicate the problem now.  I'll 
  figure out what's going on.

  
 

  
Bob Stayton
Sagehill Enterprises


  
 

  
 

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

    
From: 
    Jason 
    Zech 

    
To: Bob Stayton ; DocBook Apps 

    
Sent: Tuesday, July 10, 2012 9:17 
    AM

    
Subject: RE: [docbook-apps] 
    generate.id.attributes problem with bibliographies

    

    

    
I am using a customization 
    layer, but to eliminate that possibility I tested as well using Oxygen 14?s 
    default DB to XHTML transform (w Saxon 6.5.5) and changed only that one 
    parameter to 1. Using this out of the box transform (Oxygen 14 uses 1.77.1) 
    I get the same result on this issue.

    
 

    
I am transforming a book 
    root file that brings in the chapters and bibliography via xinclude. But 
    only the bibliography has this issue. 

    
 

    
Here?s more of the 
    bibliography source: 

    
<?xml 
    version="1.0" encoding="UTF-8"?>
<?oxygen 
    RNGSchema="http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rng" 
    type="xml"?>
<?xml-stylesheet 
    type="text/css" href=""?>
<!DOCTYPE 
    bibliography [
<!ENTITY 
    % entities SYSTEM "../entities/entities.ent">
%entities;
]>
<bibliography 
    xml:id="biblio-XXXX" 
    xmlns="http://docbook.org/ns/docbook" 
    xmlns:xi="http://www.w3.org/2001/XInclude"
    
    xmlns:xlink="http://www.w3.org/1999/xlink" 
    version="5.0">
    
    <info>
        
    <title>Bibliography 
    Title</title>
        
    <bibliomset>
            
    <author>
                
    <personname>Author 
    Name</personname>
            
    </author>
        
    </bibliomset>
        
    <bibliorelation>Bibliography 
    for My Book</bibliorelation>
    
    </info>

    
<stuff/>

    
 

    
Does that help? 
    

    
 

    
 

    
 

    

    

    
From: Bob Stayton 
    [mailto:] 
Sent: Tuesday, July 10, 2012 11:05 
    AM
To: Jason Zech; DocBook Apps
Subject: Re: 
    [docbook-apps] generate.id.attributes problem with 
    bibliographies

    
 

    

    
Hi 
    Jason,

    

    
I'm not able to 
    duplicate this problem with the stock 1.77.1 xhtml/docbook.xsl stylesheet 
    with a bibliography.  Are you using a customization layer that might be 
    adding the extra id?  If not, could you provide more details on how you 
    are processing the document?

    

    
 

    

    
Bob 
    Stayton
Sagehill Enterprises


    

    
 

    

    
 

    
      

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

      

      
From: Jason 
      Zech 

      

      
To: DocBook Apps 
      

      

      
Sent: Tuesday, July 
      10, 2012 8:21 AM

      

      
Subject: [docbook-apps] 
      generate.id.attributes problem with 
      bibliographies

      

      
 

      
Hi,

      
 

      
I?m using ns-1.77.1 transform to single file XHTML. I?m 
      playing with the <xsl:param 
      name="generate.id.attributes">, 
      which could be handy for my CSS work. It seems to work mostly 
       as expected: the xml:id gets output as a div id for that chunk, 
      typically chapters, prefaces, appendices for me. 

      
 

      
However, with dedications and bibliographies, the 
      xml:id gets output twice, once in the div tag for the chunk and again in 
      the h1 title tag. This obviously causes validation issues with xhtml. (I?m 
      not that concerned with dedications, but bibliographies are 
      important.)

      
 

      
EX

      
Source: 

      
<bibliography 
      xml:id="biblio-XXXX">

      
 

      
Results in: 

      
<div 
      class="bibliography" 
      id="biblio-XXXX">

      
<div 
      class="titlepage">

      
<div>

      
<div>

      
<h1 
      class="title" 
      id="biblio-XXXX">Bibliography 
      Title</h1>

      
 

      
Is this a bug? Most chunks handle just fine. Is there a 
      fix for this?

      
 

      
If it matters, I?m using xinclude to pull my chunks 
      together.

      
 

      
Thanks,

      
 

      
jz

      
 

      
 

      
Jason 
      Zech | Project 
      Manager, Digital Workflow
[p] 773-281-1818 x212 |  
      

LoyolaPress. 
      | 
      A Jesuit Ministry | 100 Years of Service
3441 N. Ashland Ave. | 
      Chicago, IL 60657 | www.loyolapress.com
Next in thread → Next in month →