473,405 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Entity DTD Declarations and Whitespace

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

Jun 14 '07 #1
1 1526
* 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:bj****@hoehrmann.de · 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/
Jun 14 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ronald Fischer | last post by:
Could someone explain to me what is the difference between <!ENTITY % Foo 'Bar' > and <!ENTITY Foo 'Bar' > From my understanding, the "macro" Foo has to be referenced in the first case...
11
by: Douglas Reith | last post by:
Hi There, Can someone please tell me why the XML spec states that an attribute value with an external entity is forbidden? Or point me to the appropriate document? Or better still, perhaps you...
1
by: Home User | last post by:
Hello, I am trying to find an application (if it exists) that actually creates .gent files (General Entity). Also, I am wondering if I can import .gent files into Dreamweaver? Perhaps with...
1
by: Steven Simpson | last post by:
Hello, If an XML processor encounters a 'PEReference' in a 'markupdecl' (but not in 'EntityValue'), are there circumstances where it does not have to include it (i.e. use the replacement text...
2
by: poisondart | last post by:
Is there a predefined entity set for Spanish accents? I know that I could just easily make one, except that I intend to do this for other languages in the future, which may have more accents than...
3
by: bgeci | last post by:
I have problem with Entity definition. ____________________________________________ my file "test.xml" ---- <?xml version="1.0" ?> <!DOCTYPE message > <message>&Ep;</message> ---- IE6 Error...
3
by: Tuomas Rannikko | last post by:
Hello! I have a simple question about DTDs: Should this be possible? <!DOCTYPE root > In the XML specification I can't find the spot where it says this would be disallowed; however Xerces...
4
by: keith | last post by:
Hi, I'm new to DTDs and trying to get a DTD file to define an entity for me, but the entity never gets defined. Looking for some insight. Here are the files I'm working with: ...
0
by: peasthope | last post by:
A text of <!DOCTYPE html ... "... xhtml-math-svg-flat.dtd"> is visible at http://carnot.yi.org/Category2.xhtml . It contains one svg element which contains a defs element. Suppose that a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.