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] docbook 5.0 and external html code


Huber Evelyne wrote:
> 
> I'm trying to include some external html code in my xml document. 

I can think of a couple of things that you might actually mean:

You might be translating your DocBook file only to HTML, and simply want 
to supplement the automatically generated HTML with some of your own. 
If I had to do that, I'd probably just postprocess the generated HTML 
file somehow.  For instance, you could put something in the DocBook file 
that comes out in HTML as "<p>REPLACE_ME_1</p>", and use M4 or something 
like that to replace all instances of "REPLACE_ME_x" with the contents 
of x.html.  I'd do it this way because you're going to run into tag 
trouble trying to pull the HTML into the XML file during DocBook processing.

You might instead be trying to include HTML in your document as pure 
text, not as markup.  For instance, you might be writing a document that 
explains how to use HTML, and need to include some example code.  If 
that's the case, you can just use XIncludes with the parse="text" attribute.


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