[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

I've got an issue with the XQueryX Schema...

Philip Fennell Philip.Fennell at marklogic.com
Sun Jul 18 18:12:45 PDT 2010


  I've got an issue with the XQueryX Schema...
David,

Ah, yes I get it now, thank you.

<xqx:typeDeclaration>
  <xqx:atomicType xqx:prefix="xs">string</xqx:atomicType>
  <xqx:occurrenceIndicator>?</xqx:occurrenceIndicator>
</xqx:typeDeclaration>


Regards

Philip

-----Original Message-----
From: http://x-query.com/mailman/listinfo/talk [mailto:http://x-query.com/mailman/listinfo/talk] On Behalf Of David Carlisle
Sent: 18 July, 2010 4:39 PM
To: http://x-query.com/mailman/listinfo/talk
Subject: Re:  I've got an issue with the XQueryX Schema...

On 19/07/2010 00:16, Philip Fennell wrote:
> Whilst in the process of generating some XQuery code via XQueryX I've noticed that the area of variable declarations 'xqx:varDecl' does not seem to be supported properly/completely by the published XML Schema.
>
> The following example:
>
> <xqx:varDecl>
>    <xqx:varName>NAT_ID</xqx:varName>
>    <xqx:typeDeclaration>
>      <xqx:itemType>xs:string</xqx:itemType>
>      <xqx:occurrenceIndicator>?</xqx:occurrenceIndicator>
>    </xqx:typeDeclaration>
>    <xqx:external/>
> </xqx:varDecl>
>
> causes the validation to fail (in oXygen using Xerces) with this message:
>
> SystemID: C:\Users\...
> Engine name: Xerces
> Severity: error
> Description: cvc-elt.2: The value of {abstract} in the element declaration for 'xqx:itemType' must be false.
> Start location: 16:7
> End location: 16:19
> URL: http://www.w3.org/TR/xmlschema-1/#cvc-elt
>

I think the idea is that you use atomicType which is in the substitution 
group of itemtype to hold atomic type names such as xs:string.

David

_______________________________________________
http://x-query.com/mailman/listinfo/talk
http://x-query.com/mailman/listinfo/talk



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.