Home > XMLSCHEMA-DEV Blog
The XML Schema Development Blog (XMLSchema-DEV Blog)XML Schema-DEV is an open, un-moderated email list about XML Schema-releated development. XMLSCHEMA-Dev was founded in March, 2000 by Gerald Oskoboiny, and is today hosted by the World Wide Web consortium (W3C). The XML Schema Development Blog lets you keep up to date with the latest news and buzz about XML Schema, a core XML technology used with the most important XML technologies, including XSLT, XQuery and Web Services technologies. To: Ken vPosted 11/21/2014 10:47:44 AMhttp://viajesestudiantesplaya.com/ftaeoyi/fjvqjudfvnavgxd.jtkwtkzgicoklhke Rob Harrington 11/21/2014 10:47:44 PM Received on Friday, 21 November 2014 21:48:11 UTC . . . Read full entry » [ANN] XML Schema to SVG transform written in XQueryPosted 9/1/2014 1:24:25 PMI have developed XQuery code that transforms an XML Schema to an SVG representing that XSD. It is still a work in progress. I took the xsdvi project http://xsdvi.sourceforge.net/ that was written in Java and transformed it to an XQuery function module. It is available at https://github.com/lcahl . . . Read full entry » [ANN] DocFlex/XML XSDDoc - XML Schema Documentation Generation ToolkitPosted 7/26/2014 11:25:02 PMBoth a powerful multi-format XML schema (XSD) documentation generator with inclusion of XSD diagrams generated by XMLSpy or OxygenXML and a tool to create your own (custom) XSD documentation generators. ABOUT DOCFLEX/XML ================= DocFlex/XML is a Java-based software system for developmen . . . Read full entry » [ANN] CodeSynthesis XSD 4.0.0 released, adds support for C++11Posted 7/22/2014 1:00:43 PMHi, I am pleased to announce the release of CodeSynthesis XSD 4.0.0. XSD is an open source, cross-platform W3C XML Schema to C++ data binding compiler. Provided with a schema, it generates C++ classes that represent the given vocabulary as well as XML parsing and serialization code. You can then . . . Read full entry » Rule Challenge 2014 - Submission Deadline Extension (June 18)Posted 6/10/2014 5:27:51 PMApologies for cross-postings. Please send to interested colleagues. --------------------------------------------- 8th International Rule Challenge 2014 (http://2014.ruleml.org/challenge) part of the RuleML 2014 symposium held in conjunction with ECAI 2014, the 21st European Conference on Artifici . . . Read full entry » Rule Challenge 2014 - Submission Deadline Extension (June 6)Posted 5/27/2014 6:59:26 PMApologies for cross-postings. Please send to interested colleagues. --------------------------------------------- 8th International Rule Challenge 2014 (http://2014.ruleml.org/challenge) part of the RuleML 2014 symposium held in conjunction with ECAI 2014, the 21st European Conference on Artifici . . . Read full entry » Fwd: 4th RuleML Doctoral Consortium 2014 - Call for PapersPosted 5/22/2014 11:54:13 AMCall for Papers 4th RuleML Doctoral Consortium 2014, part of the RuleML'14 symposium held in conjunction with ECAI 2014, the 21st European Conference on Artificial Intelligence, Prague, Czech Republic, August 18 - 20, 2014 ============= About the Doctoral Consortium ================= The RuleML 20 . . . Read full entry » [CfP] Rule Challenge 2014 Final Call for PapersPosted 5/13/2014 1:16:11 PMApologies for cross-postings. Please send to interested colleagues. ---------------------------------------------------------------- Final Call for Papers 8th International Rule Challenge 2014 (http://2014.ruleml.org/challenge) part of the RuleML 2014 symposium held in conjunction with ECAI 2014, . . . Read full entry » Re: request to enlist XmlPlus in the XSD-Tools listPosted 4/12/2014 9:59:44 PMOn Wed, 2014-01-29 at 13:42 +0530, xmlplus custodians wrote: > Hi, > > Please add XmlPlus - xsd2cpp to the list here: > > http://www.w3.org/XML/Schema#Tools done, with apologies for taking so long - it turns out that the list is schema tools is curren . . . Read full entry » RuleML 2014 - deadline extensionPosted 3/30/2014 2:26:37 PM------------------------------------------------------------ --------------------- RuleML 2014 - 8th International Web Rule Symposium In conjunction with ECAI 2014 Prague, Czech Republic, August 18-20, 2014. http://2014.ruleml.org -------------------------------------------------------------------- . . . Read full entry » RuleML 2014 - one week to abstract submission deadlinePosted 3/26/2014 12:06:17 AM****** 1 WEEK TO ABSTRACT SUBMISSION DEADLINE ****** Apologies for cross-postings. Please send to interested colleagues. Call for Papers 8th International Web Rule Symposium (RuleML 2014) In conjunction with ECAI 2014, the 21st European Conference on Artificial Intelligence Prague, Czech Republic . . . Read full entry » RuleML 2014: 2nd Call for PapersPosted 2/20/2014 12:19:24 AM2nd Call for Papers RuleML 2014 - 8th International Web Rule Symposium In conjunction with ECAI 2014, the 21st European Conference on Artificial Intelligence Prague, Czech Republic, August 18-20, 2014 http://2014.ruleml.org Special Issue =========== A selection of the best RuleML 2014 papers will . . . Read full entry » XmlPosted 2/3/2014 12:08:56 PMtext/xml attachment: oon_design.xml Received on Tuesday, 4 February 2014 12:53:25 UTC . . . Read full entry » request to enlist XmlPlus in the XSD-Tools listPosted 1/29/2014 1:42:14 PMHi, Please add XmlPlus - xsd2cpp to the list here: http://www.w3.org/XML/Schema#Tools The details follow: ------------------------------------------------------------------------------------------------------------------------------------------------------ Descrip . . . Read full entry » [ann] oXygen XML Editor 15.2 adds support for XML Schema language versionPosted 1/24/2014 4:44:30 PMHello, I am happy to announce that version 15.2 of oXygen XML Editor is available from our website http://www.oxygenxml.com This new version implements support for working multiple XML Schema language versions, oXygen understanding now the vc:minVersion and vc:maxVersion attributes if these ar . . . Read full entry » RuleML 2014 Call for PapersPosted 12/8/2013 8:50:51 AM** Apologies for cross-postings. Please send to interested colleagues. ** Call for Papers RuleML 2014 - 8th International Web Rule Symposium Prague, Czech Republic, August 18-20, 2014 http://2014.ruleml.org About RuleML 2014 ================= The annual International Web Rule Symposium (RuleML) i . . . Read full entry » RuleML 2014 Call for PapersPosted 12/6/2013 9:16:47 PMApologies for cross-postings. Please send to interested colleagues. Call for Papers RuleML 2014 - 8th International Web Rule Symposium Prague, Czech Republic, August 18-20, 2014 http://2014.ruleml.org About RuleML 2014 ================= The annual International Web Rule Symposium (RuleML) is the . . . Read full entry » Re: XSD 1.1 assert and id()Posted 11/18/2013 2:41:39 PMHello Michael, thanks for the clarification. Best, Maik Michael Kay schrieb: > XSD 1.1 states Part 1, §3.13.1): > > To check an assertion, an instance of the XPath 2.0 data model ([XDM]) is constructed, in which the element information item being ·assessed· is the (parentless) root . . . Read full entry » Re: XSD 1.1 assert and id()Posted 11/18/2013 12:36:39 PMXSD 1.1 states Part 1, §3.13.1): To check an assertion, an instance of the XPath 2.0 data model ([XDM]) is constructed, in which the element information item being ·assessed· is the (parentless) root node and XPath Functions and Operators states (§15.5.2 fn:id): If $node, or the context item if . . . Read full entry » XSD 1.1 assert and id()Posted 11/18/2013 11:18:21 AMHello, I know that XSD 1.1 assert elements are restricted to descendent nodes of the content node that is asserted. It seems to me, that this rule does prevent the use of the id() function, since it could be used to access nodes out of scope. See the simple XSD below. I have a number of movies . . . Read full entry » Altova XSD 1.1 announcementPosted 11/2/2013 5:00:39 PMIt's good to see that Altova have now announced what we have suspected for some time, that they have developed an XML Schema 1.1 processor. They are claiming complete conformance with the spec: http://www.altova.com/whatsnew_missionkit.html Hopefully this will start to accelerate the rate of XSD . . . Read full entry » Re: XML Schema language versionPosted 10/11/2013 10:14:20 AMDear Michael, If the document specifies only vc:minVersion="1.0" on the schema root element then we will need to use an XML Schema 1.1 processor and this matches the result of the provided algorithm. Why we need to use an XML Schema 1.1 processor in this case? minVersion="1.0&qu . . . Read full entry » Re: XML Schema language versionPosted 10/10/2013 6:26:27 PMOn Oct 10, 2013, at 5:49 AM, Loren Cahlander wrote: > I fully agree. Max means less than or equal, not less than. > > The example in http://www.w3.org/2007/XMLSchema-versioning/ matches the general understaning of max. It also matches the initial description of the vc:* namespace, b . . . Read full entry » Re: XML Schema language versionPosted 10/10/2013 6:21:19 PMOn Oct 10, 2013, at 4:35 AM, Timothy W. Cook wrote: > Thanks for this addition to oXygen. > The maxVersion issue needs to be fixed in the specs. I think everyone agrees that the current definition is just non-sensical. Well, no. The initial draft of the vc:* namespace had inclusive sem . . . Read full entry » Re: XML Schema language versionPosted 10/10/2013 6:12:54 PMOn Oct 10, 2013, at 2:19 AM, George Cristian Bina wrote: > Thanks Mike for this suggestion! > > We will implement this algorithm in oXygen: > > if (there are vc:minVersion or vc:maxVersion attributes on the schema root element) then { > if (version 1.1 is accepted) > the . . . Read full entry » Re: XML Schema language versionPosted 10/10/2013 11:19:48 AMThanks Mike for this suggestion! We will implement this algorithm in oXygen: if (there are vc:minVersion or vc:maxVersion attributes on the schema root element) then { if (version 1.1 is accepted) then (use XML Schema version 1.1) else if (version 1.0 is accepted) then (use XML Schema ve . . . Read full entry » Re: XML Schema language versionPosted 10/10/2013 9:58:23 AMYes, the exclusive nature is a bit of a pain. I would use values like max=1.0001 or max=1.1001. Michael Kay Saxonica On 10 Oct 2013, at 09:19, George Cristian Bina wrote: > Thanks Mike for this suggestion! > > We will implement this algorithm in oXygen: > > if (there are vc:minV . . . Read full entry » Re: XML Schema language versionPosted 10/10/2013 7:49:09 AMI fully agree. Max means less than or equal, not less than. The example in http://www.w3.org/2007/XMLSchema-versioning/ matches the general understaning of max. The second value in the example should have been min and not max. Schema authors can use this to provide alternative formulations of s . . . Read full entry » Re: XML Schema language versionPosted 10/10/2013 7:35:40 AMThanks for this addition to oXygen. The maxVersion issue needs to be fixed in the specs. I think everyone agrees that the current definition is just non-sensical. On Thu, Oct 10, 2013 at 5:19 AM, George Cristian Bina <george@oxygenxml . . . Read full entry » Re: XML Schema language versionPosted 10/3/2013 10:40:37 AMThe document at http://www.w3.org/2007/XMLSchema-versioning/ needs to be updated. There are typos, "How it workds." The example in that section is wrong. The example in http://www.w3.org/TR/xmlschema11-1/#cip is much better. Sent from my iPad > On Oct 3, 2013, at 10:00 AM, " . . . Read full entry » Re: XML Schema language versionPosted 10/3/2013 9:34:49 AMHi, I just want to mention that vc:maxVersion="1.1" would lead to an empty schema document for a 1.1 processor (see http://www.w3.org/TR/xmlschema11-1/#cip) : "If V is less than the value of vc:minVersion, or if V is greater than or equal to the value of vc:maxVersion, then the ele . . . Read full entry » Re: XML Schema language versionPosted 10/3/2013 8:00:30 AMOn Oct 3, 2013, at 3:34 AM, XML Dev wrote: > Hi, > > I just want to mention that vc:maxVersion="1.1" would lead to an empty schema document for a 1.1 processor (see http://www.w3.org/TR/xmlschema11-1/#cip) : > > "If V is less than the value of vc:minVersion, or if . . . Read full entry » Re: XML Schema language versionPosted 10/3/2013 6:19:15 AMOn Wed, Oct 2, 2013 at 9:47 PM, C. M. Sperberg-McQueen < cmsmcq@blackmesatech.com> wrote: > > But since the 1.1 spec already defines both minVersion and > maxVersion, and since . . . Read full entry » Re: XML Schema language versionPosted 10/2/2013 9:12:17 PMI think it would be a creative but perfectly reasonable interpretation of the XSD 1.1 specification to advise users to set vc:minVersion="1.0" or vc:minVersion="1.1" or vc:maxVersion="1.0" on the xs:schema element to indicate whether they expect to use a 1.0 processor . . . Read full entry » Re: XML Schema language versionPosted 10/2/2013 8:22:09 PMvc:minVersion="1.1" is a great solution for marking them as 1.1 required. Is there a need for a vc:maxVersion? --Tim On Wed, Oct 2, 2013 at 5:12 PM, Michael Kay <mike@saxonica.com> wrote: > I think i . . . Read full entry » Re: XML Schema language versionPosted 10/2/2013 6:47:13 PMOn Oct 2, 2013, at 5:22 PM, Timothy W. Cook wrote: > vc:minVersion="1.1" is a great solution for marking them as 1.1 required. Is there a need for a vc:maxVersion? Probably less of a need, if (as I suggested in another mail) vc:minVersion="1.0" is taken by editing environ . . . Read full entry » Re: XML Schema language versionPosted 10/2/2013 2:38:09 PMOn Oct 2, 2013, at 2:12 PM, Michael Kay wrote: > I think it would be a creative but perfectly reasonable interpretation of the XSD 1.1 specification to advise users to set vc:minVersion="1.0" or vc:minVersion="1.1" or vc:maxVersion="1.0" on the xs:schema element t . . . Read full entry » Re: XML Schema language versionPosted 10/2/2013 1:55:34 PMOn Sep 26, 2013, at 2:58 AM, George Cristian Bina wrote: > Hi all, > > We introduced XML Schema 1.1 support in oXygen some time ago. As there is no way to specify the version of the XML Schema language we added an application option that controls what version is in use. By default XML S . . . Read full entry » XML Schema language versionPosted 9/26/2013 11:58:22 AMHi all, We introduced XML Schema 1.1 support in oXygen some time ago. As there is no way to specify the version of the XML Schema language we added an application option that controls what version is in use. By default XML Schema 1.1 is selected and we show a notification to the user informing . . . Read full entry » Re: Context Sensitive Element Definitions in W3C XSD Schema?Posted 8/26/2013 8:45:23 AMYes, very non-intuitive. XSD 1.1 allows a targetNamespace attribute on a local xs:element, but only under very restricted circumstances. I argued for removing all restrictions and allowing it anywhere, but others wanted to keep a stronger relationship between schema modules and namespaces, so I di . . . Read full entry » Re: XML Schema 1.1 TutorialPosted 4/3/2013 8:15:23 PMOn Wed, Apr 3, 2013 at 7:10 PM, Maik Stührenberg < maik.stuehrenberg@uni-bielefeld.de> wrote: > > As far as I understand in this point you tutorial is not correct, since > competing . . . Read full entry » Re: XML Schema 1.1 TutorialPosted 4/3/2013 3:40:56 PMHello Ramkumar and Mukul, thanks for the tutorial and thanks for bringing this up again. However, I'm a bit puzzled, in Section 2. Extensibility and Versioning you state that, "Also considered legal is a competition between two wildcards. However, competition between two elements is still c . . . Read full entry » Re: XML Schema 1.1 TutorialPosted 4/3/2013 2:04:49 PMresponding very late to this post. Nice writeup. Regards, Mukul Gandhi Written from an android mobile On Wednesday, February 20, 2013, Ramkumar Menon <ramkumar.menon@gmail.com> wrote: > I wanted to share with everyone interested . . . Read full entry » Re: Add an attributePosted 4/1/2013 9:12:56 AMOn Apr 1, 2013, at 1:40 AM, Dave Pawson wrote: > Thanks Michael, fairly comprehensive answer. > Some comments in line. > > > On 31 March 2013 22:26, C. M. Sperberg-McQueen <cmsmcq@blackmesatech& . . . Read full entry » Re: Restriction errorPosted 4/1/2013 8:52:15 AMThanks Michael. I am using a 1.0 schema, but if you see the later post, I think this is one that MK noted as a bug in his validator as used in oXygen. regards On 1 April 2013 00:25, C. M. Sperberg-McQueen <cmsmcq@blackmesate . . . Read full entry » Re: Add an attributePosted 4/1/2013 8:40:23 AMThanks Michael, fairly comprehensive answer. Some comments in line. On 31 March 2013 22:26, C. M. Sperberg-McQueen <cmsmcq@blackmesatech.com> wrote: > > > I guess you mean &qu . . . Read full entry » Re: Restriction errorPosted 3/31/2013 5:25:36 PMOn Mar 20, 2013, at 8:06 AM, Dave Pawson wrote: > Note I'm the real newbie here Mike. > > On 20 March 2013 13:53, Michael Kay <mike@saxonica.com> wrote: >> A complex-type-with-simple-content is gene . . . Read full entry » Re: Redefinition of group, who's correctPosted 3/31/2013 4:27:56 PMOn Mar 25, 2013, at 2:49 AM, Pierre Attar wrote: > > > When trying to write this schema, my assumption was a little bit DTD like interpretation : the first defininition is the right one. That's true for entity and attribute declarations in DTDs, but not for element declarations (whi . . . Read full entry » Re: Redefinition of group, who's correctPosted 3/31/2013 4:22:31 PMOn Mar 20, 2013, at 11:56 AM, Pierre Attar wrote: > Hi, > > I have a problem using group redefinitions and validating both with XMLSpy (who complains) and Oxygen (who validates). > My question : who is correct ? Where a I wrong ? > > Note: my schema are a lot more complex but . . . Read full entry » Re: Add an attributePosted 3/31/2013 3:26:34 PMOn Mar 22, 2013, at 4:52 AM, Dave Pawson wrote: > Fixed, but the solution looks 'orrible. > Is it possible to make it tidier than this? > > regards ... confused. DaveP > > instance > <uaffect xmlns="http://www.dpawson.co.uk/ns#" xmlns:e="http://example.com . . . Read full entry » Re: Redefinition of group, who's correctPosted 3/25/2013 9:49:29 AMSorry I did not saw answers to questions because I had a problem with my mailer. In Oxygen, I'm using Saxon-EE : No errors. In XMLSpy, the message is : The schema doesn't appear to be valid by itself (as a part of another schema, it might still be OK). 'essai' is already declared in schema . . . Read full entry » Re: Add an attributePosted 3/22/2013 10:52:59 AMFixed, but the solution looks 'orrible. Is it possible to make it tidier than this? regards ... confused. DaveP instance <uaffect xmlns="http://www.dpawson.co.uk/ns#" xmlns:e="http://example.com"> <effect Type="a" TypeNotes="sss" e:dc="xx . . . Read full entry » Add an attributePosted 3/22/2013 10:02:06 AMI'm extending a schema. vsn 1.0 using oXygen, xerces parser main schema is in namespace ns1 I want to add an attribute group, all attributes in ns2 to give <a:element att1='x' b:att2='y'/> To keep it clean, I would like the attribute group to be defined in a second file and imported into th . . . Read full entry » Re: Redefinition of group, who's correctPosted 3/20/2013 9:59:12 PMIt has to be said that xs:redefine is underspecified in some respects. However, for this case the rule is fairly clear: Attribute group definitions and model group definitions must be supersets or subsets of their original definitions, either by including exactly one reference to themselves or . . . Read full entry » Re: Redefinition of group, who's correctPosted 3/20/2013 9:34:36 PMXMLSpy has a totally different interpretation of the schema 1.0 spec concerning xs:redefine. See e.g<http://lists.w3.org/Archives/Public/xmlschema-dev/2004Dec/0048.html> I have a had contact with Altova (the developers of XMLSpy) several times and their answer is something like "we are . . . Read full entry » RE: Redefinition of group, who's correctPosted 3/20/2013 8:49:13 PMSurprised there are people who still use XMLSpy. Are they not a dying breed? From: info@xml4pharma.com [mailto:info@xml4pharma.c . . . Read full entry » Re: Redefinition of group, who's correctPosted 3/20/2013 7:50:43 PMI tried your example in XMLBlueprint using Xerces2 and MSXML6: both XML processors say the schema is valid. However, in XMLSpy is get this error: "'essai' is already declared in schema document 'redefine.xd'. I don't know why XMLSpy is complaining. - Gerben Abbink Received on Wednesday, 20 . . . Read full entry » Re: Redefinition of group, who's correctPosted 3/20/2013 7:05:31 PMSince oXygen allows a choice of schema processors, it would be useful to say which one you selected (or to try more than one). It would also be useful to tell us what XMLSpy says is wrong - what is the error message? Michael Kay Saxonica On 20/03/2013 17:56, Pierre Attar wrote: > Hi, > & . . . Read full entry » Redefinition of group, who's correctPosted 3/20/2013 6:56:06 PMHi, I have a problem using group redefinitions and validating both with XMLSpy (who complains) and Oxygen (who validates). My question : who is correct ? Where a I wrong ? Note: my schema are a lot more complex but I try to make a sample (non realistic) in order to isolate my question. Here is . . . Read full entry » Re: Restriction errorPosted 3/20/2013 2:40:57 PMHi Dave, I cannot reproduce your error message in oXygen 14.2 (build 2013030817) with this schema: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:dc="http:/ . . . Read full entry » Re: Restriction errorPosted 3/20/2013 2:06:33 PMNote I'm the real newbie here Mike. On 20 March 2013 13:53, Michael Kay <mike@saxonica.com> wrote: > A complex-type-with-simple-content is generally defined by extension: think > of it as first defining the si . . . Read full entry » Re: Restriction errorPosted 3/20/2013 1:58:03 PMIgnore my previous response. It's probably this bug: https://saxonica.plan.io/issues/1698 which has been fixed in Saxon 9.4.0.7. Michael Kay Saxonica On 20/03/2013 13:03, Dave Pawson wrote: > Very new to xsd > > Schema part > <xs:complexType name="DCMIType"> > . . . Read full entry » Re: Restriction errorPosted 3/20/2013 1:53:56 PMA complex-type-with-simple-content is generally defined by extension: think of it as first defining the simple content of the element, then extending it to allow attributes. You can define a c-t-with-s-c as a restriction of another c-t-with-s-c, but that doesn't seem to be what you are doing he . . . Read full entry » Restriction errorPosted 3/20/2013 1:03:38 PMVery new to xsd Schema part <xs:complexType name="DCMIType"> <xs:simpleContent> <xs:restriction base="dc:SimpleLiteral"> <xs:simpleType> <<<<<<<<<<<<<<<<<<<<<<<<<&l . . . Read full entry » Re: TR: COSOLUCE : Urgent --> Problème de validation de schémaPosted 3/4/2013 11:58:01 PMOn Mon, Mar 04, 2013 at 08:18:18AM -0700, C. M. Sperberg-McQueen wrote: [...] > There are several measures you, or any software developer or user affected by > these issues can undertake. > > - You can and should set up and use some mechanism to allow the schema documents > in quest . . . Read full entry » AImWD-2013: Deadline extension and final CFPPosted 3/4/2013 3:17:49 PM---------------------------------------------------------------------- DEADLINE EXTENSION ---------------------------------------------------------------------- The paper submission deadline for AImWD-2013 has been extended to March 18, 2013. ------------------------------------------------------ . . . Read full entry » Re: TR: COSOLUCE : Urgent --> Problème de validation de schémaPosted 3/4/2013 3:07:46 PMIf my French is good enough, this message means there was an HTTP timeout fetching a resource. It's likely that the resource in question is http://www.w3.org/2001/xml.xsd. W3C has for the last year or two imposed an artificial delay on requests for common resources such as this, because its we . . . Read full entry » Re: TR: COSOLUCE : Urgent --> Problème de validation de schémaPosted 3/4/2013 8:18:18 AMThank you for your mail. (I regret that I am unable to respond in French; my apologies.) I wonder if the problem may be related to the measures W3C has undertaken to deal with the problem of excessive DTD and schema traffic [1, 2]. DTD and XSD resources change very slowly and can therefore be . . . Read full entry » TR: COSOLUCE : Urgent --> Problème de validation de schémaPosted 3/1/2013 1:08:04 PMMerci pour votre retour Voici la réponse de notre équipe réseau à ce sujet. Par la même occasion, pouvez-vous de votre côté tester la validation du schéma de ce fichier exemple (en pj) ? Encore merci Cordialement, [Julien Durand] Julien DURAND I Service Développement Techno . . . Read full entry » Re: Included <schema>Posted 2/27/2013 8:43:47 PMThanks George I join late this interesting discussion you initiated after our discussion on the problem of the *big* model S1000D+DITA. The presentation of that problem may give new inputs/thoughts to the discussion. The case is a model (schema) defining 1850 elements and 650 attributes. Such a . . . Read full entry » Re: Included <schema>Posted 2/27/2013 8:26:16 PMtext/html attachment: stored Received on Wednesday, 27 February 2013 19:26:45 GMT . . . Read full entry » Re: [ann] oXygen 14.2 comes with complete support for XML Schema 1.1Posted 2/27/2013 9:15:26 AMThank you David, We look forward to your feedback and we will be happy to offer oXygen licenses to XML Schema WG members that need one. We setup a webinar to cover the new XML Schema 1.1 support: https://www1.gotomeeting.com/register/167340249 This will be in three weeks from now, Wednesday, Mar . . . Read full entry » Re: Included <schema>Posted 2/26/2013 6:20:19 AMtext/html attachment: stored application/pdf attachment: Meta-models_S1000Dita.pdf application/octet-stream attachment: demoSample_14_-_POC_13.zip Received on Wednesday, 27 February 2013 06:53:00 GMT . . . Read full entry » RE: [ann] oXygen 14.2 comes with complete support for XML Schema 1.1Posted 2/21/2013 12:34:26 PMDear George: On behalf of the WG, thank you very much for the support in your fine product. I'll look forward to checking it out personally! Best regards, David Ezell (chair, Schema WG) -----Original Message----- From: George Cristian Bina [mailto:george@oxyge . . . Read full entry » XML Schema 1.1 TutorialPosted 2/19/2013 2:30:12 PMI wanted to share with everyone interested this tutorial on XML Schema 1.1 a while back, describing various new XML Schema 1.1 features with examples. https://blogs.oracle.com/rammenon/entry/xml_schema_11_what_you_need_to regards, Ram Received on Tuesday, 19 February 2013 22:30:39 GMT . . . Read full entry » Re: Can root name in DOCTYPE be a XSD-validity thing?Posted 2/18/2013 4:59:47 AMC. M. Sperberg-McQueen, Fri, 15 Feb 2013 08:15:39 -0700: > Just one slightly pedantic footnote: Great! :-) > On Feb 15, 2013, at 4:00 AM, Leif Halvard Silli wrote: > >> A doctype such as >> <!DOCTYPE TheDocumentElement SYSTEM "ID" [<!--bla, bla--&g . . . Read full entry » Re: Can root name in DOCTYPE be a XSD-validity thing?Posted 2/17/2013 11:33:32 PMOn Mon, 2013-02-18 at 04:59 +0100, Leif Halvard Silli wrote: > [...] > > Right. And as such, it is a very flexible system since it allows any > element to serve as root. What about XSD in this regard? Perhaps XSD > âhard codesâ which elements can serve as root element? Some i . . . Read full entry » Re: Can root name in DOCTYPE be a XSD-validity thing?Posted 2/17/2013 11:13:24 PMOn 2/17/2013 10:59 PM, Leif Halvard Silli wrote: > Right. And as such, it is a very flexible system since it allows any > element to serve as root. What about XSD in this regard? Perhaps XSD > âhard codesâ which elements can serve as root element? Nope. Actually, XSD doesn't provide . . . Read full entry » Re: Can root name in DOCTYPE be a XSD-validity thing?Posted 2/15/2013 12:00:26 PMC. M. Sperberg-McQueen, Thu, 14 Feb 2013 12:12:14 -0700: > On Feb 13, 2013, at 11:13 PM, Leif Halvard Silli wrote: >> Can a XSD-based processor validate that a XHTML5 document contains the >> HTML5 DOCTYPE type declaration? ⦠>> Note: The HTML5 DOCTYPE *declarati . . . Read full entry » Re: Can root name in DOCTYPE be a XSD-validity thing?Posted 2/15/2013 8:15:39 AMJust one slightly pedantic footnote: On Feb 15, 2013, at 4:00 AM, Leif Halvard Silli wrote: > A doctype such as > <!DOCTYPE TheDocumentElement SYSTEM "ID" [<!--bla, bla-->] > > allows to verify > > a) that the DOCTYPE declaration is internally valid, > . . . Read full entry » [ann] oXygen 14.2 comes with complete support for XML Schema 1.1Posted 2/14/2013 4:58:05 PMHi all, I am happy to announce that oXygen XML Editor 14.2 and oXygen XML Developer 14.2 are available from our website http://www.oxygenxml.com One of the major additions in version 14.2 is that oXygen finalizes its support for XML Schema 1.1. We also created a short video demo to cover this . . . Read full entry » Re: Can root name in DOCTYPE be a XSD-validity thing?Posted 2/14/2013 12:12:14 PMOn Feb 13, 2013, at 11:13 PM, Leif Halvard Silli wrote: > Hello schema devs. > > Can a XSD-based processor validate that a XHTML5 document contains the > HTML5 DOCTYPE type declaration? And can it do so without resorting > hacks? Can it be expressed in the XSD-language itself, . . . Read full entry » Re: Included <schema>Posted 2/14/2013 11:41:23 AMOn Feb 13, 2013, at 6:09 AM, Michael Kay wrote: > > On 13/02/2013 08:10, George Cristian Bina wrote: >> Thanks Henry, >> >> Regarding the lazy component construction my understanding of that was that during the schema creation when a module is read it may contain referen . . . Read full entry » Can root name in DOCTYPE be a XSD-validity thing?Posted 2/14/2013 7:13:35 AMHello schema devs. Can a XSD-based processor validate that a XHTML5 document contains the HTML5 DOCTYPE type declaration? And can it do so without resorting hacks? Can it be expressed in the XSD-language itself, or must the processor performa an initial 'DTD-mode' check? Note: The HTML . . . Read full entry » Re: Included <schema>Posted 2/13/2013 1:09:49 PMOn 13/02/2013 08:10, George Cristian Bina wrote: > Thanks Henry, > > Regarding the lazy component construction my understanding of that was > that during the schema creation when a module is read it may contain > references that cannot be be resolved at that time but they should . . . Read full entry » Re: Included <schema>Posted 2/13/2013 11:52:58 AMGeorge Cristian Bina writes: > Regarding the lazy component construction my understanding of that was > that during the schema creation when a module is read it may contain > references that cannot be be resolved at that time but they should > still be resolved when all the modules are . . . Read full entry » Re: Included <schema>Posted 2/13/2013 10:28:47 AMThanks Mike, Sometimes I know that I know something but I do not know how I got that knowledge and trying to get the relevant part of the spec if usually difficult. Probably a FAQ for XML Schema will help a lot, similar to what Dave Pawson did for XSLT. Best Regards, George -- George Cristian . . . Read full entry » Re: Included <schema>Posted 2/13/2013 10:10:56 AMThanks Henry, Regarding the lazy component construction my understanding of that was that during the schema creation when a module is read it may contain references that cannot be be resolved at that time but they should still be resolved when all the modules are read. This seems to be also wha . . . Read full entry » Re: Included <schema>Posted 2/12/2013 8:36:54 PMOn 12/02/2013 09:48, George Cristian Bina wrote: > Hello, > > I always thought that an included schema document may refer to > components that are defined in the including <schema> even if they are > not directly reachable if we start from the included schema. Yes, this is t . . . Read full entry » Re: Included <schema>Posted 2/12/2013 7:21:38 PMOn Tue, Feb 12, 2013 at 4:37 PM, George Cristian Bina <george@oxygenxml.com>wrote: > Yes, it is clear that m.xsd is invalid if we validate it standalone. I would like it to be believed like this. Henry T . . . Read full entry » Re: Included <schema>Posted 2/12/2013 4:28:43 PMHi George, The XSD 1.1 spec at the same place mentions only this, <quote> 1.2 It resolves to a <schema> element information item in a well-formed information set. </quote> The 1.1 spec doesn't say "which in turn corresponds to a valid schema." I think, with an XS . . . Read full entry » Re: Included <schema>Posted 2/12/2013 1:56:09 PMMukul Gandhi writes: > Hi George, > The XSD 1.1 spec at the same place mentions only this, > > <quote> > 1.2 It resolves to a <schema> element information item in a well-formed > information set. > </quote> > > The 1.1 spec doesn't say "which . . . Read full entry » Re: Included <schema>Posted 2/12/2013 1:07:12 PMHi Mukul, Thanks Mukul for pointing out that this part is removed in XML Schema 1.1. Yes, it is clear that m.xsd is invalid if we validate it standalone. The problem I have is if m.xsd should be considered invalid according to XML Schema 1.0 also when we start from test.xsd. Best Regards, Geor . . . Read full entry » Included <schema>Posted 2/12/2013 11:48:00 AMHello, I always thought that an included schema document may refer to components that are defined in the including <schema> even if they are not directly reachable if we start from the included schema. More clearly the following sample should be valid: test.xsd <xs:schema xmlns:xs=&qu . . . Read full entry » Re: Included <schema>Posted 2/12/2013 11:04:23 AMGeorge Cristian Bina writes: > I always thought that an included schema document may refer to > components that are defined in the including <schema> even if they are > not directly reachable if we start from the included schema. True, IMO. > Now, the spec says in http://www.w3 . . . Read full entry » [xmlschema-dev] <none>Posted 2/12/2013 4:06:10 AMHello! http://www.assuremag.com/gzb/wo4uw8esuk4x7vxxg0ssdb7tdvuxbg0/53fimapfi67no8o2f7wnh9k8i2mzq?4151h2x6blzk4ziqbgbiey1gu Received on Tuesday, 12 February 2013 12:06:43 GMT . . . Read full entry » My Brutal Experience...............................!!! Help Needed!!!Posted 2/9/2013 12:50:46 AMI really hope you get this fast. I could not inform anyone about our trip, because it was impromptu. we had to be in Philippines for a program. The program was successful, but our journey has turned sour. we misplaced our wallet and cell phone on our way back to the hotel we lodge in after we w . . . Read full entry » Re: keyref to a key in a different scopePosted 1/14/2013 9:45:16 PMHi George, As a workaround, with XSD 1.1 we can write an assertion on the complexType of element "parent" as follows: <xs:assert test="every $tst in test satisfies $tst/@ref = child/element/@id"/> This kind of simulates the keyref you've written. On Mon, Jan 14, 201 . . . Read full entry » Re: keyref to a key in a different scopePosted 1/14/2013 5:47:07 PMThank you Michael and Henry! Can you think of a real usecase for this? I encountered this in a user schema but I think that they had a different expectation from those constraints. Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http . . . Read full entry » Re: keyref to a key in a different scopePosted 1/14/2013 3:57:09 PMOn 14/01/2013 15:47, George Cristian Bina wrote: > Thank you Michael and Henry! > Can you think of a real usecase for this? I don't think I've ever encountered a real use case for referential integrity that can't be satisfied by putting the key and the keyref declaration on the same elemen . . . Read full entry » keyref to a key in a different scopePosted 1/14/2013 3:16:20 PMHi all, I have problems identifying the relevant parts of the XML Schema spec that apply to the following example. There is a key defined on the "child" element selecting the "element/@id" attribute and a key reference defined on the "parent" element that specifies . . . Read full entry » Re: keyref to a key in a different scopePosted 1/14/2013 2:23:54 PMOn 14/01/2013 13:16, George Cristian Bina wrote: > Hi all, > > I have problems identifying the relevant parts of the XML Schema spec > that apply to the following example. You're not the only one. This bit of the spec is horrendous. I generally advise users against doing this. Fir . . . Read full entry » Re: keyref to a key in a different scopePosted 1/14/2013 1:59:00 PMGeorge Cristian Bina writes: > <xs:element name="child" maxOccurs="unbounded"> > <xs:complexType> > <xs:sequence maxOccurs="unbounded"> > <xs:element name="element"> > . . . Read full entry » Re: Simple node type with attributePosted 1/5/2013 5:49:54 PMOf course. This is known (clumsily) as a complex type with simple content, and a typical example is: <xs:element name="test"> <xs:annotation> <xs:documentation> ... </xs:documentation> </xs:annot . . . Read full entry » Simple node type with attributePosted 1/4/2013 4:40:36 PMHi, is possible to declare scheme for simple node type with attribute ? <ACTLOGLINE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <ACTLOGLINE> <DTTIMESTAMP xsi:type="x . . . Read full entry » CFP: 2nd International Workshop on Artificial Intelligence meets the Web of Data (AImWD-2013)Posted 12/24/2012 4:40:50 PM**** Apologies for cross-posting **** **** Please, acknowledge this message to your colleagues **** ---------------------------------------------------------------------- CALL FOR PAPERS 2nd International Workshop on Artificial Intelligence meets the Web of Data (AImWD-2013) co-located with the . . . Read full entry » The datatypes schema has the XML declaration positioned after the DOCTYPE, it should occur before the DOCTYPEPosted 12/22/2012 6:38:49 PMHi Folks, In the datatypes schema: http://www.w3.org/TR/xmlschema-2/#schema the XML declaration is positioned after the DOCTYPE declaration. I believe that is incorrect. I believe that it should be positioned before the DOCTYPE declaration. /Roger Received on Saturday, 22 December 2012 18:39 . . . Read full entry » A practical example of why mixed="true" would be positioned on a complexContent element and not its parent complexType element?Posted 12/22/2012 4:38:03 PMHi Folks, This is a complexType with mixed content: <xs:complexType name="C1" mixed="true"> <xs:complexContent> ... </xs:complexContent> </xs:complexType> This is also a complexType with mixed content: <xs:c . . . Read full entry » Re: Equivalent ways to declare an element with string content and an attributePosted 12/18/2012 3:16:00 PM>Those are two equivalent ways of declaring an element with string content and an attribute. Careful! You are using the word "equivalent" to mean that if an instance is valid under one schema then it is valid under the other, and vice versa. But schemas are not just about validati . . . Read full entry » Equivalent ways to declare an element with string content and an attributePosted 12/18/2012 12:41:58 PMHi Folks, Suppose that you want to create a <comment> element. Its content is string data and it has an attribute, xml:lang. Here is a sample instance: <comment xml:lang="en">This is a comment</comment> One way to declare the <comment> element is as a comp . . . Read full entry » ANN: Updated XML Schema 1.1 TutorialPosted 12/14/2012 9:16:25 PMHi Folks, In the last two weeks I have twice taught a 3-day class on XML Schema 1.1 In the process of teaching the classes I discovered a way to present the material in a way that makes it *much* easier to learn the material -- using lots of intuitive diagrams. I am excited about this approach. . . . Read full entry » Re: A practical use case for a fixed ID attribute?Posted 12/10/2012 2:52:39 PMOn Dec 8, 2012, at 5:56 AM, Costello, Roger L. wrote: > Hi Folks, > > In XML Schema 1.1 it is possible to declare an attribute of type ID and fix its value. For example: > > <attribute name="instructor" type="ID" fixed="Professor-Johnson" /> &g . . . Read full entry » Re: A practical use case for a fixed ID attribute?Posted 12/9/2012 12:56:20 PMOrthogonality is important in language design. You shouldn't impose restrictions just because you think something isn't useful. Is it useful to be able to write $x+0, or $x*1? Probably not, but it would be wrong to have a rule that prevents it. So preventing use of "fixed" for one par . . . Read full entry » Re: A practical use case for a fixed ID attribute?Posted 12/8/2012 2:23:26 PMOn Sat, 2012-12-08 at 12:56 +0000, Costello, Roger L. wrote: > Hi Folks, > > In XML Schema 1.1 it is possible to declare an attribute of type ID > and fix its value. It was/is possible to do this with a DTD, too. It's useful e.g. for a version attribute <!ATTLIST sock-weaving-pa . . . Read full entry » A practical use case for a fixed ID attribute?Posted 12/8/2012 12:56:09 PMHi Folks, In XML Schema 1.1 it is possible to declare an attribute of type ID and fix its value. For example: <attribute name="instructor" type="ID" fixed="Professor-Johnson" /> Yesterday I showed that example to my class and they challenged me on the usefulne . . . Read full entry » Re: A practical use case for a fixed ID attribute? (UNCLASSIFIED)Posted 12/8/2012 9:46:46 AMClassification: UNCLASSIFIED Roger, A schema can be written to specify a subset to an existing grammar specified by either an instance or separate schema. In this case a larger structure may already be defined. For the sake of argument lets say XHTML. You need to supply a model for a form that . . . Read full entry » Re: A practical use case for a fixed ID attribute?Posted 12/8/2012 8:24:39 AMAt 2012-12-08 12:56 +0000, Costello, Roger L. wrote: >In XML Schema 1.1 it is possible to declare an attribute of type ID >and fix its value. For example: > ><attribute name="instructor" type="ID" fixed="Professor-Johnson" /> > >Yesterday I sho . . . Read full entry » Re: The <xs:assert> element cannot use inheritable attributes?Posted 12/7/2012 10:16:30 AMInherited attributes are a very limited feature. They were introduced to meet a very specific use case related to xml:lang. xml:lang is related to internationalization, and anything related to internationalization in W3C is highly political, which means that you often end up with technical fea . . . Read full entry » The <xs:assert> element cannot use inheritable attributes?Posted 12/7/2012 9:45:16 AMHi Folks, It is my understanding that <xs:assert> elements cannot use inheritable attributes (that is, the xpath expression in the <xs:assert> element's @test attribute cannot reference attributes declared with inheritable="true"). Only <xs:alternative> elements ca . . . Read full entry » Re: Test suite?Posted 12/3/2012 6:05:13 PMI have sent a copy of Saxon's test driver off-list. Michael Kay Saxonica On 03/12/2012 16:56, Casey Jordan wrote: > Thanks Michael, > > Do you know if there is a Java test runner for this suite available > somewhere. I see the format is fairly easy to work with, but I don't > . . . Read full entry » Re: Determining what facets can operate on what datatype.Posted 12/3/2012 5:05:11 PMAwesome, exactly what I was looking for. Thanks! On Mon, Dec 3, 2012 at 5:00 PM, C. M. Sperberg-McQueen < cmsmcq@blackmesatech.com> wrote: > > On Dec 3, 2012, at 2:18 PM, Casey . . . Read full entry » Re: Test suite?Posted 12/3/2012 4:44:23 PMOn 03/12/2012 16:27, Casey Jordan wrote: > I should note that I did find the XML schema 1.0 tests here: > http://www.w3.org/XML/2004/xml-schema-test-suite/index.html#releases > > If there are the most up to date resources then I will use them. > That page needs updating (and we ne . . . Read full entry » Re: Determining what facets can operate on what datatype.Posted 12/3/2012 4:30:39 PMAnd in the same vein, the definition for enumeration, indicates to me that it accepts any type, even user defined ones: "*enumeration* does not impose an order relation on the value space<http://www.w3.org/TR/2001/PR-xmlschema-2-20010330/#dt-value-space> it creates; the value of the ord . . . Read full entry » Determining what facets can operate on what datatype.Posted 12/3/2012 4:18:20 PMAs I dig deeper into the spec I am finding it hard to easily determine what facets are compatible with what datatypes. For instance, the definition of length: "For string and datatypes derived from string, length is measured in units of characters as defined in [XML 1.0 (Second Edition)]. For . . . Read full entry » Re: Determining what facets can operate on what datatype.Posted 12/3/2012 3:00:26 PMOn Dec 3, 2012, at 2:18 PM, Casey Jordan wrote: > As I dig deeper into the spec I am finding it hard to easily determine what facets are compatible with what datatypes. For instance, the definition of length: > > "For string and datatypes derived from string, length is measured in . . . Read full entry » Re: Test suite?Posted 12/3/2012 11:56:42 AMThanks Michael, Do you know if there is a Java test runner for this suite available somewhere. I see the format is fairly easy to work with, but I don't want to re-invent the wheel if I don't have to. Thanks, Casey On Mon, Dec 3, 2012 at 11:44 AM, Michael Kay <mike@sax . . . Read full entry » Re: Test suite?Posted 12/3/2012 11:27:17 AMI should note that I did find the XML schema 1.0 tests here: http://www.w3.org/XML/2004/xml-schema-test-suite/index.html#releases If there are the most up to date resources then I will use them. Thanks, Casey On Mon, Dec 3, 2012 at 11:22 AM, Casey Jordan <casey.jordan@jo . . . Read full entry » Test suite?Posted 12/3/2012 11:22:26 AMIs there an available test suite for XML Schema 1.1? I am developing a java application and it would be great to be able to test my schema code against a standard resource. Thanks, Casey -- -- Casey Jordan easyDITA a product of Jorsek LLC "CaseyDJordan" on LinkedIn, Twitter & Fac . . . Read full entry » No declaration for "restriction" in the DTD for XML Schema 1.1Posted 12/2/2012 1:34:00 PMHi Folks, Appendix I in the Structures specification has the DTD for XML Schema [1]. I see the declaration for the "extension" element. I don't see the declaration for the "restriction" element. Is that a mistake or am I simply overlooking it? /Roger [1] http://www.w3.org/ . . . Read full entry » Re: No declaration for "restriction" in the DTD for XML Schema 1.1Posted 12/2/2012 12:42:56 PMOn Dec 2, 2012, at 6:34 AM, Costello, Roger L. wrote: > Hi Folks, > > Appendix I in the Structures specification has the DTD for XML Schema [1]. > > I see the declaration for the "extension" element. > > I don't see the declaration for the "restriction" . . . Read full entry » Re: xsd validation bug in scxml? cvc-complex-type.2.4.bPosted 11/24/2012 10:06:19 PMThis is what Saxon has to say about the schema at http://www.w3.org/2011/04/SCXML/scxml.xsd Error on line 281 of scxml-module-core.xsd: Error in complex type scxml.if.type: Ambiguous content model, element <Q{.../scxml}cancel> appears in its own right, and also matches an <xs:any& . . . Read full entry » Re: xsd validation bug in scxml? cvc-complex-type.2.4.bPosted 11/24/2012 9:42:58 PMThe xsd is the scxml official one. I have copied in local and fixed like I said because the error is with the Eclipse xsd validator. Thanks a lot. El 24/11/2012 20:35, "Henry S. Thompson" <ht@inf.ed.ac.uk> . . . Read full entry » Re: xsd validation bug in scxml? cvc-complex-type.2.4.bPosted 11/24/2012 8:44:42 PMht writes: > Fix your schema, and the problem will go away. I should have added, that the _comment_ against the definition of the group called scxml.extra.content, which says "group allowing elements from other namespaces" is at odds with the actual wildcard which appears in it, n . . . Read full entry » Re: xsd validation bug in scxml? cvc-complex-type.2.4.bPosted 11/24/2012 8:35:28 PMYour problem is probably that arising because your schema is invalid per XML Schema 1.0 (it's full of violations of the Unique Particle Attribution constraint, informally known as the "no non-determinism constraint"), http://www.w3.org/2011/04/SCXML/scxml-module-core.xsd:257:2: Invali . . . Read full entry » xsd validation bug in scxml? cvc-complex-type.2.4.bPosted 11/24/2012 1:45:12 PMHi, I'm validating a scxml and getting a validation error which I don't think it is. The xml extract is: <scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:a=" http://www.nosolojava.com/android.scxml" xmlns:xmpp="http://www.nosolojava.com/xmpp.scxml" ver . . . Read full entry » Re: Does anyone have a transform to change comments into annotations in an existing schema?Posted 11/21/2012 4:37:31 PMOn Wed, Nov 21, 2012 at 4:14 PM, Loren Cahlander <loren.cahlander@gmail.com> wrote: > Thanks! I will try that. > Just noted my stylesheet was too simplistic as the comments precede the element they relate to in the example u g . . . Read full entry » Re: Does anyone have a transform to change comments into annotations in an existing schema?Posted 11/21/2012 4:03:14 PMOn Wed, Nov 21, 2012 at 4:01 PM, Ihe Onwuka <ihe.onwuka@gmail.com> wrote: > On Wed, Nov 21, 2012 at 3:45 PM, Loren Cahlander > <loren.cahlander@gmail.com> wrote: & . . . Read full entry » Re: Does anyone have a transform to change comments into annotations in an existing schema?Posted 11/21/2012 4:01:50 PMOn Wed, Nov 21, 2012 at 3:45 PM, Loren Cahlander <loren.cahlander@gmail.com> wrote: > I am looking to transform comments that precede an element and make those > comments as an annotation for that element. > > for example: . . . Read full entry » Re: Does anyone have a transform to change comments into annotations in an existing schema?Posted 11/21/2012 3:00:30 PMAt 2012-11-21 13:10 -0600, Loren Cahlander wrote: >That fixed it. I have added some additional code including calling >normalize-space() to strip leading and trailing spaces from the comments. Because of the repetition you have, you may find the (not yet checked for typos) version of your . . . Read full entry » Re: Does anyone have a transform to change comments into annotations in an existing schema?Posted 11/21/2012 2:11:03 PMThanks! On Nov 21, 2012, at 2:00 PM, "G. Ken Holman" <gkholman@CraneSoftwrights.com> wrote: > At 2012-11-21 13:10 -0600, Loren Cahlander wrote: >> . . . Read full entry » Re: Does anyone have a transform to change comments into annotations in an existing schema?Posted 11/21/2012 1:10:36 PMThat fixed it. I have added some additional code including calling normalize-space() to strip leading and trailing spaces from the comments. <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs= . . . Read full entry » Re: Does anyone have a transform to change comments into annotations in an existing schema?Posted 11/21/2012 12:58:38 PMAt 2012-11-21 11:10 -0600, Loren Cahlander wrote: >The current contents of the xs:element were not copied when the >annotation was added. Yep! You're right! There is one line missing. I hope the stylesheet below helps. That's what I get for throwing something together without testing . . . Read full entry » Re: Does anyone have a transform to change comments into annotations in an existing schema?Posted 11/21/2012 11:10:19 AMThe current contents of the xs:element were not copied when the annotation was added. On Nov 21, 2012, at 10:09 AM, G. Ken Holman <gkholman@cranesoftwrights.com> wrot . . . Read full entry » Re: Does anyone have a transform to change comments into annotations in an existing schema?Posted 11/21/2012 11:09:52 AMSomething similar to the following should work for you: <?xml version="1.0" encoding="US-ASCII"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" version= . . . Read full entry » Re: Does anyone have a transform to change comments into annotations in an existing schema?Posted 11/21/2012 10:14:29 AMThanks! I will try that. On Nov 21, 2012, at 10:03 AM, Ihe Onwuka <ihe.onwuka@gmail.com> wrote: > On Wed, Nov 21, 2012 at 4:01 PM, Ihe Onwuka <ihe.onwuka@gmail.com& . . . Read full entry » Does anyone have a transform to change comments into annotations in an existing schema?Posted 11/21/2012 9:45:13 AMI am looking to transform comments that precede an element and make those comments as an annotation for that element. for example: <!-- Information about foo --> <xs:element name="foo-group"> . . . </xs:element> to <xs:element name="foo-group"> <x . . . Read full entry » Re: Restrict <CRLF> to the value \r\n ... the instance is <CRLF>\r\n</CRLF> ... error on validation -- why?Posted 10/24/2012 4:15:19 PMOn Oct 24, 2012, at 7:32 AM, Michael Kay wrote: > The Xerces parser is reporting the value of the "value" attribute to > Saxon as two spaces. (The debugger also shows a private field > indicating that the unnormalized value of the attribute is > "&CR;&LF;" . . . Read full entry » RE: Restrict <CRLF> to the value \r\n ... the instance is <CRLF>\r\n</CRLF> ... error on validation -- why?Posted 10/24/2012 3:03:35 PMWith this example you also have to consider the XML processor's handling of end-of-line characters in the instance document. http://www.w3.org/TR/REC-xml/#sec-line-ends Pete Geraghty From: Sandy Gao [mailto:sandygao@ca.ibm.co . . . Read full entry » Re: Restrict <CRLF> to the value \r\n ... the instance is <CRLF>\r\n</CRLF> ... error on validation -- why?Posted 10/24/2012 2:32:29 PMThe Xerces parser is reporting the value of the "value" attribute to Saxon as two spaces. (The debugger also shows a private field indicating that the unnormalized value of the attribute is "& CR;& LF;" without the spaces. So it's XML attribute value normalization th . . . Read full entry » Restrict <CRLF> to the value \r\n ... the instance is <CRLF>\r\n</CRLF> ... error on validation -- why?Posted 10/24/2012 12:55:10 PMHello Folks, The following schema declares two ENTITIES, one for carriage return and one for line feed. And then it restricts the value of the <CRLF> element by referencing those ENTITIES. ------------------------------------------------- CRLF.xsd --------------------------- . . . Read full entry » Re: Restrict <CRLF> to the value \r\n ... the instance is <CRLF>\r\n</CRLF> ... error on validation -- why?Posted 10/24/2012 9:53:27 AM> So it's XML attribute value normalization that's to blame. Yes. See section 3.3.3 in the XML spec, especially the example at the end of that section. http://www.w3.org/TR/REC-xml/#AVNormalize Thanks, Sandy Gao IBM Canada (1-905) 413-3255 T/L 313-3255 sandygao@ca. . . . Read full entry » Re: Three equivalent ways to specify an unconstrained data type ... are there others?Posted 10/21/2012 5:35:19 PMThe three types have the same value space, but they are not equivalent in other ways. For example, an element of type xs:NCName can appear in the substitution group of E1 but not of E2. Michael Kay Saxonica On 20/10/2012 13:04, Costello, Roger L. wrote: > Hi Folks, > > Below are declar . . . Read full entry » [Summary] Equivalent ways to specify an unconstrained data typePosted 10/21/2012 11:28:29 AMThanks Ken and Mukul. Great! Recap: Below are 5 equivalent ways to specify an unconstrained string. All of these forms, except the form using mixed content, can be used with the other data types as well. Thus there are 4 equivalent ways to create an unconstrained integer, 4 equivalent ways to cre . . . Read full entry » Re: Three equivalent ways to specify an unconstrained data type ... are there others?Posted 10/21/2012 9:48:35 AMThis is possibly one more way, <xs:simpleType name="t-unconstrained-string"> <xs:union memberTypes="xs:string"/> </xs:simpleType> On Sat, Oct 20, 2012 at 5:34 PM, Costello, Roger L. <costello@mitre.or . . . Read full entry » Re: Three equivalent ways to specify an unconstrained data type ... are there others?Posted 10/20/2012 4:19:58 PMG. Ken Holman wrote: > Just a simple 3-line batch file that invokes one batch file for > each of the three processors That's what I guessed, but just in case there was more... > XJParse for Xerces At least I learned something, I didn't know XJParse ;-) Thanks, -- Florent George . . . Read full entry » Re: Three equivalent ways to specify an unconstrained data type ... are there others?Posted 10/20/2012 4:03:08 PMG. Ken Holman wrote: Hi, > t:\ftemp>w3cschema roger.xsd roger.xml I find that part particularly interesting ;-) Is "w3cschema" a script of your own, or a kind of standard bundle that can be downloaded to validate a schema and an instance with different processors? Regards . . . Read full entry » Re: Three equivalent ways to specify an unconstrained data type ... are there others?Posted 10/20/2012 12:07:59 PMAt 2012-10-20 16:03 +0100, Florent Georges wrote: >G. Ken Holman wrote: > > > Hi, > > t:\ftemp>w3cschema roger.xsd roger.xml > > I find that part particularly interesting ;-) Is "w3cschema" a > script of your own, or a kind of standard bundle that can b . . . Read full entry » Three equivalent ways to specify an unconstrained data type ... are there others?Posted 10/20/2012 12:04:19 PMHi Folks, Below are declarations of three elements, E1, E2, and E3. All three elements have the same data type: an unconstrained string. All other data types (boolean, integer, etc.) can be similarly specified. Thus there are 3 ways to specify the same thing for every built-in data type. Can you . . . Read full entry » XML Schema ChecklistPosted 10/20/2012 11:19:37 AMHi Folks, Before publishing your XML Schemas, check that they contains these 4 things: 1. xml:lang 2. xml:id 3. pattern facets 4. user-defined entities More ... http://www.xfront.com/XML-Schema-Checklist.pdf Comments welcome. /Roger Received on Saturday, 20 October 2012 11:20:05 GMT . . . Read full entry » Re: Three equivalent ways to specify an unconstrained data type ... are there others?Posted 10/20/2012 10:16:16 AMAt 2012-10-20 12:04 +0000, Costello, Roger L. wrote: >Hi Folks, > >Below are declarations of three elements, E1, E2, and E3. All three >elements have the same data type: an unconstrained string. All other >data types (boolean, integer, etc.) can be similarly specified. Thus >th . . . Read full entry » Re: XML Schema ChecklistPosted 10/20/2012 7:55:45 AMAll XML Schemas should also be properly annotated: <xsd:annotation> <xsd:documentation>This version adds the ability to specify the URI to an XML Schema for parameters and return values</xsd:documentation> </xsd:annotation> It is very helpful to anyone looking at an XM . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/18/2012 8:27:18 PMOriginal Message From: "C. M. Sperberg-McQueen" > If you don't see that the counter implementation you propose can > be regarded as an implementation of the FSA I described, I don't > think I know how to help you. I think I can claim Godwin's on that!!! I think again we have a . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/18/2012 5:45:14 PMOriginal Message From: "C. M. Sperberg-McQueen" > On Oct 18, 2012, at 9:05 AM, Pete Cordell wrote: >> Original Message From: "C. M. Sperberg-McQueen" >> >>> - While enumerating 24! or 120! disjuncts in a large regular expression >>> or content mo . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/18/2012 4:15:05 PMMichael, I'm sure that you prove mathematically, if you put your mind to it, that a Turing machine (or even a Java compiler...) is a conformant XML Schema processor. But there are users out there who have practical problems to solve, and I'm trying to help them... Michael Kay On 18/10/2012 14 . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/18/2012 4:05:25 PMOriginal Message From: "C. M. Sperberg-McQueen" > - While enumerating 24! or 120! disjuncts in a large regular expression > or content model whose top-level operator is choice may > exceed current engineering capacity, it is not beyond the wit of > human beings or the memory . . . Read full entry » Re: union is not a union, it's a sequencePosted 10/18/2012 2:15:19 PMWell, you have defined two value spaces: strings consisting entirely of printable characters, and strings consisting entirely of whitespace characters. The union of those two value spaces is (strings that consist entirely of printable characters or entirely of whitespace characters). A string t . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/18/2012 1:03:42 PMOn Thu, 2012-10-18 at 09:48 +0100, Michael Kay wrote: > In practice, enumerating the different permutations to permit all > possible orderings of 24 elements, some of which can be repeated, is > impossible on the kind of computers that are available for purchase > today, whatever th . . . Read full entry » union is not a union, it's a sequencePosted 10/18/2012 12:44:42 PMHi Folks, Proposition: A union of member types does not produce a union, it produces a sequence of member types. Proof: <xs:simpleType name="white-space-characters"> <xs:annotation> <xs:documentation> The . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/18/2012 11:17:48 AMOn Oct 18, 2012, at 10:45 AM, Pete Cordell wrote: > Original Message From: "C. M. Sperberg-McQueen" >> On Oct 18, 2012, at 9:05 AM, Pete Cordell wrote: >>> Original Message From: "C. M. Sperberg-McQueen" >>> >>>> - While enumerating 24! . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/18/2012 10:50:21 AMOn Oct 18, 2012, at 9:15 AM, Michael Kay wrote: > Michael, I'm sure that you prove mathematically, if you put your mind to it, that a Turing machine (or even a Java compiler...) is a conformant XML Schema processor. But there are users out there who have practical problems to solve, and I'm tr . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/18/2012 10:03:03 AMOn Oct 18, 2012, at 9:05 AM, Pete Cordell wrote: > Original Message From: "C. M. Sperberg-McQueen" > >> - While enumerating 24! or 120! disjuncts in a large regular expression >> or content model whose top-level operator is choice may >> exceed current engineeri . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/18/2012 9:48:37 AM>I agree that it is often difficult, and the result is almost never easy to read and understand. But I do not believe it is ever impossible. Depends whether your definition of "impossible" is a mathematical definition or an engineering definition. In practice, enumerating the diff . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/18/2012 7:30:08 AMOn Oct 18, 2012, at 2:48 AM, Michael Kay wrote: > >I agree that it is often difficult, and the result is almost never easy to read and understand. But I do not believe it is ever impossible. > > Depends whether your definition of "impossible" is a mathematical definition or . . . Read full entry » Re: What is the namespace for XSD1.1?Posted 10/17/2012 10:12:46 PMFred, It's the same namespace as 1.0, so that (almost) all 1.0 schemas continue to be good 1.1 schemas. The "1.1 mode" is not turned on by using a different namespace. You'll likely need to configure the schema process (e.g. set a property) to achieve that. Thanks, Sandy Gao IBM Canad . . . Read full entry » Re: What is the namespace for XSD1.1?Posted 10/17/2012 10:12:43 PMThe namespace is unchanged. New processors will recognize the new features, and old ones won't. In general, XSD 1.0 schemas are also XSD 1.1 schemas. Noah On 10/17/2012 9:19 PM, Fred Li wrote: > Hi experts, > > I appreciate all the answers you provided to my question about the use > . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/17/2012 8:51:36 PMOn Oct 17, 2012, at 8:39 AM, George Cristian Bina wrote: > Expression every possible permutation does not generally work as you will get a lot of errors from the unique particle attribution rule that will not allow you to say for example > (a, b, x) | (a, b, y) > forcing you to write &g . . . Read full entry » Re: XSD 1.1: not okay to have an xs:assert at the attribute level?Posted 10/17/2012 6:39:49 PMSorry for the delay in responding to this. It's a Saxon bug which I have logged at https://saxonica.plan.io/issues/1637 and a patch will be in the next maintenance release. I am adding the test case to the W3C XSD 1.1 test suite. Michael Kay Saxonica On 23/09/2012 12:55, Costello, Roger L. w . . . Read full entry » What is the namespace for XSD1.1?Posted 10/17/2012 6:19:12 PMHi experts, I appreciate all the answers you provided to my question about the use of order indicators in the XSD file, and I am happy to know that there is no maxOccurs restrictions on "all" in XSD1.1, so the problem I mentioned is not a problem any more with XSD1.1. Now my question is . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/17/2012 5:39:44 PMExpression every possible permutation does not generally work as you will get a lot of errors from the unique particle attribution rule that will not allow you to say for example (a, b, x) | (a, b, y) forcing you to write (a, b, (x | y)) instead. However, for a complex model getting the right . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/17/2012 4:33:29 PMAh yes, I was looking at the restrictions on xs:all cardinality itself, not the elements within it. Panic over!!! Thanks. So in summary, for XSD 1.1 you can do: <xs:all> <xs:element ref="a" minOccurs="0" maxOccurs="unbounded"/> <xs:element r . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/17/2012 4:18:24 PMAt 2012-10-16 15:13 -0700, Fred Li wrote: >Hi XML experts, > >I have a problem about the use of order indicators in the creation of >XML schema (.xsd file). As I learned from W3School >(http://www.w3schools.com/schema/schema_complex_indicators.asp), we >have 3 order indicators in . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/17/2012 4:16:33 PMOK, some of the restrictions were lifted but not all. Essentially, you still can't mix all/sequence/choice in the same content model. So if you use xs:all, it has to be at the top level and can itself only occur once. But the element and wildcard particles within xs:all can now have arbitrary m . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/17/2012 4:04:17 PMOriginal Message From: "Michael Kay" > On 17/10/2012 15:35, Pete Cordell wrote: >> Can't believe they didn't fix the restrictions on xs:all in XSD >> 1.1!!!!!! :-( >> > They did. I'm looking at: http://www.w3.org/TR/xmlschema11-1/#declare-contentModel It says: . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/17/2012 3:46:41 PMOn 17/10/2012 15:35, Pete Cordell wrote: > Can't believe they didn't fix the restrictions on xs:all in XSD > 1.1!!!!!! :-( > They did. Michael Kay Saxonica Received on Wednesday, 17 October 2012 14:47:12 GMT . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/17/2012 3:45:49 PMOn 16/10/2012 23:13, Fred Li wrote: > Hi XML experts, > > I have a problem about the use of order indicators in the creation of > XML schema (.xsd file). As I learned from W3School > (http://www.w3schools.com/schema/schema_complex_indicators.asp), we > have 3 order indicators in . . . Read full entry » Re: Order indicators in the .xsd filePosted 10/17/2012 3:35:46 PMCan't believe they didn't fix the restrictions on xs:all in XSD 1.1!!!!!! :-( Pete Cordell Codalogic Ltd Twitter: http://twitter.com/petecordell Interface XML to C++ the easy way using C++ XML data binding to convert XSD schemas to C++ classes. Visit http://codalogic.com/lmx/ or http://www.xml2cp . . . Read full entry » Re: "Unsafe" union?Posted 10/16/2012 3:15:17 PMThe principle of type safety is the rule that if X is substitutable for Y (i.e. an instance of type X can be supplied where an instance of type Y is expected), then every valid instance of X must be a valid instance of Y. if you define a union type U as union of xs:date and xs:dateTime, then x . . . Read full entry » Order indicators in the .xsd filePosted 10/16/2012 3:13:51 PMHi XML experts, I have a problem about the use of order indicators in the creation of XML schema (.xsd file). As I learned from W3School (http://www.w3schools.com/schema/schema_complex_indicators.asp), we have 3 order indicators in the XML Schema language: All - the child elements can appear in . . . Read full entry » "Unsafe" union?Posted 10/16/2012 11:08:07 AMHi Folks, The XPath 3.0 specification has this statement: The current (second) edition of XML Schema 1.0 contains an error in respect of the substitutability of a union type by one of its members: it fails to recognize that this is unsafe if the union is derived by restric . . . Read full entry » Here's how to empower instance document authors to create their own root elementPosted 10/14/2012 12:59:49 PMHi Folks, It is not necessary to declare a root element in your XML Schema. You can empower instance document authors to create their own root element. Here's how: 1. In the XML Schema create a complexType for the root element, but don't declare a root element. 2. Instance document authors creat . . . Read full entry » Re: Here's how to empower instance document authors to create their own root elementPosted 10/14/2012 12:35:19 PMOn 10/14/2012 8:59 AM, Costello, Roger L. wrote: > It is not necessary to declare a root element in your XML Schema. You can empower instance document authors to create their own root element. Right, or you can explicitly declare several root elements, and let your users use any one as a root . . . Read full entry » Re: Element name replacementPosted 10/12/2012 3:09:17 PMAn XML Schema can tell you that your document is invalid, but there is nothing in XSD that helps you repair it when it isn't. For HTML there are tools such as HTMLTidy that attempt to do this: see http://tidy.sourceforge.net Michael Kay Saxonica On 12/10/2012 10:10, salma.siddiqa wrote: > H . . . Read full entry » Re: Request for schema namespace 1.1Posted 10/12/2012 3:07:08 PMPlease tell us exactly what you did and exactly what error you got, and then we can tell you exactly what you did wrong. Michael Kay Saxonica On 11/10/2012 23:17, Srividya Chilakamarri wrote: > Hi, > > I have a scenario as you guys answered > http://lists.w3.org/Archives/Public/xmlsc . . . Read full entry » Element name replacementPosted 10/12/2012 2:40:42 PMHi, I am new to XSD, I went through your blog would you kindly help me. I want to generate an xsd which will validate an xml. The xml file is the html converted file and hence has html tags I want to validate the tag Hierarchy Eg: if the <p> tag has <div> tags within it then replace the . . . Read full entry » Request for schema namespace 1.1Posted 10/11/2012 3:17:05 PMHi, I have a scenario as you guys answered http://lists.w3.org/Archives/Public/xmlschema-dev/2010Jan/0029.html I would like to validate my xml schema against my xml document. What are the namespaces that I need to use as it throws a message * http://www.w3.org/2001/XMLSchema">* to use o . . . Read full entry » Re: Treatement of whitespace in enumerationsPosted 10/8/2012 5:11:03 PMwrt this question, you recently wrote on xsl-list that you further had a schema declaration as follows: <xsd:element name="propertySubType" type="PropertySubTypeList"/> <xsd:simpleType name="PropertySubTypeList"> <xsd:list itemType="PropertySub . . . Read full entry » Re: Treatement of whitespace in enumerationsPosted 10/8/2012 10:45:01 AMThe error is probably in the part of the code that you haven't shown us. Can you reduce it to a complete but minimal working example? Michael Kay Saxonica On 06/10/2012 14:31, Ihe Onwuka wrote: > I have an restriction by enumeration as follows > > <xsd:simpleType name="PropertyS . . . Read full entry » Treatement of whitespace in enumerationsPosted 10/6/2012 2:31:16 PMI have an restriction by enumeration as follows <xsd:simpleType name="PropertySubType"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="Cold Store"/> <xsd:enumeration value="Data Centre"/> . . . Read full entry » [ANN] Definitive XML Schema, 2nd edition has been releasedPosted 9/26/2012 1:41:52 PMHello all, Just wanted to let you know that the second edition of my book Definitive XML Schema was released last week. It was updated to cover all XML Schema 1.1 features. Because I thought it might take some time for people to transition over to 1.1, and because some readers may just want to k . . . Read full entry » Re: XSD 1.1: not okay to have an xs:assert at the attribute level?Posted 9/24/2012 6:07:58 PM>I have never had to co-locate the namespace declaration like this. Should this be considered a bug in the XML Schema validator that I am using? Sorry for the delay in responding. Yes, I think it's a Saxon bug. The specs may not be 100% definitive on the point, but it's normal practice whe . . . Read full entry »
|
PURCHASE STYLUS STUDIO ONLINE TODAY!!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Attend a Live Webinar This Week!Learn about Stylus Studio's unique features and benefits in just under an hour. Register for the Stylus Studio QuickStart Training WebCast! Why Pay More for XML Tools?With Stylus Studio® X14 XML Enterprise Suite, you get the most comprehensive XML tool suite at one incredibly low price. Value: it's just one of many reasons why smart XML developers are choosing Stylus Studio! |