Next in thread → Next in month →

Re: [docbook] XML + Javascript? was:[Whatever happened too CSS+XML]

From
Doug du Boulay <>
Date
2006-01-17T07:25:47+00:00
ID
Thread
Re: [docbook] XML + Javascript? was:[Whatever happened too CSS+XML]
On Tuesday 17 January 2006 08:25, Bob Stayton wrote:
> You can use the user.head.content template to insert script elements.  See:
> http://www.sagehill.net/docbookxsl/InsertExtHtml.html

[...]

> Getting the browser to execute the code is another thing.  The reference
> above describes how to use a processing instruction to insert something in
> the output. You can also insert an onLoad attribute in the body element to
> do something on loading.  See:
>
> http://www.sagehill.net/docbookxsl/BodyAtts.html
>
> Depending on what you want the Javascript code to do, you may have to do
> other customizations.

Thanks Bob,
I guess what I was really wondering though was whether there was a 
method to serve raw DocBook XML documents and format them client-side 
in the web-browser using only javascript and CSS, bypassing (X)HTML and the 
XSLT processing stages altogether?
The impression I get is that some kind of HTML wrapper, or insert, with a 
<script> element is essential, but that would then make the DocBook invalid.

Thanks again
Doug
Next in thread → Next in month →