Turn \input, \include, and \verbatiminput into XInclude elements instead

of something ad-hoc.
This commit is contained in:
Fred Drake 2001-09-27 15:49:23 +00:00
parent bf99017bbb
commit baacc08ead
2 changed files with 14 additions and 10 deletions

View File

@ -184,7 +184,7 @@
<!-- "See also:" sections. -->
<macro name="seemodule">
<attribute name="ref" optional="yes"/>
<attribute name="" optional="yes"/>
<attribute name="name"/>
<child name="description"/>
</macro>
@ -279,11 +279,11 @@
</macro>
<!-- Entity management. -->
<macro name="include">
<attribute name="source"/>
<macro name="include" outputname="xi:include">
<attribute name="href"/>
</macro>
<macro name="input">
<attribute name="source"/>
<macro name="input" outputname="xi:include">
<attribute name="href"/>
</macro>
<!-- Large-scale document structure. -->
@ -300,7 +300,11 @@
endcloses="chapter chapter* section section*
subsection subsection*
subsubsection subsubsection*
paragraph paragraph* subparagraph subparagraph*"/>
paragraph paragraph* subparagraph
subparagraph*">
<attribute name="xmlns:xi"
>http://www.w3.org/2001/XInclude</attribute>
</environment>
<macro name="chapter"
closes="chapter chapter* section section* subsection subsection*
@ -458,9 +462,9 @@
<!-- not used anywhere, but it's a standard LaTeXism -->
<attribute name="spaces">visible</attribute>
</environment>
<macro name="verbatiminput" ouptutname="input">
<attribute name="verbatim">yes</attribute>
<attribute name="source"/>
<macro name="verbatiminput" ouptutname="xi:include">
<attribute name="parse">text</attribute>
<attribute name="href"/>
</macro>
<!-- Table markup. -->

View File

@ -615,7 +615,7 @@ PARA_LEVEL_ELEMENTS = (
PARA_LEVEL_PRECEEDERS = (
"setindexsubitem", "author",
"stindex", "obindex", "COMMENT", "label", "input", "title",
"stindex", "obindex", "COMMENT", "label", "xi:include", "title",
"versionadded", "versionchanged", "declaremodule", "modulesynopsis",
"moduleauthor", "indexterm", "leader",
)