Export tweak: use xml:space on <text> elements as an extra hint
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 5 Jul 2005 00:07:21 +0000 (00:07 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 5 Jul 2005 00:07:21 +0000 (00:07 +0000)
docs/export-0.3.xsd
docs/export-demo.xml

index 02403c6..1e0b7c8 100644 (file)
                        <element name="contributor" type="mw:ContributorType"/>
                        <element name="minor" minOccurs="0" />
                        <element name="comment" type="string" minOccurs="0"/>
-                       <element name="text" type="string"/>
+                       <element name="text" type="mw:TextType" />
                </sequence>
        </complexType>
        
+       <complexType name="TextType">
+               <simpleContent>
+                       <extension base="string">
+                               <attribute ref="xml:space" use="optional" default="preserve" />
+                       </extension>
+               </simpleContent>
+       </complexType>
+       
        <complexType name="ContributorType">
                <sequence>
                        <element name="username" type="string" minOccurs="0"/>
index 941a097..1b4bd7c 100644 (file)
     <contributor><username>Foobar</username><id>42</id></contributor>
     <minor />
     <comment>I have just one thing to say!</comment>
-    <text>A bunch of [[text]] here.</text>
+    <text xml:space="preserve">A bunch of [[text]] here.</text>
   </revision>
   
   <revision>
     <timestamp>2001-01-15T13:10:27Z</timestamp>
     <contributor><ip>10.0.0.2</ip></contributor>
     <comment>new!</comment>
-    <text>An earlier [[revision]].</text>
+    <text xml:space="preserve">An earlier [[revision]].</text>
   </revision>
 </page>
 
@@ -88,7 +88,7 @@
     <timestamp>2001-01-15T14:03:00Z</timestamp>
     <contributor><ip>10.0.0.2</ip></contributor>
     <comment>hey</comment>
-    <text>WHYD YOU LOCK PAGE??!!! i was editing that jerk</text>
+    <text xml:space="preserve">WHYD YOU LOCK PAGE??!!! i was editing that jerk</text>
   </revision>
 </page>
 
     <timestamp>2001-01-15T20:34:12Z</timestamp>
     <contributor><username>Foobar</username><id>42</id></contributor>
     <comment>My awesomeest image!</comment>
-    <text>This is an awesome little imgae. I lurves it. {{PD}}</text>
+    <text xml:space="preserve">This is an awesome little imgae. I lurves it. {{PD}}</text>
   </revision>
   <upload>
     <timestamp>2001-01-15T20:34:12Z</timestamp>