bug-gne
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnupedia] XML Article format


From: Duncan Lock
Subject: [Bug-gnupedia] XML Article format
Date: Thu, 18 Jan 2001 12:17:11 -0000

Hi,
        Good morning all. Still catching up on the list traffic from last
night (my time). I will post this slightly modified version of my previous
suggested XML example structure. This is not a DTD or schema but an example
of a possible XML format as it would be used which is easier to read then a
DTD/ schema. A DTD or schema could be written from this example. I will do
this a some point in the new future, if required.

Here it is:

<?xml version="1.0"?>
<?xml:stylesheet rel="stylesheet" type="text/xsl" href="gnupedia
article.xsl" ?>

<article>
        <authors>
                <author>
                        <name></name>
                        <email></email>
                        <wwwurl></wwwurl>
                        <digital-signature></digital-signature>
                </author>
                ...
        </authors>
        <version>
                <number></number>
                <created-on></created-on>
                <last-updated></last-updated>
        </version>
        <reviews>
                <reviewer>
                        <name></name>
                        <email></email>
                        <wwwurl></wwwurl>
                        <digital-signature></digital-signature>
                        <date-of-review></date-of-review>
                        <review>
                        </review>
                </reviewer>
                ...
        </reviews>
        <copyleft></copyleft>
        
        <content
                title=""
                subject=""
                category=""
                subcategory="" />
                
                <!-- 
                        Article body goes here, using, possibly,
                        pretty standard HTML tags: <h1>, <h2> etc, 
                        <p>, <em>, <strong> and so on.
                -->
        </content>      
</article>

        The content tag has its 'properties' set as attributes (i.e.
key="value") rather than as elements (i.e. <key>value</key>). There is some
functional difference between the two but it's a largely aesthetic decision.
WITHOUT starting an XML attributes/elements holy war, which do we prefer?
        Any other thoughts?
        
        On a related note is the DTD used by nupedia.org publicly available?
Could someone post it to this list if it is? (Or explain why not if it
isn't? :-)

Dunc.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]