From: Michael Smith Date: Thu, 5 Jul 2007 15:13:03 +0000 (+0000) Subject: Completing adding all doc for HTML PIs. Added "see also" sections X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3f0a3c6589bb3632dd66e121ee839923d12400d;p=docbook-dsssl Completing adding all doc for HTML PIs. Added "see also" sections with links to related global params, plus links to DocBook XSL: TCG Also tried out adding some additional doc to param doc for the textinsert.extension param that back-references the PI documentation, plus added some TCG links there too. --- diff --git a/xsl/html/pi.xsl b/xsl/html/pi.xsl index 2f8216557..edd774872 100644 --- a/xsl/html/pi.xsl +++ b/xsl/html/pi.xsl @@ -75,13 +75,10 @@ base.dir - - dbhtml dir processing instruction section in Bob - Stayton’s book DocBook XSL: - The Complete Guide + + dbhtml dir processing instruction @@ -114,12 +111,10 @@ use.id.as.filename - - dbhtml filenames section in Bob Stayton’s book - DocBook - XSL: The Complete Guide + + dbhtml filenames @@ -157,12 +152,10 @@ img.src.path - - Using fileref section in Bob Stayton’s book - DocBook - XSL: The Complete Guide + + Using fileref @@ -194,12 +187,10 @@ - - Background color section in Bob Stayton’s book - DocBook - XSL: The Complete Guide + + Background color @@ -228,12 +219,10 @@ - - Cell background color section in Bob Stayton’s - book DocBook XSL: The Complete Guide + + Cell background color @@ -268,24 +257,12 @@ html.cellpadding - - - - Cell spacing and cell padding section in Bob - Stayton’s book DocBook XSL: The Complete Guide - - - Q and A formatting section in Bob Stayton’s - book DocBook XSL: The Complete Guide - - + + Cell spacing and cell padding, + Q and A formatting @@ -320,25 +297,14 @@ html.cellspacing - - - - Cell spacing and cell padding section in Bob - Stayton’s book DocBook XSL: The Complete Guide - - - Q and A formatting section in Bob Stayton’s - book DocBook XSL: The Complete Guide - - - + + Cell spacing and cell padding, + Q and A formatting + @@ -367,13 +333,10 @@ - - Table styles in HTML output section in Bob - Stayton’s book DocBook XSL: The Complete Guide + + Table styles in HTML output @@ -439,12 +402,10 @@ - - Q and A formatting section in Bob Stayton’s book - DocBook XSL: The Complete Guide + + Q and A formatting @@ -480,12 +441,10 @@ linenumbering.everyNth - - Line numbering section in Bob Stayton’s book - DocBook - XSL: The Complete Guide + + Line numbering @@ -520,12 +479,10 @@ linenumbering.separator - - Line numbering section in Bob Stayton’s book - DocBook - XSL: The Complete Guide + + Line numbering @@ -560,12 +517,10 @@ linenumbering.width - - Line numbering section in Bob Stayton’s book - DocBook - XSL: The Complete Guide + + Line numbering @@ -612,13 +567,10 @@ - - Variable list formatting in HTML section in Bob - Stayton’s book DocBook XSL: The Complete Guide + + Variable list formatting in HTML @@ -648,13 +600,10 @@ - - Variable list formatting in HTML section in Bob - Stayton’s book DocBook XSL: The Complete Guide + + Variable list formatting in HTML @@ -683,12 +632,10 @@ - - Row height section in Bob Stayton’s book DocBook XSL: The Complete Guide + + Row height @@ -722,25 +669,12 @@ - - - - Variable list formatting in HTML section in Bob - Stayton’s book DocBook XSL: The Complete Guide - - - Table summary text section in Bob - Stayton’s book DocBook XSL: The Complete Guide - - + + Variable list formatting in HTML, + Table summary text @@ -770,13 +704,10 @@ - - Table width section in Bob - Stayton’s book DocBook XSL: - The Complete Guide + + Table width @@ -816,13 +747,10 @@ - - Variable list formatting in HTML section in Bob - Stayton’s book DocBook XSL: The Complete Guide + + Variable list formatting in HTML @@ -856,13 +784,10 @@ variablelist.term.separator - - Variable list formatting in HTML section in Bob - Stayton’s book DocBook XSL: The Complete Guide + + Variable list formatting in HTML @@ -892,13 +817,10 @@ - - Variable list formatting in HTML section in Bob - Stayton’s book DocBook XSL: The Complete Guide + + Variable list formatting in HTML @@ -934,24 +856,13 @@ - - - - Q and A list of questions section in Bob - Stayton’s book DocBook XSL: The Complete Guide - - - Q and A formatting section in Bob Stayton’s - book DocBook XSL: The Complete Guide - - + + Q and A list of questions, + Q and A formatting @@ -1022,6 +933,102 @@ + + Copies an external well-formed HTML/XML file into current doc + + Use the dbhtml-include href PI anywhere in a + document to cause the contents of the file referenced by the + href pseudo-attribute to be copied/inserted “as + is” into your HTML output at the point in document order + where the PI occurs in the source. + + The referenced file may contain plain text (as long as + it is “wrapped” in an html element — see the + note below) or markup in any arbitrary vocabulary, + including HTML — but it must conform to XML + well-formedness constraints (because the feature in XSLT + 1.0 for opening external files, the + document() function, can only handle + files that meet XML well-formedness constraints). + Among other things, XML well-formedness constraints + require a document to have a single root + element. So if the content you want to + include is plain text or is markup that does + not have a single root element, + wrap the content in an + html element. The stylesheets will + strip out that surrounding html “wrapper” when + they find it, leaving just the content you want to + insert. + + + + dbhtml href="URI" + + + + href="URI" + + Specifies the URI for the file to include; the URI + can be, for example, a remote http: + URI, or a local filesystem file: + URI + + + + + + textinsert.extension + + + Inserting external HTML code, + External code files + + + + + + + href + + + + + + + + + + + + + + + + + + + + + ERROR: dbhtml-include processing instruction + href has no content. + + + + + + + ERROR: dbhtml-include processing instruction has + missing or empty href value. + + + + + @@ -1138,48 +1145,8 @@ - - - - - - href - - - - - - - - - - - - - - - - - - - - - ERROR: dbhtml-include processing instruction - href has no content. - - - - - - - ERROR: dbhtml-include processing instruction has - missing or empty href value. - - - + diff --git a/xsl/params/textinsert.extension.xml b/xsl/params/textinsert.extension.xml index 4a9d4afe3..4d637115e 100644 --- a/xsl/params/textinsert.extension.xml +++ b/xsl/params/textinsert.extension.xml @@ -1,27 +1,58 @@ - -textinsert.extension -boolean - - -textinsert.extension -Enable the textinsert extension element - - - - - - -Description - -The textinsert extension element inserts the contents of a -a file into the result tree (as text). - - - + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:xi="http://www.w3.org/2001/XInclude" + xmlns:src="http://nwalsh.com/xmlns/litprog/fragment" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + version="5.0" xml:id="textinsert.extension"> + + textinsert.extension + boolean + + + textinsert.extension + Enable the textinsert extension element + + + + + Description + The textinsert extension element inserts the contents of + a file into the result tree (as text). + + To use the textinsert extension element, you must use + either Saxon or Xalan as your XSLT processor (it doesn’t + work with xsltproc), along with either the DocBook Saxon Extensions or DocBook Xalan Extensions, and you must set both + the use.extensions and + textinsert.extension parameters to + 1. + As an alternative to using the textinsert element, + consider using an Xinclude element with the + parse="text" attribute and value + specified, as detailed in Using XInclude for text inclusions. + + + See Also + You can also use the dbhtml-include href processing + instruction to insert external files — both files containing + plain text and files with markup content (including HTML + content). + + More information + For how-to documentation on inserting contents of + external code files and other text files into output, see + External code files. + For guidelines on inserting contents of + HTML files into output, see Inserting external HTML code. +