Hello Roger, Ian is right. I don't want to use the entity in a schema. I want to define it there and use it in the document instance - just like you can define a DTD with this kind of entities and use it in all documents which are valid against that DTD.
Is there really no way? I know that entities are a DTD-specific concept but XMLSchema should replace DTDs, shouldn't? maik Ian Roberts wrote: > On Mon, 9 Jul 2001, Roger L. Costello wrote: > > > Hello Maik, > > > > Since an XML Schema is just an XML document, you can use entities in a > > Schema the same fashion that you would use them in a plain XML > > document. For example: > > > > <?xml version="1.0" encoding="UTF-8"?> > > <!DOCTYPE xsd:schema [ > > <!ENTITY str "xsd:string"> > > ]> > > <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > targetNamespace="http://www.test.org" > > xmlns="http://www.test.org" > > elementFormDefault="qualified"> > > I don't think this is what Maik is after. Is it possible to declare > entities within a schema (instead of in a DOCTYPE) for use in the instance > document? I believe the answer to this is no. Entities are a DTD > specific concept. > > Ian > > -- > Ian Roberts, Software Engineer DecisionSoft Ltd. > Telephone: +44-1865-203192 http://www.decisionsoft.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- * Homepage: www.webis-world.de * mailto : [EMAIL PROTECTED] * ICQ : #57313947 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
