Entity DTD Declarations and Whitespace

T

tastyrerun

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
 
B

Bjoern Hoehrmann

* 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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,008
Messages
2,570,269
Members
46,870
Latest member
hemasindhura

Latest Threads

Top