Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » CWM and XSD
CWM and XSD [message #60550] Wed, 04 May 2005 09:33 Go to next message
Eclipse UserFriend
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 10:25 Go to previous messageGo to next message
Eclipse UserFriend
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 12:01 Go to previous messageGo to next message
Eclipse UserFriend
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 13:11 Go to previous messageGo to next message
Eclipse UserFriend
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 16:04 Go to previous message
Dave Carlson is currently offline Dave CarlsonFriend
Messages: 402
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 10:25 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
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
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: CWM and XSD [message #595398 is a reply to message #60893] Wed, 04 May 2005 12:01 Go to previous message
Eclipse UserFriend
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 13:11 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
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?
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: CWM and XSD [message #595418 is a reply to message #60916] Thu, 05 May 2005 16:04 Go to previous message
Dave Carlson is currently offline Dave CarlsonFriend
Messages: 402
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: Thu Jan 02 23:27:03 GMT 2025

Powered by FUDForum. Page generated in 0.03713 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top