Next in thread → Next in month →

Re: [docbook-apps] HTML as in browser in print. output

From
Bob Stayton <>
Date
2010-10-29T17:07:40+00:00
ID
01d901cb778b$c495c420$6600a8c0@pazu
Thread
Re: [docbook-apps] HTML as in browser in print. output
Hi,

If you are looking to insert HTML from external 
files, this section in my book describes some options:

 

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

 

If you are looking to embed elements in the xhtml 
namespace in your DocBook source document, there is currently no support in the 
DocBook XSL stylesheets for that.  To output to HTML, you could add a 
template like this to your customization layer to copy it out:

 

<xsl:template match="xhtml:*">
  
<xsl:element name="{local-name()}">
    <xsl:copy-of 
select="@*"/>
    <xsl:apply-templates/>
  
</xsl:element>
</xsl:template>

[be sure to add the namespace declaration to your 
stylesheet and documents].

 

For print output, you would need to create custom 
templates to convert HTML elements to XSL-FO elements.  Perhaps there 
exists XSL out there to do that, otherwise that would be a bit of 
work.

 

Bob Stayton
Sagehill Enterprises


 

 

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

  
From: 
  Kirill 
  Churin 

  
To:  
  

  
Sent: Friday, October 29, 2010 4:29 
  AM

  
Subject: [docbook-apps] HTML as in 
  browser in print. output

  

Hello, list. Are there any convenient way to make elements from 
  HTML namespace render as in HTML output, like normal browser's buttons, etc.?
  

  
Thanks a lot.
-- 

  
Kirill Churin
Jabber: , ICQ: 8163230, Skype on demand.
  

  
In a 
  world without walls or 
  fences, who needs windows and 
  gates?
Next in thread → Next in month →