[xsd-users] ccxml.xsd

frederic heem frederic.heem at telsey.it
Wed Oct 26 13:11:50 EDT 2005


Hi boris, 
I would like to make a  basic ccxml interpreter in C++,  its W3C shema file is 
ccxml.xsd.
The first problem is that the one import keyword has a schemaLocation 
attribute value of "http://www.w3.org/2001/xml.xsd", xsd doesn't support 
remote import. It would be nice to have a command line option to map a remote 
file to a local one. Anyway, this is not an important problem, I've changed 
the attribute value to xml.xsd and downloaded this file.
The second problem is an error occurs while parsing xml.xsd:
xml.xsd:108:40: error: expected 'list' or 'restriction' instead of 'union'
As I don't care about the attribute lang, I've modified the attribute lang to 
not use union keyword and add the type xs:string as a type:
 <xs:attribute name="lang" type="xs:string">
  <xs:annotation>
   <xs:documentation>Attempting to install the relevant ISO 2- and 3-letter
         codes as the enumerated possible values is probably never
         going to be a realistic possibility.  See
         RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry
         at http://www.iana.org/assignments/lang-tag-apps.htm for
         further information.

         The union allows for the 'un-declaration' of xml:lang with
         the empty string.</xs:documentation>
  </xs:annotation>
  <!--<xs:simpleType>
   <xs:union memberTypes="xs:language">
    <xs:simpleType>    
     <xs:restriction base="xs:string">
      <xs:enumeration value=""/>
     </xs:restriction>
    </xs:simpleType>
   </xs:union>
  </xs:simpleType>-->
 </xs:attribute>

xsd 1.5 segfaults, here is the backtrace:
#0  0x081be966 in XSDFrontend::(anonymous namespace)::Resolver::traverse_group 
() at basic_string.tcc:243
243     basic_string.tcc: No such file or directory.
        in basic_string.tcc
(gdb) bt
#0  0x081be966 in XSDFrontend::(anonymous namespace)::Resolver::traverse_group 
() at basic_string.tcc:243
#1  0x081bee4c in XSDFrontend::(anonymous namespace)::Resolver::traverse () at 
basic_string.tcc:243
#2  0x08090593 in 
FrontendElements::Traversal::DispatcherBase<XSDFrontend::SemanticGraph::Node>::dispatch_<XSDFrontend::SemanticGraph::Node> 
() at basic_string.tcc:243
#3  0x08091403 in 
FrontendElements::Traversal::DispatcherBase<XSDFrontend::SemanticGraph::Edge>::dispatch_<XSDFrontend::SemanticGraph::Edge> 
() at basic_string.tcc:243
#4  0x080bedf6 in 
XSDFrontend::Traversal::ScopeTemplate<XSDFrontend::SemanticGraph::Scope>::names 
() at basic_string.tcc:243
#5  0x081beeec in XSDFrontend::(anonymous namespace)::Resolver::traverse () at 
basic_string.tcc:243
#6  0x08090593 in 
FrontendElements::Traversal::DispatcherBase<XSDFrontend::SemanticGraph::Node>::dispatch_<XSDFrontend::SemanticGraph::Node> 
() at basic_string.tcc:243
#7  0x08091403 in 
FrontendElements::Traversal::DispatcherBase<XSDFrontend::SemanticGraph::Edge>::dispatch_<XSDFrontend::SemanticGraph::Edge> 
() at basic_string.tcc:243
#8  0x0808c408 in 
XSDFrontend::Traversal::ScopeTemplate<XSDFrontend::SemanticGraph::Namespace>::names 
() at basic_string.h:218
#9  0x0808bf96 in XSDFrontend::Traversal::Namespace::traverse ()
#10 0x08090593 in 
FrontendElements::Traversal::DispatcherBase<XSDFrontend::SemanticGraph::Node>::dispatch_<XSDFrontend::SemanticGraph::Node> 
() at basic_string.tcc:243
#11 0x08091403 in 
FrontendElements::Traversal::DispatcherBase<XSDFrontend::SemanticGraph::Edge>::dispatch_<XSDFrontend::SemanticGraph::Edge> 
() at basic_string.tcc:243
#12 0x0809aaf8 in 
XSDFrontend::Traversal::ScopeTemplate<XSDFrontend::SemanticGraph::Schema>::names 
() at basic_string.tcc:243
#13 0x0809a809 in XSDFrontend::Traversal::Schema::traverse () at 
basic_string.tcc:243
#14 0x08090593 in 
FrontendElements::Traversal::DispatcherBase<XSDFrontend::SemanticGraph::Node>::dispatch_<XSDFrontend::SemanticGraph::Node> 
() at basic_string.tcc:243
#15 0x081a3144 in XSDFrontend::Parser::Impl::parse () at basic_string.tcc:243
#16 0x081a336d in XSDFrontend::Parser::parse () at basic_string.tcc:243
#17 0x08061054 in main ()

