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: tag order help request
From: "Garg, Sanjeev" <[log in to unmask]>
Reply-To:General discussion of Extensible Markup Language <[log in to unmask]>
Date:Mon, 9 Oct 2000 16:48:50 -0400
Content-Type:text/plain
Parts/Attachments:
Parts/Attachments

text/plain (241 lines)


I havent tested your functionality.
But you can try putting '*' at the end of your <image> definition (just
before '>' sign)

        <!ELEMENT image (digitalid | standardid* | title* | series+ |
caption? |
        annotat? | creator* | contrib* | imgyear? | imgperiod* | repository?
|
        objloc? | prov? | medium* | media* | dimensions? | descript? |
keyword* |
        userights? | note? | intnote? | thmbimg? | refimg? | archimg?)*>

        (PLEASE NOTE THE '*')

        -Sanjeev

        -----Original Message-----
        From:   Chuck Thomas [SMTP:[log in to unmask]]
        Sent:   Monday, October 09, 2000 4:24 PM
        To:     [log in to unmask]
        Subject:        tag order help request

        Hi All,

        Please direct responses to my email address...I am not a member of
this list.

        At the bottom of this page are the relevant portions of a dtd I
wrote,
        images.dtd. If I understand the DTD authoring conventions, I have
written
        it so that the elements that occur under the <image> element can
occur in
        any order. However, whenever I try to validate a this brief
document...

        <?xml version="1.0"?>
        <!DOCTYPE images SYSTEM "images.dtd">
        <images>
          <image>
            <digitalid>MSSC0002</digitalid>

            <series>Twin City Scenic Design Collection</series>

            <thmbimg>
              <thmbformat>.jpg</thmbformat>
              <thmbpath>images/MSCT0002.jpg</thmbpath>
            </thmbimg>

            <refimg>
              <refformat>.jpg</refformat>
              <refpath>MSCF0002.jpg</refpath>
           </refimg>

            <archimg>
              <archsize>73 MB</archsize>
              <archbd>24-bit</archbd>
              <archloc>MNU_MSSD99CD0074</archloc>
            </archimg>

            <objloc>Collection PA43, Box 13</objloc>

            <descript>Garden with stone path, pond and mountain.</descript>

            <dimensions>16 x 21"</dimensions>

            <standardid>O082</standardid>

            <medium>Theatrical design</medium><media>Watercolors</media>

            <userights>This image is owned by the University of Minnesota
Libraries
        and is protected by U.S. and international copyright laws.
High-resolution
        copies may be obtained for a fee by contacting the Libraries'
