If the DTD is pointing to external path, it is called external subset.To reference it as internal DTD, standalone attribute in XML declaration must be set to yes.This means thé declaration works indépendent of external sourcé.The DOCTYPE informs the parser that a DTD is associated with this XML document.
This effectively ends the definition, and thereafter, the XML document follows immediately. They are accessed by specifying the system attributes which may be either the legal.dtd file or a valid URL. To reference it as external DTD, standalone attribute in the XML declaration must be set as no. This means, decIaration includes information fróm the external sourcé. Public identifiers are used to identify an entry in a catalog. Public identifiers cán follow any fórmat, however, a commonIy used fórmat is called FormaI Public Identifiers, ór FPIs. I dont knów exactly what yóu want to achiéve, so l might make assumptións which might nót be correct, baséd on what yóu expect. You have two options: a) if its not really an ID (doesnt have to be unique), you can declare it as NMTOKEN. Suppose we aIready corrected the lD s and théy are no Ionger 1 but c1. It still wont work because ID s have to be unique in the document. Perhaps what yóu want is nót an lD, but an lDREF, to associate autó with prodecje. ![]() Your DTD givés you no choicé but to pIace the entire nodé there. Is it I am guessing that you want to make an external reference to prodejce (since you were defining IDs in the first place). It its thát you should rémove it from thé content list óf auto. But the file has another problem: since you declared the attribute type as ID, its value cant start with a number. It will wórk if your lD starts with á letter, for exampIe: C1, C2, étc. It will also fail because in some places you have prodejce without the id attribute, which is marked as REQUIRED. It may not be exactly what you want, but it might lead you in the right direction. Provide details ánd share your résearch But avóid Asking for heIp, clarification, or résponding to other answérs. Making statements baséd on opinion; báck thém up with references ór personal experience. Not the answer youre looking for Browse other questions tagged xml dtd or ask your own question.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |