Entity DTD Declarations and Whitespace

Discussion in 'XML' started by tastyrerun, Jun 14, 2007.

  1. tastyrerun

    tastyrerun Guest

    I have the following entity defined in my DTD:

    <!ENTITY % I_ScoreModel " scoremodel ( SumOfScores |
    WeightedSumOfScores | Scaled | PassFail | Mapped | Scripted | IRT )
    #IMPLIED">

    I have been asked to add another value to the list of "Taken Grade".
    The problem is the presence of whitespace. How can I either this
    declaration to allow for "Taken Grade" or add the value in a way that
    allows the space?

    Changing the declaration to TakenGrade, my first suggestion, causes a
    whole different set of issues with our client so I'm hoping I don't
    have to go that route. Any advice would be great, thanks!

    Ryan
    ryan dot sutter at pearson dot com
    tastyrerun, Jun 14, 2007
    #1
    1. Advertising

  2. * tastyrerun wrote in comp.text.xml:
    >I have the following entity defined in my DTD:
    >
    ><!ENTITY % I_ScoreModel " scoremodel ( SumOfScores |
    >WeightedSumOfScores | Scaled | PassFail | Mapped | Scripted | IRT )
    >#IMPLIED">
    >
    >I have been asked to add another value to the list of "Taken Grade".
    >The problem is the presence of whitespace. How can I either this
    >declaration to allow for "Taken Grade" or add the value in a way that
    >allows the space?
    >
    >Changing the declaration to TakenGrade, my first suggestion, causes a
    >whole different set of issues with our client so I'm hoping I don't
    >have to go that route. Any advice would be great, thanks!


    You cannot have spaces in enumerated values, you have to use CDATA as
    type instead and replicate the constraints where needed, or use another
    value without a space, as you suggest.
    --
    Björn Höhrmann · mailto: · http://bjoern.hoehrmann.de
    Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
    68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
    Bjoern Hoehrmann, Jun 14, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. M.D. van de Burgwal
    Replies:
    3
    Views:
    1,060
    Paul Uiterlinden
    Oct 7, 2004
  2. Oli Filth
    Replies:
    9
    Views:
    3,314
    Uncle Pirate
    Jan 17, 2005
  3. Georg J. Stach
    Replies:
    7
    Views:
    7,907
    JAPISoft
    Sep 26, 2005
  4. markla
    Replies:
    1
    Views:
    531
    Steven Cheng
    Oct 6, 2008
  5. Replies:
    10
    Views:
    718
    Eric Brunel
    Dec 16, 2008
Loading...

Share This Page