Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » CWM and XSD
CWM and XSD [message #60550] Wed, 04 May 2005 05:33 Go to next message
Eclipse User
Originally posted by: dony.qqqqsss.com

Hi,



I have generated a xsd file from a dtd, but there are some problems.



In the xsd file there is an element tag definition like this:



<xsd:element name="CWM:ModelElement.taggedValue">



but the file is not right.



The error message is :



Value "CWM:ModelElement.taggedValue" of attribute 'name' does not match
simple type 'xs:NCName'



could somebody help me?



Thanks
Re: CWM and XSD [message #60893 is a reply to message #60550] Wed, 04 May 2005 06:25 Go to previous messageGo to next message
Eclipse User
Originally posted by: merks.ca.ibm.com

Dony,

NCName stands for Non-colonized name and as that term implies, colons
are not allowed.


Dony wrote:

> Hi,
>
>
>
> I have generated a xsd file from a dtd, but there are some problems.
>
>
>
> In the xsd file there is an element tag definition like this:
>
>
>
> <xsd:element name="CWM:ModelElement.taggedValue">
>
>
>
> but the file is not right.
>
>
>
> The error message is :
>
>
>
> Value "CWM:ModelElement.taggedValue" of attribute 'name' does not
> match simple type 'xs:NCName'
>
>
>
> could somebody help me?
>
>
>
> Thanks
>
>
>
Re: CWM and XSD [message #60916 is a reply to message #60893] Wed, 04 May 2005 08:01 Go to previous messageGo to next message
Eclipse User
Originally posted by: dony.xxxxxxx.xx

Thanks for your quick answer...

The problem is that colons are necessary for our schema. Do you know how
we can do?
Re: CWM and XSD [message #60940 is a reply to message #60916] Wed, 04 May 2005 09:11 Go to previous messageGo to next message
Eclipse User
Originally posted by: merks.ca.ibm.com

Dony,

Since they absolutely aren't allowed, they cannot possibly be
necessary. I'm quite sure you are confusing wanting prefixes in your
instance documents with putting prefixes in your schema's names. Your
schema should have a target namespace and the names it uses should not
have colons; the prefix used in the instance documents will be based on
that namespace.


Dony wrote:

> Thanks for your quick answer...
>
> The problem is that colons are necessary for our schema. Do you know
> how we can do?
>
Re: CWM and XSD [message #60989 is a reply to message #60916] Thu, 05 May 2005 12:04 Go to previous message
Dave Carlson is currently offline Dave Carlson
Messages: 399
Registered: July 2009
Senior Member
Dony,

It sounds like the tool you used to convert your DTD to XSD is faulty and
produces invalid schemas. I'd suggest getting a differt tool for converting
your DTD.

Cheers,
Dave Carlson

"Dony" <dony@xxxxxxx.xx> wrote in message
news:bf6e486122d146eb76b3fc053ebc395f$1@www.eclipse.org...
> Thanks for your quick answer...
>
> The problem is that colons are necessary for our schema. Do you know how
> we can do?
>
Re: CWM and XSD [message #595387 is a reply to message #60550] Wed, 04 May 2005 06:25 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26000
Registered: July 2009
Senior Member
Dony,

NCName stands for Non-colonized name and as that term implies, colons
are not allowed.


Dony wrote:

> Hi,
>
>
>
> I have generated a xsd file from a dtd, but there are some problems.
>
>
>
> In the xsd file there is an element tag definition like this:
>
>
>
> <xsd:element name="CWM:ModelElement.taggedValue">
>
>
>
> but the file is not right.
>
>
>
> The error message is :
>
>
>
> Value "CWM:ModelElement.taggedValue" of attribute 'name' does not
> match simple type 'xs:NCName'
>
>
>
> could somebody help me?
>
>
>
> Thanks
>
>
>
Re: CWM and XSD [message #595398 is a reply to message #60893] Wed, 04 May 2005 08:01 Go to previous message
Eclipse User
Originally posted by: dony.xxxxxxx.xx

Thanks for your quick answer...

The problem is that colons are necessary for our schema. Do you know how
we can do?
Re: CWM and XSD [message #595400 is a reply to message #60916] Wed, 04 May 2005 09:11 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26000
Registered: July 2009
Senior Member
Dony,

Since they absolutely aren't allowed, they cannot possibly be
necessary. I'm quite sure you are confusing wanting prefixes in your
instance documents with putting prefixes in your schema's names. Your
schema should have a target namespace and the names it uses should not
have colons; the prefix used in the instance documents will be based on
that namespace.


Dony wrote:

> Thanks for your quick answer...
>
> The problem is that colons are necessary for our schema. Do you know
> how we can do?
>
Re: CWM and XSD [message #595418 is a reply to message #60916] Thu, 05 May 2005 12:04 Go to previous message
Dave Carlson is currently offline Dave Carlson
Messages: 399
Registered: July 2009
Senior Member
Dony,

It sounds like the tool you used to convert your DTD to XSD is faulty and
produces invalid schemas. I'd suggest getting a differt tool for converting
your DTD.

Cheers,
Dave Carlson

"Dony" <dony@xxxxxxx.xx> wrote in message
news:bf6e486122d146eb76b3fc053ebc395f$1@www.eclipse.org...
> Thanks for your quick answer...
>
> The problem is that colons are necessary for our schema. Do you know how
> we can do?
>
Previous Topic:CWM and XSD
Next Topic:2 suggestions for XSD
Goto Forum:
  


Current Time: Fri Aug 22 15:39:13 EDT 2014

Powered by FUDForum. Page generated in 0.02131 seconds