]> granicus.if.org Git - python/commitdiff
Turn \input, \include, and \verbatiminput into XInclude elements instead
authorFred Drake <fdrake@acm.org>
Thu, 27 Sep 2001 15:49:23 +0000 (15:49 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 27 Sep 2001 15:49:23 +0000 (15:49 +0000)
of something ad-hoc.

Doc/tools/sgmlconv/conversion.xml
Doc/tools/sgmlconv/docfixer.py

index c2f9f0d9200e52d5bfd278d7a2b4813a40a779ef..20acdf36c145ee2bfb6c7705293e318527e0dcc8 100644 (file)
 
   <!-- "See also:" sections. -->
   <macro name="seemodule">
-    <attribute name="ref" optional="yes"/>
+    <attribute name="" optional="yes"/>
     <attribute name="name"/>
     <child name="description"/>
     </macro>
     </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. -->
                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*
     <!-- 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. -->
index 867ec5073a4c02af3ec350fc820346582a19bb8e..c1ea9707742acefda5a551444f2254a9f70f15e8 100755 (executable)
@@ -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",
     )