Index: trunk/phase3/docs/export-demo.xml |
— | — | @@ -69,14 +69,14 @@ |
70 | 70 | <contributor><username>Foobar</username><id>42</id></contributor> |
71 | 71 | <minor /> |
72 | 72 | <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> |
74 | 74 | </revision> |
75 | 75 | |
76 | 76 | <revision> |
77 | 77 | <timestamp>2001-01-15T13:10:27Z</timestamp> |
78 | 78 | <contributor><ip>10.0.0.2</ip></contributor> |
79 | 79 | <comment>new!</comment> |
80 | | - <text>An earlier [[revision]].</text> |
| 80 | + <text xml:space="preserve">An earlier [[revision]].</text> |
81 | 81 | </revision> |
82 | 82 | </page> |
83 | 83 | |
— | — | @@ -88,7 +88,7 @@ |
89 | 89 | <timestamp>2001-01-15T14:03:00Z</timestamp> |
90 | 90 | <contributor><ip>10.0.0.2</ip></contributor> |
91 | 91 | <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> |
93 | 93 | </revision> |
94 | 94 | </page> |
95 | 95 | |
— | — | @@ -100,7 +100,7 @@ |
101 | 101 | <timestamp>2001-01-15T20:34:12Z</timestamp> |
102 | 102 | <contributor><username>Foobar</username><id>42</id></contributor> |
103 | 103 | <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> |
105 | 105 | </revision> |
106 | 106 | <upload> |
107 | 107 | <timestamp>2001-01-15T20:34:12Z</timestamp> |
Index: trunk/phase3/docs/export-0.3.xsd |
— | — | @@ -111,10 +111,18 @@ |
112 | 112 | <element name="contributor" type="mw:ContributorType"/> |
113 | 113 | <element name="minor" minOccurs="0" /> |
114 | 114 | <element name="comment" type="string" minOccurs="0"/> |
115 | | - <element name="text" type="string"/> |
| 115 | + <element name="text" type="mw:TextType" /> |
116 | 116 | </sequence> |
117 | 117 | </complexType> |
118 | 118 | |
| 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 | + |
119 | 127 | <complexType name="ContributorType"> |
120 | 128 | <sequence> |
121 | 129 | <element name="username" type="string" minOccurs="0"/> |