Hi,
I was taking a look at the XML version of Subversion's own repository.
There is a DTD that is declared in the file itself:
<!DOCTYPE svn [
<!ELEMENT svn (index)>
<!ATTLIST svn version CDATA #REQUIRED
href CDATA #REQUIRED>
<!ELEMENT index (updir?, (file | dir)*)>
<!ATTLIST index name CDATA #IMPLIED
path CDATA #IMPLIED
rev CDATA #IMPLIED>
<!ELEMENT updir EMPTY>
<!ELEMENT file (prop)*>
<!ATTLIST file name CDATA #REQUIRED
href CDATA #REQUIRED>
<!ELEMENT dir (prop)*>
<!ATTLIST dir name CDATA #REQUIRED
href CDATA #REQUIRED>
<!ELEMENT prop (#PCDATA)>
<!ATTLIST prop name CDATA #REQUIRED>
]>
I would believe the prop element is a short-hand for "property". Are
there plans for outputting properties in the generated XML ? Or is it
too costly and the client would have to wait for a much longer time ?
Another thing, the updir element is declared to be EMPTY. And it has no
properties too. So, what is it doing in there ? It serves almost no
purpose, except that the XSL can use this element to know that it must
show a link to the parent directory too.
Thanks in advance for any comments.
Bye,
François
Developer of Java Gui Builder
http://jgb.sourceforge.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Oct 3 04:02:18 2003