Search found 23 matches

by twcook
Wed Mar 25, 2015 8:57 pm
Forum: XML Schemas
Topic: Xpath result vs. xs:assert result
Replies: 8
Views: 3572

Re: Xpath result vs. xs:assert result

Patrik wrote:You need to validate the Test-xsd file against the schematron file DerivedAssert.sch


Ahhh, duh. :roll:

I thought the validation scenario would 'magically' load the schematron file.

But yes it works as you described and I think this will work just fine.

Cheers,
Tim
by twcook
Wed Mar 25, 2015 3:58 pm
Forum: XML Schemas
Topic: Xpath result vs. xs:assert result
Replies: 8
Views: 3572

Re: Xpath result vs. xs:assert result

Thanks for this Patrik. It certainly looks like it is a start. However, just copying the files into oXygen (saving them in the same directory) and setting a Validation scenario to use Saxon and embedded Schematron still shows a valid XSD. I am not an oXygen guru so maybe I am missing something in th...
by twcook
Fri Mar 20, 2015 11:28 pm
Forum: XML Schemas
Topic: Xpath result vs. xs:assert result
Replies: 8
Views: 3572

Re: Xpath result vs. xs:assert result

Note that you can use any xpath and call xslt function in the schematron rules. Thus, i can hardly imagine anything more flexible than that. Didn't test it but you could probably even implement a very generic schematron rule that actually evaluates an xpath expression written in the xsd. Then you c...
by twcook
Fri Mar 20, 2015 1:41 pm
Forum: XML Schemas
Topic: Xpath result vs. xs:assert result
Replies: 8
Views: 3572

Re: Xpath result vs. xs:assert result

Thanks for the description. I think I need something more generic and flexible than using the schematron approach. I need to re-think some other aspects of the overall system.
by twcook
Thu Mar 19, 2015 4:11 pm
Forum: XML Schemas
Topic: Xpath result vs. xs:assert result
Replies: 8
Views: 3572

Xpath result vs. xs:assert result

XML Editor 16.1 using SaxonEE set for XML Schema 1.1 I want to insure that elements in a complexType that is a restriction of a base complexType, have the same number of enumerations. (Code below) The sample below should fail this assert: <xs:assert test="count(//xs:element[@name='id-name']//xs...
by twcook
Fri Nov 14, 2014 7:58 pm
Forum: XML Schemas
Topic: Xerces Version
Replies: 1
Views: 1593

Xerces Version

I have a need to know the version of Xerces that is shipped with oXygen 16.1; frankly because it works well for me. But there seems to be some confusion in the Xerces user community between 2.11.0 and a 2.11.0 beta dist that supposedly has the support for XML Schema 1.1 The version in 16.1 does what...
by twcook
Thu Jul 31, 2014 12:56 pm
Forum: XQuery
Topic: MarkLogic XQuery Support
Replies: 2
Views: 2759

Re: MarkLogic XQuery Support

Apologies, I copied the incorrect error:

 XQST0031: Unsupported XQuery version 1.0-ml

is the correct one.
by twcook
Thu Jul 31, 2014 12:40 pm
Forum: XQuery
Topic: MarkLogic XQuery Support
Replies: 2
Views: 2759

MarkLogic XQuery Support

Does the Enterprise version of oXygen support 1.0-ml XQuery? Currently I get a Saxon Error:

err:XPST0003
It is a static error if an expression is not a valid instance of the grammar defined in A.1 EBNF.
by twcook
Wed Oct 30, 2013 6:40 pm
Forum: Feature Request
Topic: xs:assert support in generated instances
Replies: 1
Views: 738

xs:assert support in generated instances

Okay, for version 18.0 or 20.0 :D

But you can at least put it on the list to support the evaluation of xs:asserts when generating sample instance data.

Thanks,
Tim
by twcook
Wed Oct 30, 2013 6:38 pm
Forum: Feature Request
Topic: What about Git support?
Replies: 43
Views: 12684

Re: What about Git support?

eloralon wrote:Hello,

When do you plan to support Git repository in oXygen XML?

Our project needs to keep all development tasks on Git.

Thanks.



+1
by twcook
Sat Dec 15, 2012 11:31 pm
Forum: XML Schemas
Topic: Xerces 2.11 beta
Replies: 2
Views: 1662

Xerces 2.11 beta

As I understand it. Xerces 2.11 beta now correctly supports the versioned namespace for the XML Schema Langauge. So the schema now needs to refer to the version instead of using a commandline option. For example: xmlns:xs="http://www.w3.org/2001/XMLSchema/v1.1" instead of: xmlns:xs="h...
by twcook
Thu Sep 13, 2012 5:56 pm
Forum: XML Schemas
Topic: Invalid Schema
Replies: 6
Views: 3138

Re: Invalid Schema

Let me know, if you'd like beta access to a beta build of Oxygen v14.1. It might be easier to check these problems by yourself.


That would be great. I really need to get this working.

