Part 0, Appendix C talks about this, using fixed attribute of <element


-----Original Message-----
From: Maik Weber [mailto:[EMAIL PROTECTED]
Sent: 09 July 2001 15:04
To: [EMAIL PROTECTED]
Subject: Re: Entities with XMLSchema

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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to