[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Properties declared in DTD, but not output - browsing repository as XML

From: Francois Beausoleil <fbos_at_users.sourceforge.net>
Date: 2003-10-03 03:58:42 CEST

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

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.