Bob,

Thanks very much. That did exactly what I need.

Best,

Mike

>>> "Bob Stayton" <[email protected]> 12/3/2010 9:46 AM >>>
Hi Mike,
This would require customizing the template that generates the <html> start and 
end 
tags.  If you are using chunked output, that would be the template named 
'chunk-element-content' in xhtml/chunk-common.xsl.  If non-chunked, then 
customize the 
template with mode="process.root" in xhtml/docbook.xsl.

Bob Stayton
Sagehill Enterprises
[email protected] 


----- Original Message ----- 
From: "Mike Broschinsky" <[email protected]>
To: <[email protected]>
Sent: Thursday, December 02, 2010 2:45 PM
Subject: [docbook-apps] How to insert material immediately after <html> and 
before 
</html> tags in xhtml output


Greetings,

I am writing a user manual in DocBook 5, and generating XHTML output with the 
xhtml 
style sheets from the docbook-xsl-ns-1.75.2 distribution

I need to be able to do this when processing XHTML output using the xhtml style 
sheets:

<html xmlns="http://www.w3.org/1999/xhtml";><!-- InstanceBegin 
template="/Templates/rulesWideAndNav.dwt" codeOutsideHTMLIsLocked="false" -->

[...body of the transformed document...]

<!-- InstanceEnd --></html>

I have looked at the following:

1) The instructions at http://www.sagehill.net/docbookxsl/InsertExtHtml.html, 
"Inserting external HTML code", under "In the HEAD element." This results in 
the 
<title> element not appearing in the output and, of course, only affects 
material 
within the head element itself.

2) The instructions at http://www.sagehill.net/docbookxsl/HtmlHead.html, using 
the 
system.head.content template and the user.head.content templates. But these 
only 
affect material within the head element itself.

Can I use the style sheets to insert an element *right after* the <html> tag 
and 
*right before* the </html> tag?

Thanks for your help.

Best,

Mike


----------------------------
Mike Broschinsky
Administrative Code Editor
Utah State Division of Administrative Rules
801-538-3003
[email protected] 

Because of the governor's "Working 4 Utah" initiative, office hours for the 
Division 
of Administrative Rules are 7 a.m. to 6 p.m., Monday through Thursday. The 
Division is 
closed on Friday.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] 
For additional commands, e-mail: [email protected] 





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to