Results 1 to 2 of 2

Thread: xsd validation, xs:include missing ?

  1. #1
    Join Date
    Feb 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default xsd validation, xs:include missing ?

    Hello.
    I'm currently working on a project with small xml databases.

    I wrote XSD schemas and XML example files. For convenience, I used a common XML file where I put some common types
    I validate syntax and functionality with Oxygen XML.

    I am now trying to validate the XML file, with QXmlSchemaValidator, before reading and loading it.
    I looked to the schema Validation example to create my code.

    When I try to use
    Error XSDError in Unknown location, at line 71, column 88: Type {SPSdb}SPSdb:T_Record of element element cannot be resolved.
    It seems that the parser does not execute the include and cannot find the type wrote in it. If I replace the include by the common code, it works !

    I found this clue in a comment :
    http://labs.qt.nokia.com/2009/07/31/.../#comment-4567
    however the XSLT implementation in Qt is still lacking the include functionality
    Can you confirm that the include is not supported ?
    Is there any rapid and simple way to deal with or do I need to copy the common file in all XSD files ?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: xsd validation, xs:include missing ?

    You can preprocess all the files and execute the include statements yourself, it's quite easy. Then you can feed the result to the XML engine.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Ip Address Validation
    By bruccutler in forum Qt Programming
    Replies: 26
    Last Post: 3rd November 2010, 03:58
  2. XML Validation
    By NoRulez in forum Qt Programming
    Replies: 4
    Last Post: 15th September 2010, 13:07
  3. cross validation
    By mickey in forum General Discussion
    Replies: 0
    Last Post: 14th September 2009, 17:39
  4. build fails: krb5.h include file missing
    By paulocarvalho_br_2009 in forum Installation and Deployment
    Replies: 2
    Last Post: 24th May 2009, 16:13
  5. Validation
    By Tavit in forum Qt Programming
    Replies: 2
    Last Post: 21st March 2009, 07:03

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.