Digital
        Collections Unit (http://digital.lib.umn.edu).</userights>

            <keyword>Trail or path</keyword>
            <keyword>Stone walls</keyword>
            <keyword>Fountains</keyword>
            <keyword>Water</keyword>
            <keyword>Mountains</keyword>
            <keyword>Olio drop</keyword>
          </image>
        </images>


        The validator (XMetal 1.2) gives the error message that the element
        <series> cannot occur in this place within its container <image>.

        As you can see from the DTD below, <series> is one of many elements
that
        can occur within the <image> element. Have I somehow missed a very
basic
        instruction in the DTD, to allow these elements to occur in whatever
order
        I desire?

        Thanks in advance for your help.
        Sincerely,
        Chuck Thomas



        <!-- =========================================================== -->
        <!--                                                             -->
        <!-- BEGINNING OF ACTUAL DOCUMENT TYPE DECLARATION               -->
        <!-- -->
        <!-- =========================================================== -->


        <!ELEMENT images (image+)>


        <!-- =========================================================== -->
        <!-- -->
        <!--                 LIST OF VALID ELEMENTS                      -->
        <!-- -->
        <!-- =========================================================== -->

        <!ELEMENT image (digitalid | standardid* | title* | series+ |
caption? |
        annotat? | creator* | contrib* | imgyear? | imgperiod* | repository?
|
        objloc? | prov? | medium* | media* | dimensions? | descript? |
keyword* |
        userights? | note? | intnote? | thmbimg? | refimg? | archimg?)>

        <!ELEMENT annotat ( #PCDATA ) >

        <!ELEMENT archimg ( archpath? | archformat? | archsize? | archbd? |
        archres? | archloc? ) >

        <!ELEMENT archbd ( #PCDATA ) >

        <!ELEMENT archformat ( #PCDATA ) >

        <!ELEMENT archsize ( #PCDATA ) >

        <!ELEMENT archpath ( #PCDATA ) >

        <!ELEMENT archres ( #PCDATA ) >

        <!ELEMENT archloc ( #PCDATA ) >

        <!ELEMENT caption ( #PCDATA ) >

        <!ELEMENT contrib ( #PCDATA ) >
        <!ATTLIST contrib type (persname | corpname | confname) #IMPLIED >

        <!ELEMENT creator ( #PCDATA ) >
        <!ATTLIST creator type (persname | corpname) #IMPLIED >

        <!ELEMENT descript ( #PCDATA ) >

        <!ELEMENT digitalid ( #PCDATA ) >

        <!ELEMENT dimensions ( #PCDATA ) >

        <!ELEMENT medium ( #PCDATA ) >

        <!ELEMENT imgperiod ( #PCDATA ) >

        <!ELEMENT imgyear ( #PCDATA ) >

        <!ELEMENT intnote ( #PCDATA ) >

        <!ELEMENT keyword ( #PCDATA ) >
        <!ATTLIST keyword type (persname | corpname | confname | geogname |
        subject) #IMPLIED >

        <!ELEMENT media ( #PCDATA ) >

        <!ELEMENT note ( #PCDATA ) >

        <!ELEMENT objloc ( #PCDATA ) >

        <!ELEMENT prov ( #PCDATA ) >

        <!ELEMENT refimg ( refpath? | refformat? | refsize? | refbd? |
refres? ) >

        <!ELEMENT refbd ( #PCDATA ) >

        <!ELEMENT refformat ( #PCDATA ) >

        <!ELEMENT refsize ( #PCDATA ) >

        <!ELEMENT refpath ( #PCDATA ) >

        <!ELEMENT refres ( #PCDATA ) >

        <!ELEMENT repository ( #PCDATA ) >

        <!ELEMENT series ( #PCDATA ) >

        <!ELEMENT standardid ( #PCDATA ) >

        <!ELEMENT thmbimg ( thmbpath? | thmbformat? | thmbsize? | thmbbd? |
        thmbres? ) >

        <!ELEMENT thmbbd ( #PCDATA ) >

        <!ELEMENT thmbformat ( #PCDATA ) >

        <!ELEMENT thmbsize (#PCDATA ) >

        <!ELEMENT thmbpath ( #PCDATA ) >

        <!ELEMENT thmbres ( #PCDATA ) >

        <!ELEMENT title ( #PCDATA ) >
        <!ATTLIST title type (main | variant) #IMPLIED >

        <!ELEMENT userights ( #PCDATA ) >



        <!-- =========================================================== -->
        <!-- -->
        <!-- END OF DOCUMENT TYPE DEFINITION -->
        <!-- -->
        <!-- =====================================================
        ********************************************************
        "The only thing that's worse than watching a bad movie
         is being in one."
          --Elvis Presley, From THE QUOTABLE KING
            (Nashville: Cumberland House, 1997)

        "Qui me amat, amet et canem meum" (Love me, love my dog)
         - A proverb mentioned by St. Bernard in his SERMO PRIMUS

        Charles F. Thomas, Certified Archivist
        Digital Projects Coordinator
        Elmer L. Andersen Library, Room 6
        222 21st Avenue South
        Minneapolis, MN 55455
        612-625-0028
        [log in to unmask]
        ********************************************************

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