Next in thread → Next in month →

Re: [docbook-apps] XHTML5 Output - Can DOCTYPE be added?

From
Lars Vogel <>
Date
2011-09-19T20:35:17+00:00
ID
Thread
Re: [docbook-apps] XHTML5 Output - Can DOCTYPE be added?
Hi Bob,

sorry,for the typo. I'm using 1.76.1. I switched again computers (another Windows) and now the DocType entry is added. I assume I did something incorrect on the other machine.

I also got again the problem that xthml5 does not work without xerces-j

C:\Users\vogella\workspace\vogella\de.vogella.docbook.first\build.xml:57: javax.xml.transform.TransformerConfigurationException: java.net.MalformedURLException: no protocol: ../common/entities.ent

After including xerces-j into the classpath the conversion worked fine. Also on this machine using the html or xhtml StyleSheets do not require xerces-j.

Best regards, Lars

2011/9/19 Bob Stayton <>

Hi Lars,

The xhtml5 stylesheets already do output that 
DOCTYPE automatically.  I'm not clear why you are not getting it.  
However, the stylesheet is dependent on being used with the version 1.76.1 
distribution.  Is that a typo when you say version 1.7.1?

 

Regarding a customization layer, it should work the 
same way as for other html stylesheets.  If you do a chunking 
customization, you need to use the two file method described in my book for 
chunking.

 

Bob Stayton
Sagehill Enterprises


 

 

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

  
From: 
  Lars Vogel 

  
To: DocBook Apps 

  
Sent: Monday, September 19, 2011 5:10 
  AM

  
Subject: [docbook-apps] XHTML5 Output - 
  Can DOCTYPE be added?

  

Hello,

I'm 
  generating XHTML5 via the DocBook Stylesheets in version 1.7.1 and Bobs xhtml5 
  stylesheets. Would it be possible for the stylesheets to add the 
  

  
<!DOCTYPE html>

  

  
declaration automatically? Perhaps via 
  parameter? 

  

  
I 
  would assume that creation a customization layer for adding xhtml5 is possible 
  but I believe for xhtml5 we would in most cases like to have this included via 
  the standard stylesheets.

  

  
Best 
  regards, Lars

  

  

  

  
-- 
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
Next in thread → Next in month →