Thanks,
Tim
by twcook
Thu Sep 13, 2012 3:03 pm
Forum: XML Schemas
Topic: Invalid Schema
Replies: 6
Views: 3138

Re: Invalid Schema

Okay, I managed to create an approach that seems to work using ref="" and substitutiongroups. Here is a sample base schema followed by a constraint schema. <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFor...
by twcook
Wed Sep 12, 2012 11:11 pm
Forum: XML Schemas
Topic: Invalid Schema
Replies: 6
Views: 3138

Re: Invalid Schema

Thanks for the prompt reply Adrian. The items you mentioned are related. They are derived from the parent. However, as was pointed out to me on the xml-dev list; using xs:extension and then xs:restriction breaks the chain of ancestry. It is rather obscure in the specs. But Micheal Kay walked me thro...
by twcook
Tue Sep 11, 2012 3:59 pm
Forum: XML Schemas
Topic: Invalid Schema
Replies: 6
Views: 3138

Invalid Schema

This is essentially the same issue I had under the Invalid Restriction subject in this forum. However, I have created a smaller version of the two schemas as an easier way to look at the problem. The base schema aka. reference model. <?xml version="1.0" encoding="UTF-8"?> <xs:sch...
by twcook
Tue Aug 28, 2012 5:07 pm
Forum: XML Schemas
Topic: Invalid Restriction?
Replies: 7
Views: 3273

Re: Invalid Restriction?

Regarding the version number. Yes, I wanted to express XSD 1.1. In many cases, the modeler will need to use assertions in the restriction schemas. So how does one indicate that XML Schema 1.1 is in use?


I believe I found the answer in http://www.w3.org/2007/XMLSchema-versioning/

Thanks,
Tim
by twcook
Tue Aug 28, 2012 4:55 pm
Forum: XML Schemas
Topic: Invalid Restriction?
Replies: 7
Views: 3273

Re: Invalid Restriction?

Thanks so much Adrian. I actually thought the reverse order was correct. So to state the answer; elements that are inherited (is that the correct word in XSD?) in an extension, are listed first when used in a later restriction sequence. Regarding the namespace discussion (which turned out to be a ba...
by twcook
Mon Aug 27, 2012 6:24 pm
Forum: XML Schemas
Topic: Invalid Restriction?
Replies: 7
Views: 3273

Re: Invalid Restriction?

Just to be more specific. In the above schema; ct_e6c3c31f_58d3_45d6_8b4d_7694c81c8bcb and ct_90e6df33_fe19_458f_9e3f_2e6ee3db75fa each give the same error: F [Saxon-EE 9.4.0.3] The content model of the complex type ct_90e6df33_fe19_458f_9e3f_2e6ee3db75fa is not a valid restriction of the content mo...
by twcook
Mon Aug 27, 2012 6:18 pm
Forum: XML Schemas
Topic: Invalid Restriction?
Replies: 7
Views: 3273

Re: Invalid Restriction?

Thanks for the explanation. It helped with my understanding. However, I don't think we have hit on the problem yet. They both have the same namespace and I use include for mlhim2.xsd. Just for some context, the base schema is a very broad set of definitions and the restriction schemas (ccd_???) repr...
by twcook
Mon Aug 27, 2012 6:11 pm
Forum: XML Schemas
Topic: Derivation Depth?
Replies: 3
Views: 1536

Re: Derivation Depth?

The base schema mlhim2.xsd is available at: http://www.mlhim.org/xmls/mlhim2/2_3_1/mlhim2.xsd Here is a derivative schema: ccd_f9493153_8960_4974_8725_3bf824319ac8.xsd <?xml version="1.1" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ml...
by twcook
Mon Aug 27, 2012 11:15 am
Forum: XML Schemas
Topic: Derivation Depth?
Replies: 3
Views: 1536

Re: Derivation Depth?

After setting the parser to Saxon EE and version to 1.1; this problem disappeared.

Thanks.
by twcook
Sat Aug 25, 2012 6:14 pm
Forum: XML Schemas
Topic: Invalid Restriction?
Replies: 7
Views: 3273

Invalid Restriction?

The Error: System ID: /home/tim/MLHIM/slot-example/ccd_8057ea74_47d8_470d_b9b9_a0b9a8e3b8c0.xsd Main validation file: /home/tim/MLHIM/slot-example/ccd_8057ea74_47d8_470d_b9b9_a0b9a8e3b8c0.xsd Engine name: Saxon-EE 9.4.0.3 Severity: fatal Description: The content model of the complex type ct_05363e2b...
by twcook
Sat Aug 25, 2012 12:13 pm
Forum: XML Schemas
Topic: Derivation Depth?
Replies: 3
Views: 1536

Derivation Depth?

Is there a limit to derivation levels in XML Schema 1.1? I get this error: E [Xerces] rcase-NameAndTypeOK.7: The type of element 'definition', 'ct_013f4560_9b34_4081_9162_e58245cec514', is not derived from the type of the base element, 'DefinitionType'. When in fact ct_013f4560_9b34_4081_9162_e58245...

Go to advanced search