r9913 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r9912‎ | r9913 | r9914 >
Date:00:07, 5 July 2005
Author:vibber
Status:old
Tags:
Comment:
Export tweak: use xml:space on <text> elements as an extra hint
Modified paths:
  • /trunk/phase3/docs/export-0.3.xsd (modified) (history)
  • /trunk/phase3/docs/export-demo.xml (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/export-demo.xml
@@ -69,14 +69,14 @@
7070 <contributor><username>Foobar</username><id>42</id></contributor>
7171 <minor />
7272 <comment>I have just one thing to say!</comment>
73 - <text>A bunch of [[text]] here.</text>
 73+ <text xml:space="preserve">A bunch of [[text]] here.</text>
7474 </revision>
7575
7676 <revision>
7777 <timestamp>2001-01-15T13:10:27Z</timestamp>
7878 <contributor><ip>10.0.0.2</ip></contributor>
7979 <comment>new!</comment>
80 - <text>An earlier [[revision]].</text>
 80+ <text xml:space="preserve">An earlier [[revision]].</text>
8181 </revision>
8282 </page>
8383
@@ -88,7 +88,7 @@
8989 <timestamp>2001-01-15T14:03:00Z</timestamp>
9090 <contributor><ip>10.0.0.2</ip></contributor>
9191 <comment>hey</comment>
92 - <text>WHYD YOU LOCK PAGE??!!! i was editing that jerk</text>
 92+ <text xml:space="preserve">WHYD YOU LOCK PAGE??!!! i was editing that jerk</text>
9393 </revision>
9494 </page>
9595
@@ -100,7 +100,7 @@
101101 <timestamp>2001-01-15T20:34:12Z</timestamp>
102102 <contributor><username>Foobar</username><id>42</id></contributor>
103103 <comment>My awesomeest image!</comment>
104 - <text>This is an awesome little imgae. I lurves it. {{PD}}</text>
 104+ <text xml:space="preserve">This is an awesome little imgae. I lurves it. {{PD}}</text>
105105 </revision>
106106 <upload>
107107 <timestamp>2001-01-15T20:34:12Z</timestamp>
Index: trunk/phase3/docs/export-0.3.xsd
@@ -111,10 +111,18 @@
112112 <element name="contributor" type="mw:ContributorType"/>
113113 <element name="minor" minOccurs="0" />
114114 <element name="comment" type="string" minOccurs="0"/>
115 - <element name="text" type="string"/>
 115+ <element name="text" type="mw:TextType" />
116116 </sequence>
117117 </complexType>
118118
 119+ <complexType name="TextType">
 120+ <simpleContent>
 121+ <extension base="string">
 122+ <attribute ref="xml:space" use="optional" default="preserve" />
 123+ </extension>
 124+ </simpleContent>
 125+ </complexType>
 126+
119127 <complexType name="ContributorType">
120128 <sequence>
121129 <element name="username" type="string" minOccurs="0"/>

Status & tagging log