I hope it helps.



of On Wednesday 26 October 2005 18:00, xsd-users-request at codesynthesis.com 
wrote:
> Send xsd-users mailing list submissions to
> 	xsd-users at codesynthesis.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://codesynthesis.com/mailman/listinfo/xsd-users
> or, via email, send a message with subject or body 'help' to
> 	xsd-users-request at codesynthesis.com
>
> You can reach the person managing the list at
> 	xsd-users-owner at codesynthesis.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of xsd-users digest..."
>
>
> Today's Topics:
>
>    1. plans for xsd 1.6.0 (Boris Kolpackov)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 26 Oct 2005 10:49:52 +0200
> From: Boris Kolpackov <boris at codesynthesis.com>
> Subject: [xsd-users] plans for xsd 1.6.0
> To: xsd-users at codesynthesis.com
> Message-ID: <20051026084952.GA28003 at karelia>
> Content-Type: text/plain; charset="us-ascii"
>
> Good day,
>
> We are planning to make the following user-visible changes in xsd 1.6.0
> which is to be released around Nov 13. Your feedback on the proposed
> changes/new features is always appreciated.
>
>
> * Support for xsi:type and substitution groups.
>
>
> * Properties argument to parsing functions which will allow to
>   programmatically specify schemas for instance document validation.
>
>
> * Extra checks in parsing code which will prevent construction
>   of inconsistent in-memory representation from invalid instance
>   documents. Should be useful when validation is disabled.
>
>
> * Workaround for g++-3.3 bug# 16650. This change didn't make it
>   into 1.5.0.
>
>   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16650
>
>
> hth,
> -boris
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 652 bytes
> Desc: Digital signature
> Url :
> http://codesynthesis.com/pipermail/xsd-users/attachments/20051026/67c6a257/
>attachment-0001.pgp
>
> ------------------------------
>
> _______________________________________________
> xsd-users mailing list
> xsd-users at codesynthesis.com
> http://codesynthesis.com/mailman/listinfo/xsd-users
>
>
> End of xsd-users Digest, Vol 4, Issue 22
> ****************************************

-- 
*****     -----     *****     -----     *****    

Frederic Heem

Software Designer
R&D - Telsey SpA Telecommunications
Viale Industria, 1
31055 Quinto di Treviso (TV)
ITALY
Tel. direct phone: (+39) 0422 377819
Tel. (+39) 0422 377711
Fax. (+39) 0422 470920
website ==> www.telsey.it

PRIVACY AND CONFIDENTIALITY NOTICE 
This email and any attachments are confidential and are intended for the 
addressee only.
If you have received this message by mistake, please contact us immediately 
and then
delete the message from your system. You must not copy, distribute, disclose 
or act upon
the contents of this email.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ccxml.xsd
Type: application/xml
Size: 17603 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20051026/398788fc/ccxml.xml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ccxml-localTargetNamespace.xsd
Type: application/xml
Size: 17580 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20051026/398788fc/ccxml-localTargetNamespace.xml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xml.xsd
Type: application/xml
Size: 5849 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20051026/398788fc/xml.xml


More information about the xsd-users mailing list