LISTSERV mailing list manager LISTSERV 15.5

Help for XML-L Archives


XML-L Archives

XML-L Archives


View:

Next Message | Previous Message
Next in Topic | Previous in Topic
Next by Same Author | Previous by Same Author
Chronologically | Most Recent First
Proportional Font | Monospaced Font

Options:

Join or Leave XML-L
Reply | Post New Message
Search Archives


Subject: Re: XML language for file system directory listings?
From: Jim DeLaHunt <[log in to unmask]>
Reply-To:General discussion of Extensible Markup Language <[log in to unmask]>
Date:Wed, 25 Nov 2009 09:44:12 +0000
Content-Type:text/plain
Parts/Attachments:
Parts/Attachments

text/plain (54 lines)


Peter: 

Thank you for this lead.  I found the Directory Generator in Cocoon:
http://cocoon.apache.org/2.1/userdocs/directory-generator.html 

It generates XML directory listings according to a DTD they show there, but
here's an example:

<dir:directory xmlns:dir="http://apache.org/cocoon/directory/2.0"
    name="stylesheets" lastModified="1056668768203" date="27.06.03 01:06"
size="0"
    requested="true" sort="name" reverse="false">
  <dir:directory name="sites" lastModified="1056668768203" date="27.06.03
01:06" size="0"/>
  <dir:file name="dynamic-page2html.xsl" lastModified="1056668768203"
date="27.06.03 01:06" size="4321"/>
  <dir:file name="simple-xml2html.xslt" lastModified="1056668768203"
date="27.06.03 01:06" size="1234"/>
</dir:directory>

There is also an XPath Directory Generator:
http://cocoon.apache.org/2.1/userdocs/xpathdirectory-generator.html

Their summary is, "The XPath Directory Generator provides all the
functionality of the Directory Generator. Additionaly it is possible to get
XML snippets out of the XML files the Directory Generator finds." It
generates directory listings like the following example:

<dir:directory xmlns:dir="http://apache.org/cocoon/directory/2.0"
    name="articles" lastModified="1057183738609" date="03.07.03 00:08" size="0"
    requested="true" sort="name" reverse="false">
  <dir:directory name="images" lastModified="1057183738609" date="03.07.03
00:08" size="0"/>
  <dir:file name="article1.xml" lastModified="1057183738609" date="03.07.03
00:08" size="123">
    <dir:xpath query="/article/title">
      <title>My first article!</title>
    </dir:xpath>
  </dir:file>
  <dir:file name="article2.html" lastModified="1057183738609" date="03.07.03
00:08" size="345"/>
  <dir:file name="article2.xml" lastModified="1057183738609" date="03.07.03
00:08" size="234">
    <dir:xpath query="/article/title">
      <title>My second article!</title>
    </dir:xpath>
  </dir:file>
</dir:directory>

Thank you, that's a helpful lead.  I'll add it to a question I have open on
Stack Overflow,
<http://stackoverflow.com/questions/1781936/an-xml-language-for-describing-file-attributes-of-a-directory-tree>.

   --Jim DeLaHunt, Vancouver, Canada   http://jdlh.com/

Back to: Top of Message | Previous Page | Main XML-L Page

Permalink



LISTSERV.HEANET.IE

CataList Email List Search Powered by the LISTSERV Email List Manager