Penguin

Differences between version 3 and predecessor to the previous major change of WellFormed.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 3 Last edited on Thursday, August 21, 2003 1:44:03 pm by StuartYeates Revert
Older page: version 2 Last edited on Thursday, August 21, 2003 1:17:37 pm by AristotlePagaltzis Revert
@@ -17,14 +17,14 @@
 but should use something like 
  
  <a id="1"/> ... <b id="2"/> ... <a id="1"/> ... <b id="2"/> 
  
-instead, and then you can reconstruct either of the tags as necessary. 
+instead, and then you can reconstruct either of the tags as necessary. This flattened form also allows certain kinds of diff-like reasoning which are much more difficult on trees. An alternative to this, which avoids flattening the markup, is to do:  
  
-;: ''I disagree strongly with that practice . You are undercutting the purpose of [XML] by flattening the markup . Instead, you should use attributes to your advantage .''  
+ <foo type="a" partof="1"> ... </foo>  
+ <foo type="a" partof="1" partof="2"> ... </foo>  
+ <foo type="b" partof="1"> ... </foo>  
  
- <foo type=" a" partof="1"> .. . </foo> <foo type=" a" partof="1" partof="2"> . .. </foo> <foo type="b" partof="1"> ... </foo>  
-  
-;: ''Yes , it's bulkier . Try in some way to process markup written with both approaches using [XSLT ] and you'll notice the difference . %%% --AristotlePagaltzis''  
+This is bulkier (especially when there are a very large number of overlapping structures) but much easier to process with [XSLT] . The choice between these is the subject of a minor ReligiousWar . [StuartYeates] is in favour of the former , [AristotlePagaltzis] in favour of the latter . The whole problem was solved in [SGML ] using the CONCUR feature, which appears never to have been implemented
  
  
 [WellFormed] [XML] differs from [Valid] [XML] in that [Valid] [XML] has been (or could be) checked against a [Schema] or [DTD].