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?


Hello!

Olga, if your docbook xml source is quite simple in structure maybe other approach to xml rendering have to be chosen? What about direct xml rendering by CSS? In these posts [1],[2] you can find out the details about it. 

[1] http://permalink.gmane.org/gmane.text.docbook.apps/24325
[2] http://permalink.gmane.org/gmane.text.docbook.apps/24321

--
Best regards,
 Eduard Tibet


-----Original Message-----
From: Jirka Kosek [mailto:jirka@kosek.cz] 
Sent: Wednesday, June 26, 2013 4:27 PM
To: ольга крыжановская
Cc: docbook@lists.oasis-open.org; docbook-apps@lists.oasis-open.org
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
------------------------------------------------------------------



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