CWM and XSD [message #60550] |
Wed, 04 May 2005 09:33 |
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 10:25 |
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 12:01 |
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 13:11 |
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 #595387 is a reply to message #60550] |
Wed, 04 May 2005 10:25 |
Ed Merks 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 |
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 13:11 |
Ed Merks 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/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03713 seconds