At 08.45 11/12/2003 +0100, Mathias Mueller wrote:
Hi,
In my dtd file I find the following lines:
<!ENTITY % SFFloat "CDATA"> <!-- Float -->
...
pitch %SFFloat; "1.0"
Is this SFFloat only a number counter or is it a string?
SFFloat is a parameter entity (like a macro in a language like C) that will be expanded with the text "CDATA". Later in the DTD, an attribute "pitch" is defined, using that entity reference as its type information (this way you can change the type for several attributes simply by changing that entity reference definition)
Is there any way to get the information "SFFloat" for the attribute pitch from Xerces? I tried DataTypeInfo but the name only gave my "CDATA".
You cannot have access to the parameter entities used inside a DTD after the parsing has been done. I understand you would like to be able to see that "pitch" is really meant to hold a floating point value, but DTDs have limited support for datatypes (ID, IDREF, NMTOKEN, CDATA...); you should switch to an XML Schema representation of your schema.
Hope this helps,
Alberto
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
