Re: [docbook-apps] How to insert JavaScript near end of HTML without chunking?

From
[ark Draig
Date
2011-05-19T15:20:21+00:00
ID
BANLkTi==
Thread
Re: [docbook-apps] How to insert JavaScript near end of HTML without chunking?
Hello Peter,

It's not actually a customization for HTML specifically. Maybe I need to reread the docs?

When I include the Google Analytics script in the document with XInclude, the resulting content is in the source. Then the docbkx-tools Maven plugin runs HTML, EPUB, PDF, RTF, and man page generation on the source.

Regards,

Mark

On Thu, May 19, 2011 at 5:12 PM, Peter Desjardins <> wrote:

I've never used docbkx-tools, maybe I'm misunderstanding your

publishing process. I'm surprised that a customization for HTML has

any effect on your FO.

Peter

On Thu, May 19, 2011 at 9:45 AM, Mark Craig <> wrote:

> Hello, thanks for your suggestion.

> This is what I tried after I found user.footer.content only gets used when

> chunking.

> Trouble is, I can insert the file in the HTML following the instructions you

> cite.

> But either I get effectively "&lt;script&gt;" etc. in the HTML, using

> <xinclude:include href=""ga.txt"" parse="text" />.

> Or the HTML is okay but the build breaks generating PDF

> with <xinclude:include href=""ga.txt"" />, because the FO specification has

> never heard of <script> elements.

> Regards,

> Mark

>

> On Thu, May 19, 2011 at 3:23 PM, Peter Desjardins

> <> wrote:

>>

>> On Thu, May 19, 2011 at 2:28 AM, Mark Craig <> wrote:

>>

>> > How does one insert <script> content, such as for Google Analytics, near

>> > the

>> > end of generated HTML?

>> > Chunking is turned off by popular reader demand.

>>

>> Can you use a technique like this one?

>>

>> http://www.sagehill.net/docbookxsl/InsertExtHtml.html#CodeInPage

>>

>> Since you're not chunking, it might be easy to add a processing

>> instruction at the end of your document.

>>

>> Peter

>

>

>

> --

> Mark Craig

> e: 

> t: +33 7 60 69 95 68

> blog: http://mcraig.org/mec

>

-- 
Mark Craig
e: 

t: +33 7 60 69 95 68

blog: http://mcraig.org/mec