Re: [docbook-apps] Error in Apache Ant task with Saxon from DocBook to epub

From
Bob Stayton <>
Date
2011-09-06T15:50:54+00:00
ID
045801cc6cac$badb9830$6600a8c0@pazu
Thread
Re: [docbook-apps] Error in Apache Ant task with Saxon from DocBook to epub
Hi Lars,

I presume you are using Saxon 9?  I get that 
error when I use Saxon 9, but not when I use Saxon 6.  I generally use 
Saxon 6 with the DocBook XSL stylesheets since they are written in XSL 1.0, 
while Saxon 9 is written for XSL 2.0.

 

Bob Stayton
Sagehill Enterprises


 

 

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

  
From: 
  Lars Vogel 

  
To: Bob Stayton 

  
Cc:  
  

  
Sent: Monday, September 05, 2011 12:53 
  PM

  
Subject: Re: [docbook-apps] Error in 
  Apache Ant task with Saxon from DocBook to epub

  

Thanks. I 
  created https://sourceforge.net/tracker/?func=detail&aid=3404305&group_id=21935&atid=373747
  

  
Is this Saxon specific? I'm surprised that other people did not run into 
  this.

  

  
2011/9/5 Bob Stayton <>

  
    

    
Yes, that is a bug in the epub 
    stylesheet.  Please open a bug report for in on the DocBook SourceForge 
    site.

    
 

    
Bob Stayton
Sagehill Enterprises


    

    

    

    
 

    
 

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

      
From: Lars Vogel 

      
To:  

      
Sent: Monday, September 05, 2011 7:46 
      AM

      
Subject: Re: [docbook-apps] Error in 
      Apache Ant task with Saxon from DocBook to epub

      

Hi 
      Tony, 
      

      
thank you very much. I now upgraded to Ant 1.82 and included the 
      factory in my XLS task.

      

      
I'm using the pre-defined docbook-xsl.1.76.1 
      stylesheets from http://sourceforge.net/projects/docbook/files/docbook-xsl/1.76.1/. I 
      would assume that they should be correct.

      

      
In line 1275 of epub/docbook.xsl where is a priority without a 
      match.

      

      

      
<xsl:template name="chunk"

      
                
      priority="1">  

      

      
As far as I know these stylesheets are still XSLT 1.0 
      based. 

      

      
Shall I open a bug for this on http://sourceforge.net/projects/docbook/?

      

      
Best regards, Lars

      
2011/9/5 Tony Graham <>

      On Mon, September 5, 2011 3:15 pm, Tony Graham 
        wrote:
...

        
> Lastly, it is an XSLT error to have @priority without @match. 
         See the
> second paragraph in [4].

...

        
> [4] http://www.w3.org/TR/xslt-21/#defining-templates

Whoops. 
         I forgot I'd been looking at the XSLT 2.1 draft.  Try
http://www.w3.org/TR/xslt20/#defining-templates

        

Regards,

Tony Graham         
                            
              
Consultant       
                            
              http://www.mentea.net
Mentea       
        13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
 --  -- 
         --  --  --  --  --  --  --  -- 
         --  --  --  --  --  --
  
         XML, XSL FO and XSLT consulting, training and 
        programming

        

        

        
---------------------------------------------------------------------
To 
        unsubscribe, e-mail: 
For 
        additional commands, e-mail: 

      

-- 
Lars
http://www.vogella.de - Eclipse, Android and Java 
      Tutorials
http://www.twitter.com/vogella - Lars on 
    Twitter

  

-- 
Lars
http://www.vogella.de - Eclipse, Android and Java 
  Tutorials
http://www.twitter.com/vogella - Lars on 
Twitter