OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Applying Docbook/XSL stylesheet directly to docbook.xml document?


On 25.6.2013 21:32, ольга крыжановская wrote:
> Has any one an example style sheet fragment which shows how the
> Docbook/XML to HTML/XHTML XSL style sheet can be added to the
> Docbook/XML document itself?
> The idea is to add the XSL transformation style sheet as style sheet
> reference to the Docbook/XML document that a browser like Seamonkey
> can view it directly.

There is standard instruction for this, your file should start with

<?xml version="1.0"?>
<?xml-stylesheet href="docbook.xsl" type="text/xsl"?>
<book ...>

</book>

But please note that standard DocBook stylesheets are too complex for
many browsers -- they will usually fail or at least render it quite
slowly. But if you create simpler stylesheet covering only subset of
elements you are using you can get pretty decent browser rendering.

				Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------

Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]