Subscribe to the XML Schema Development Blog in XML format
RSS 2.0
Atom 0.3

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.


Query reg Recursion

Posted 2/9/2012 6:17:44 PM

hi team, I was wondering if you could help me in understanding and designing the recursion in the XSD. My question is regarding defining the max depth of the recursion at the time of definition of the schema. For ex, if I refer to a recursive element, I want to define the number of times the eleme . . . Read full entry »


Re: Why can an element in an included no-namespace schema reference a type in the including schema when there is no default namespace declaration?

Posted 1/28/2012 11:22:35 PM

On 28/01/2012 23:00, Costello, Roger L. wrote: > > Why can element B2 reference type XYZ without a default namespace declaration but element A1 couldn't? > > /Roger > > Chameleon includes are described differently in XSD 1.1 from the way they are described in XSD 1.0, though the . . . Read full entry »


Why can an element in an included no-namespace schema reference a type in the including schema when there is no default namespace declaration?

Posted 1/28/2012 11:00:24 PM

Hi Folks, The following schema document is erroneous because the element A1 is trying to reference a type XYZ in no-namespace: A.xsd ---------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs=" . . . Read full entry »


CFP: RuleML-2012@ECAI (6th International Symposium on Rules)

Posted 1/25/2012 4:19:27 PM

=============== CALL FOR PAPERS =============== The 6th International Symposium on Rules: Research Based and Industry Focused, Montpellier, France, August 27-29, 2012. http://2012.ruleml.org The International Symposium on Rules, RuleML, has evolved from an annual series of international workshops . . . Read full entry »


RE: Invoking schema validation processors

Posted 1/11/2012 5:45:50 PM

Dear Ken, you could use the free XML ValidatorBuddy Command Line Tool (for Windows) which is available at: http://www.xml-tools.com/download.htm I was able to successfully validate your sample files. The tool also uses the Xerces 3.1 parser internally. If one of the XML documents is invalid an ex . . . Read full entry »


RE: Invoking schema validation processors

Posted 1/11/2012 12:04:40 PM

Thanks for the suggestion, Clemens, but I see that its use requires obtaining a free license key, plus it appears to be Windows only. Those aspects would prevent me from including it in the OASIS UBL distribution. That xjparse is a portable JAR file allows me to use that today in the distribu . . . Read full entry »


Re: Invoking schema validation processors

Posted 1/10/2012 4:01:46 PM

On 10/01/2012 15:14, G. Ken Holman wrote: > Hi, folks! And happy new year! And to you, Ken > > Can anyone help me with the invocations of Xerces and Altova W3C > Schema validation? These processors are reporting problems with valid > XML documents and I'm hoping that with the rig . . . Read full entry »


Re: Invoking schema validation processors

Posted 1/10/2012 1:11:28 PM

"G. Ken Holman" <gkholman@CraneSoftwrights.com> wrote on 01/10/2012 12:32:41 PM: > At 2012-01-10 11:54 -0500, Michael Glavassevich wrote: > >If Xerc . . . Read full entry »


Re: Invoking schema validation processors

Posted 1/10/2012 12:38:05 PM

At 2012-01-10 16:01 +0000, Michael Kay wrote: >I suspect that some parsers interpret the presence of a <DOCTYPE> >declaration as an instruction to perform DTD validation, Precisely. I could analyze that that is what was wrong, but I have no guidance from the documentation on how to . . . Read full entry »


Re: Invoking schema validation processors

Posted 1/10/2012 12:32:41 PM

At 2012-01-10 11:54 -0500, Michael Glavassevich wrote: >If Xerces is performing DTD and XSD validation at the same time it's >because the application (xjparse in this case) configured it [1] (by >accident?) to do so. There are multiple ways to get Xerces to do XSD >validation [2] onl . . . Read full entry »


Re: Invoking schema validation processors

Posted 1/10/2012 11:54:36 AM

Michael Kay <mike@saxonica.com> wrote on 01/10/2012 11:01:46 AM: > On 10/01/2012 15:14, G. Ken Holman wrote: > > Hi, folks! And happy new year! > And to you, Ken > > > > Can anyone help me w . . . Read full entry »


Invoking schema validation processors

Posted 1/10/2012 10:14:39 AM

Hi, folks! And happy new year! Can anyone help me with the invocations of Xerces and Altova W3C Schema validation? These processors are reporting problems with valid XML documents and I'm hoping that with the right incantations I'll get rid of the error messages. If I don't use external pars . . . Read full entry »


Re: SimpleType not enforced for extended element

Posted 1/6/2012 9:43:14 AM

On 06/01/2012 08:26, Karl Stubsjoen wrote: > > I am kicking myself! > > Now the real challenge and probably a lot off topic.. > I have a base schema class. > I have a working schema class. It includes base and certain elements > extend base types. > I compile the base class . . . Read full entry »


Re: SimpleType not enforced for extended element

Posted 1/6/2012 1:26:44 AM

I am kicking myself! Now the real challenge and probably a lot off topic.. I have a base schema class. I have a working schema class. It includes base and certain elements extend base types. I compile the base class with Xsd2Code. I compile the working schema with Xsd2Code with instructions to not . . . Read full entry »


Re: SimpleType not enforced for extended element

Posted 1/5/2012 9:55:30 PM

At 2012-01-05 17:48 -0700, Karl Stubsjoen wrote: >I have an element that extends a complex type but the additional >attribute with a simple type definition is not being enforced. The >attribute is enforced, just not it's simple type. Have I defined >something incorrectly? I think thi . . . Read full entry »


SimpleType not enforced for extended element

Posted 1/5/2012 5:48:02 PM

I have an element that extends a complex type but the additional attribute with a simple type definition is not being enforced.  The attribute is enforced, just not it's simple type.  Have I defined something incorrectly?  Here they are: <!-- to be used in extension below -->     <xs:comp . . . Read full entry »


Online validator and *.wikipedia.org

Posted 12/27/2011 12:12:36 AM

Hi, trying to use the online validator on Wikipedia XML docu- ments and schemas (cf. <URI:http://www.w3.org/2001/03/webdata/xsv?docAddrs=http://de.wikipedia.org/w/index.php?title=Vorlage:Infobox_Ort_in_Griechenland/XML%26action%3Draw+http://de.wikipedia.org/w/index.php?title=User:Revvar/VM/XML- . . . Read full entry »


Re: libxml2 does xmlSchemaValidateDoc() support xml schema extensions?

Posted 12/16/2011 6:20:21 PM

Many thanks Piotr Happy Holidays Andy On Dec 15, 2011, at 7:01 PM, Piotr Sipika wrote: > Hi Andy, > >> I am setting up the xml schema namespace the same way eclipse does when >> you create a new XSD or XML file. I entered >> *http://www.w3.org/2001/XMLSchema-instance*i . . . Read full entry »


Re: [xml] libxml2 does xmlSchemaValidateDoc() support xml schema extensions?

Posted 12/16/2011 10:02:02 AM

Piotr Sipika wrote: > > [] to compile: > $ gcc `xml2-config --cflags --libs` zoo.c -o zoo > No, this is wrong command line order. Specifying the libraries before the objects has always been wrong even though it has worked on Linux it will never work on Windows or other environments . . . Read full entry »


Re: libxml2 does xmlSchemaValidateDoc() support xml schema extensions?

Posted 12/15/2011 10:01:55 PM

Hi Andy, > I am setting up the xml schema namespace the same way eclipse does when > you create a new XSD or XML file. I entered > *http://www.w3.org/2001/XMLSchema-instance*in the address bar of my > browsers and got quite a surprise! > The XML Namespace spec(1) states that the na . . . Read full entry »


Re: libxml2 does xmlSchemaValidateDoc() support xml schema extensions?

Posted 12/15/2011 3:44:50 PM

Hi Piortr I still can not validate xml that uses xml schema extensions. I think I figured out what the problem might be, but do not know how to resolve i. I wonder if the problem is with the way I set up my xml namespace? <zoo:cageRequest xmlns:zoo="http://www.example.org/Zoo" xmlns . . . Read full entry »


Re: Add import elements to a schema with no change of functionality?

Posted 12/15/2011 11:32:35 AM

On 15/12/2011 10:40, Costello, Roger L. wrote: > Hi Folks, > > Consider a schema, S1, with targetNamespace, tns1. > > Schema S2 has targetNamespace tns2, where tns1 is not equal to tns2. Schemas do not have a target namespace. I think you are referring to schema documents. > > . . . Read full entry »


Add import elements to a schema with no change of functionality?

Posted 12/15/2011 10:40:29 AM

Hi Folks, Consider a schema, S1, with targetNamespace, tns1. Schema S2 has targetNamespace tns2, where tns1 is not equal to tns2. And so forth. S1 imports S2 which imports S3 which ... There are N schemas. S1 has only one import element -- it imports S2. Suppose I add to S1 import elements t . . . Read full entry »


Re: Fwd: libxml2 does xmlSchemaValidateDoc() support xml schema extensions?

Posted 12/13/2011 10:24:17 AM

On 12/12/2011 09:12 PM, Andy Davidson wrote: > Does anyone know if libxml2 > supports http://www.w3.org/TR/xmlschema-0/#DerivExt ? > Yes, it does. The rest of the message was libxml2-specific, so I took the liberty of replying to it and 'returning' it to the libxml2 mailing list. P . . . Read full entry »


Fwd: libxml2 does xmlSchemaValidateDoc() support xml schema extensions?

Posted 12/12/2011 6:12:48 PM

Does anyone know if libxml2 supports http://www.w3.org/TR/xmlschema-0/#DerivExt ? thanks in advance Andy Begin forwarded message: > From: Andy Davidson <andy_davidson@apple.com> > Date: December 12, 2011 6:10:14 PM PST &g . . . Read full entry »


Re: what is the correct for xpath selector for xsi:type

Posted 12/9/2011 9:43:33 AM

On 12/08/2011 09:58 PM, Liam R E Quin wrote: > Since libxml is stuck on XPath 1, you can use explicit xsi:type > attributes but not type annotations that result from schema validation > episodes - you'd need an XPath 2 engine for that, such as Saxon. > >> I eventual get a a xml . . . Read full entry »


Re: what is the correct for xpath selector for xsi:type

Posted 12/9/2011 8:55:58 AM

I think that this is a namespace issue. You will need to register the "xsi" namespace to the libXML2 engine and then use its prefix in your XPath expressions. The way to do that varies by language. On 12/08/2011 06:08 PM, Andy Davidson wrote: > Hi > > I am trying use libxm . . . Read full entry »


Re: what is the correct for xpath selector for xsi:type

Posted 12/8/2011 9:58:46 PM

On Thu, 2011-12-08 at 17:08 -0800, Andy Davidson wrote: > Hi > > I am trying use libxml2 to parse the following xml. > > <?xml version="1.0" encoding="UTF-8"?> > <zoo:cageRequest > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quo . . . Read full entry »


what is the correct for xpath selector for xsi:type

Posted 12/8/2011 5:08:09 PM

Hi I am trying use libxml2 to parse the following xml. <?xml version="1.0" encoding="UTF-8"?> <zoo:cageRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:zoo="http://www.example.org/Zoo" xsi:schemaLocation="http:/ . . . Read full entry »


Re: Study of XML quality on the Web

Posted 11/19/2011 10:31:08 PM

On 19/11/2011 17:27, Noah Mendelsohn wrote: > I'd think readers of this list would be interested in a very nice > study of the quality of XML documents on the Web. [1] The study was > done by Steven Grijzenhout and Maarten Marx. > > Noah > > [1] > http://ilps.science.uva. . . . Read full entry »


Re: Study of XML quality on the Web

Posted 11/19/2011 10:26:28 PM

I don't know the authors, but their emails are in the paper. Perhaps they could be convinced to participate here? Noah On 11/19/2011 8:30 PM, Liam R E Quin wrote: > On Sat, 2011-11-19 at 22:31 +0000, Michael Kay wrote: >> On 19/11/2011 17:27, Noah Mendelsohn wrote: >>> I'd thin . . . Read full entry »


Re: Study of XML quality on the Web

Posted 11/19/2011 8:30:26 PM

On Sat, 2011-11-19 at 22:31 +0000, Michael Kay wrote: > On 19/11/2011 17:27, Noah Mendelsohn wrote: > > I'd think readers of this list would be interested in a very nice > > study of the quality of XML documents on the Web. [1] The study was > > done by Steven Grijzenhout and . . . Read full entry »


Study of XML quality on the Web

Posted 11/19/2011 12:27:48 PM

I'd think readers of this list would be interested in a very nice study of the quality of XML documents on the Web. [1] The study was done by Steven Grijzenhout and Maarten Marx. Noah [1] http://ilps.science.uva.nl/PoliticalMashup/uploads/2011/08/cikm2011-6pages.pdf Received on Saturday, 19 N . . . Read full entry »


Re: "XML Schema specifies just syntax" versus "XML Schema specifies semantics"

Posted 11/16/2011 11:46:30 PM

On Wed, 2011-11-09 at 11:21 -0800, Steven Ericsson-Zenith wrote: > In Logic "semantics" refers to the rules of valid syntax and its > transformation. I can't make any sense of the definition given here. I think Roger is using a mixture of the Semantic Web and linguistic and common- . . . Read full entry »


Re: "XML Schema specifies just syntax" versus "XML Schema specifies semantics"

Posted 11/16/2011 10:27:01 PM

It seems to me that the "Semantic Web" and much of the associated effort fails because of this lack of formal rigor. Appealing to "common use" will only lead to heartache - application programs that either do not work or whose behavior surprises us. On the other hand, xml-sch . . . Read full entry »


"XML Schema specifies just syntax" versus "XML Schema specifies semantics"

Posted 11/9/2011 7:10:17 PM

Hi Folks, Sally says, "XML Schema specifies just syntax." John says, "XML Schema specifies semantics." Who is correct? First, we need to be clear on what is meant by "semantics." I will define it as such: The semantics of a thing is its relationships to othe . . . Read full entry »


Re: "XML Schema specifies just syntax" versus "XML Schema specifies semantics"

Posted 11/9/2011 5:47:11 PM

I mostly agree with the conclusion, though with a caveat. I think that in general it is correct to assume that XML Schema deals with syntax; certainly that is what it is specified to constrain. I do think that within particular communities and for particular XML languages it is sometimes useful . . . Read full entry »


Re: "XML Schema specifies just syntax" versus "XML Schema specifies semantics"

Posted 11/9/2011 12:11:45 PM

In Logic "semantics" refers to the rules of valid syntax and its transformation. I can't make any sense of the definition given here. Further, "X is a Y" is a "proposition." Semantics refers to the validity of this proposition. "Relationships" specify the o . . . Read full entry »


Re: "XML Schema specifies just syntax" versus "XML Schema specifies semantics"

Posted 11/9/2011 11:32:01 AM

Further, "X is a Y" is a "proposition." Semantics refers to the validity of this proposition. "Relationships" specify the order or association (map) of one term with respect to another and are usually captured in the well-known operators, such as "less-than" . . . Read full entry »


Re: "XML Schema specifies just syntax" versus "XML Schema specifies semantics"

Posted 11/9/2011 11:21:29 AM

In Logic "semantics" refers to the rules of valid syntax and its transformation. I can't make any sense of the definition given here. With respect, Steven On Nov 9, 2011, at 11:10 AM, Costello, Roger L. wrote: > Hi Folks, > > Sally says, "XML Schema specifies just synta . . . Read full entry »


RE: A valuable lesson on the difference between XML Schemas and ontologies

Posted 11/6/2011 1:49:28 PM

Hi Folks, Thanks for the excellent feedback! I added the following section to the paper: ------------------------------ What Kind Of Thing Is It? ------------------------------ Suppose processing of XML instance documents requires answers to these questions: - What kind of thing is Book? . . . Read full entry »


Re: A valuable lesson on the difference between XML Schemas and ontologies

Posted 11/4/2011 7:55:19 PM

Eliot Kimber writes: > XML schemas are nothing more than document syntax constraint specifications. > There is no sense in which then can be anything more than a very weak > reflection of some deeper ontology that governs the semantic objects for > which the XML governed by the XSD sch . . . Read full entry »


RE: Is this reasonable: classify each element as either an Object or property

Posted 11/4/2011 5:03:21 PM

This is RDF/XML. -----Original Message----- From: Michael Kay [mailto:mike@saxonica.com] Sent: Friday, 4 November 2011 8:15 AM To: xmlschema-dev@w3.org Subject: Re: Is this reas . . . Read full entry »


Re: Using assert in a complexType with complexContent

Posted 11/4/2011 3:14:50 PM

I could imagine that constraints of "assert" are orthogonal to the effects of XSD complex type extension. I think, XSD extension means that we *add* some content model features to the derived types (for e.g more particles or more features to non particle XSD components) in addition to the . . . Read full entry »


A valuable lesson on the difference between XML Schemas and ontologies

Posted 11/4/2011 2:19:15 PM

Hi Folks, This week I learned a valuable lesson on the difference between XML Schemas and ontologies. I think you will find it of interest. Warning: in the following two sections I will lead you down a path and attempt to persuade you that everything is reasonable and logical. Then, in the two se . . . Read full entry »


Re: A valuable lesson on the difference between XML Schemas and ontologies (UNCLASSIFIED)

Posted 11/4/2011 12:11:02 PM

Classification: UNCLASSIFIED Roger, I do not agree, although I certainly agree from the perspective of an English language user. The reason I disagree is due to complexities of linguistic use and linguistic determinism. There are two considerations to be aware of if your native language is an In . . . Read full entry »


Re: A valuable lesson on the difference between XML Schemas and ontologies

Posted 11/4/2011 9:29:49 AM

XML schemas are nothing more than document syntax constraint specifications. There is no sense in which then can be anything more than a very weak reflection of some deeper ontology that governs the semantic objects for which the XML governed by the XSD schema is one possible serialization. That i . . . Read full entry »


Re: How to define a complexType so that derived types can have simple content or complex content?

Posted 11/4/2011 9:28:10 AM

Hi Roger, I gave this problem some more thought, and here's something we could possibly do better with XSD 1.1 assertions. XML instance: <book> <title>The Implementation of Functional Programming Languages</title> <author> <Person> <n . . . Read full entry »


Re: Is this reasonable: classify each element as either an Object or property

Posted 11/4/2011 12:14:40 AM

On 03/11/2011 20:29, Costello, Roger L. wrote: > Hi Folks, > > I am thinking that it is useful to identify each element in a schema as either an Object or a property. > > Objects are described by one or more properties. > > The value of a property may be either simple or an Obj . . . Read full entry »


Re: Using assert in a complexType with complexContent

Posted 11/4/2011 12:03:34 AM

On 03/11/2011 20:13, Costello, Roger L. wrote: > Hi Folks, > > I got an error with the assert element in this complexType: > > <xs:complexType name="authorType" mixed="true"> > <xs:complexContent> > <xs:extension bas . . . Read full entry »


Re: How to define a complexType so that derived types can have simple content or complex content?

Posted 11/3/2011 11:52:38 PM

On 03/11/2011 17:15, Costello, Roger L. wrote: > Michael Kay wrote: > >> Why do you want to use the same type to describe two things that appear >> on the surface to have quite unrelated structure? What are you hoping to >> achieve, that you could not achieve by using two co . . . Read full entry »


Is this reasonable: classify each element as either an Object or property

Posted 11/3/2011 8:29:08 PM

Hi Folks, I am thinking that it is useful to identify each element in a schema as either an Object or a property. Objects are described by one or more properties. The value of a property may be either simple or an Object. Here is an example of an XML document containing two Objects (Book and Pe . . . Read full entry »


Using assert in a complexType with complexContent

Posted 11/3/2011 8:13:00 PM

Hi Folks, I got an error with the assert element in this complexType: <xs:complexType name="authorType" mixed="true"> <xs:complexContent> <xs:extension base="property"> <xs:sequence> . . . Read full entry »


Re: How to define a complexType so that derived types can have simple content or complex content?

Posted 11/3/2011 5:15:17 PM

Michael Kay wrote: > Why do you want to use the same type to describe two things that appear > on the surface to have quite unrelated structure? What are you hoping to > achieve, that you could not achieve by using two completely different > and unrelated types? I want to categoriz . . . Read full entry »


Re: How to define a complexType so that derived types can have simple content or complex content?

Posted 11/3/2011 8:42:24 AM

It seems I got this XSD fragment wrong ("alternative" is child of "element" and not "complexType"). Wrote this quickly without testing and apologies for confusion. The solution you proposed may be the way forward, or we should continue discussion along lines what Mike . . . Read full entry »


Re: How to define a complexType so that derived types can have simple content or complex content?

Posted 11/3/2011 7:28:27 AM

Hi Roger, It seems use cases like this become little more natural to be solved (i.e better semantic modeling of the problem domain XSD type system) with XSD 1.1. Here's a proposed XSD 1.1 answer for this use case using the CTA construct, <xs:element name="title" type="propert . . . Read full entry »


Re: How to define a complexType so that derived types can have simple content or complex content?

Posted 11/2/2011 9:02:10 PM

Why do you want to use the same type to describe two things that appear on the surface to have quite unrelated structure? What are you hoping to achieve, that you could not achieve by using two completely different and unrelated types? Or to put it another way, why can't you use xs:anyType as t . . . Read full entry »


How to define a complexType so that derived types can have simple content or complex content?

Posted 11/2/2011 8:05:51 PM

Hi Folks, I would like to associate this title element with a complexType named property: <title>The Implementation of Functional Programming Languages</title> Notice that this "property element" has simple content. I would like to associate this author element with the sa . . . Read full entry »


Associating XForms specific restrictions for RTE use

Posted 10/27/2011 9:37:45 AM

Hello, I'm implementing an extension in my XForms implementation for allowing a rich text editor to be used for editing a text content. On a first approach, it can be considered that a mime-type value could be used just to say that it's HTML content, for example. But there might be restriction . . . Read full entry »


Re: Associating XForms specific restrictions for RTE use

Posted 10/27/2011 8:59:44 AM

As far as I can see, both seem perfectly reasonable uses of the extensibility points provided in XSD. Michael Kay Saxonica On 27/10/2011 08:37, Alain Couthures wrote: > Hello, > > I'm implementing an extension in my XForms implementation for allowing > a rich text editor to be used . . . Read full entry »


Extended XHTML schema

Posted 10/17/2011 7:24:12 AM

Hi, I'm trying to extend XHTML schema by redefining it's base XSD file in a new XSD declaring extra elements to extend XHTML. I'm currently stuck with declaring a single element (called "extradata" here) to mandatorily appear as last child node of xhtml:body. Here is (a reduced copy of) . . . Read full entry »


Re: Problems with XSV

Posted 10/11/2011 8:21:15 PM

Dieter Guthmann writes: > I've used XSV in the past as a command-line-Validation-Tool. > Now I've downloaded it again on Ubuntu 10.04 (and openSUSE 11.4), ran "python setup.py install" but no executeable was generated...? > Wouln't run xsv on modern operating-systems? Thanks fo . . . Read full entry »


Problems with XSV

Posted 10/11/2011 8:43:22 AM

Hello, I've used XSV in the past as a command-line-Validation-Tool. Now I've downloaded it again on Ubuntu 10.04 (and openSUSE 11.4), ran "python setup.py install" but no executeable was generated...? Wouln't run xsv on modern operating-systems? Thanks in advance. Rgds Dieter Guthmann - . . . Read full entry »


Re: Progress towards XSD 1.1

Posted 9/29/2011 8:02:40 PM

Original Message From: "Liam R E Quin" > On Thu, 2011-09-29 at 16:07 +0100, Pete Cordell wrote: > >> Perhaps I could gently suggest that IMO the XSD working group could do a >> better job of engaging the hearts and minds of people outside the working >> group. > . . . Read full entry »


Re: Progress towards XSD 1.1

Posted 9/29/2011 4:41:33 PM

On Thu, 2011-09-29 at 20:02 +0100, Pete Cordell wrote: [...] > What I miss is notice of new public drafts etc. I think that a simple > e-mail to xmlschema-dev when a new public draft is issued would be > sufficient. I'll add it to my todo list for when the next draft is published. Tha . . . Read full entry »


Re: Progress towards XSD 1.1

Posted 9/29/2011 4:07:16 PM

Original Message From: "Michael Kay" > On 29/09/2011 15:07, Ramirez, Paul M (388J) wrote: >> Hey Michael, >> >> Thanks for your feedback. What would be the best way for an observer to >> monitor the status of the process? > > Sorry, I can't offer any use . . . Read full entry »


Re: Progress towards XSD 1.1

Posted 9/29/2011 3:28:11 PM

On 29/09/2011 15:07, Ramirez, Paul M (388J) wrote: > Hey Michael, > > Thanks for your feedback. What would be the best way for an observer to monitor the status of the process? Sorry, I can't offer any useful suggestions. When the status changes, the WG publishes new external documents. . . . Read full entry »


Re: Progress towards XSD 1.1

Posted 9/29/2011 2:27:41 PM

On Thu, 2011-09-29 at 16:07 +0100, Pete Cordell wrote: > Perhaps I could gently suggest that IMO the XSD working group could do a > better job of engaging the hearts and minds of people outside the working > group. That's probably true. As staff contact now, I'd really like to be doing . . . Read full entry »


Re: Progress towards XSD 1.1

Posted 9/29/2011 11:14:37 AM

Michael Kay wrote: >(Actually, if you are really determined, you can keep an eye on the Bugzilla >database, which is publically accessible. This holds open issues on the spec, and >open issues on tests. At this stage of the game, progress is measured by the rate >at which these issu . . . Read full entry »


Re: Progress towards XSD 1.1

Posted 9/29/2011 9:08:20 AM

On 28/09/2011 19:33, Ramirez, Paul M (388J) wrote: > Hi All, > > I've been looking around online and trying to figure out the progress that has been made towards making XSD 1.1 a W3C Recommendation. The latest schedule I could find was on the working group site here http://www.w3.org/XML/2 . . . Read full entry »


Re: Progress towards XSD 1.1

Posted 9/29/2011 7:07:53 AM

Hey Michael, Thanks for your feedback. What would be the best way for an observer to monitor the status of the process? I noticed the proceedings of the Schema Working Group meetings were for members only is there a way for the public to review a summary? From what I can gather the best way might . . . Read full entry »


Progress towards XSD 1.1

Posted 9/28/2011 11:33:16 AM

Hi All, I've been looking around online and trying to figure out the progress that has been made towards making XSD 1.1 a W3C Recommendation. The latest schedule I could find was on the working group site here http://www.w3.org/XML/2010/10/schema-charter.html . I noted that the review period for . . . Read full entry »


Re: What is the set of "in-scope schemas" for a reference (such as a reference to a substitution element)?

Posted 9/25/2011 8:32:22 PM

First, if you're concerned about terminology, then you need to distinguish between a schema and a schema document. A schema is a set of schema components, which are usually constructed by compiling a set of schema documents. I think that all your uses of "schema" and "schema file . . . Read full entry »


What is the set of "in-scope schemas" for a reference (such as a reference to a substitution element)?

Posted 9/25/2011 9:31:10 AM

Hi Folks, The following no-namespace schema includes three schemas and it declares a metro element that is substitutable for a subway element: metro.xsd ----------------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> & . . . Read full entry »


Re: True or False: A schema with no targetNamespace can never be imported

Posted 9/24/2011 6:57:38 PM

seems to be "false". The following pair of schema documents are valid. b.xsd <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://try#1"> <xs:import schemaLocation="a.xsd"/> <xs:element name="Z&q . . . Read full entry »


True or False: A schema with no targetNamespace can never be imported

Posted 9/24/2011 8:09:28 AM

Hi Folks, An XML Schema file that has no targetNamespace can never be imported by an XML Schema file. (1) True (2) False /Roger Received on Saturday, 24 September 2011 12:10:32 GMT . . . Read full entry »


Re: What aspects of a schema depend on the schema that included, imported, or redefined it?

Posted 9/19/2011 9:37:24 AM

On 18/09/2011 17:56, Costello, Roger L. wrote: > Hi Folks, > > Suppose a schema has no targetNamespace. What is the namespace of elements or attributes that are declared in that schema? > > As you know, it depends. Due to the Chameleon effect, if a no-targetNamespace schema A is incl . . . Read full entry »


What aspects of a schema depend on the schema that included, imported, or redefined it?

Posted 9/18/2011 12:56:14 PM

Hi Folks, Suppose a schema has no targetNamespace. What is the namespace of elements or attributes that are declared in that schema? As you know, it depends. Due to the Chameleon effect, if a no-targetNamespace schema A is included or redefined by schema B then the namespace depends on B's names . . . Read full entry »


[Ann] XSD templates in Code Scrapbook

Posted 9/12/2011 2:26:18 PM

Dear All, I've been experimenting lately with the idea of user customizable code fragments that can be copy and pasted into code in order to speed up programming. You can define a template that specifies a set of information to be captured from a user (such as text boxes for names, and checkboxes . . . Read full entry »


Re: Question about validation xml with xsd

Posted 9/5/2011 2:58:41 PM

I wonder why you would want to do this? I would expect to see the data being interchanged in XML form something like <letter type="unpaid-bills"> <name>Milena</name> <count>1</count> </letter> with the fixed boilerplate text being added by an XSLT s . . . Read full entry »


Re: Question about validation xml with xsd

Posted 9/5/2011 2:54:21 PM

This can't be done in XSD 1.0. In XSD 1.1 you can do it with assertions, for example you could write <xs:element name="letter"> <xs:complexType>...</xs:complexType> <xs:assert test="matches(string(.), 'Hi .*,\nYou have \d+ unpaid bill\.\n"/> </xs:ele . . . Read full entry »


Question about validation xml with xsd

Posted 8/31/2011 7:50:58 PM

Hi, I want to apologize in advance for my bad english. I want to validate xml(1), which is as follows: *<letter> Hi <name>Milena</name>, You have <count>1</count> unpaid bill. </letter>* The xsd must be: *<xsd:element name="letter"> <xsd: . . . Read full entry »


Re: Self reference in an element

Posted 7/13/2011 11:40:01 AM

Thanks a lot for the responses, These comments helped me a lot. Thanks, Avinash K N On Tue, Jul 12, 2011 at 10:19 PM, Mukul Gandhi <gandhi.mukul@gmail.com> wrote: > Hi Noah, > > On Tue, Jul 12, 2011 at 9:42 PM, Noah Mende . . . Read full entry »


Re: Self reference in an element

Posted 7/12/2011 10:19:39 PM

Hi Noah, On Tue, Jul 12, 2011 at 9:42 PM, Noah Mendelsohn <nrm@arcanedomain.com> wrote: > I'm not sure I agree with that. It depends on what you're optimizing for, > what tools you're u . . . Read full entry »


Re: Self reference in an element

Posted 7/12/2011 7:07:46 PM

Including the "dept" structure recursively within itself, looks a bit inefficient to me. I think you want your schema to say that, a "dept" can include other departments. Since you already have the attribute "num" on "dept", you can used XSD identity-constra . . . Read full entry »


Re: Self reference in an element

Posted 7/12/2011 4:28:57 PM

Hi Avinash, I afraid there is no way to refer to an Local element. HTH, Pete Cordell Codalogic Ltd 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.xml2cpp.com for more info ----- Original Message -- . . . Read full entry »


Re: Self reference in an element

Posted 7/12/2011 4:27:29 PM

Hi Pete, Thanks a lot for the clarification :) I was wordering if there was a way to refer to an Local element or an "Anonymous Type Definitions". Thanks a lot for the clarification :) Thanks and Regards, Avinash K N On Tue, Jul 12, 2011 at 4:20 PM, Pete Cordell <pete . . . Read full entry »


Re: Self reference in an element

Posted 7/12/2011 12:12:25 PM

On 7/12/2011 9:37 AM, Mukul Gandhi wrote: > Including the "dept" structure recursively within itself, looks a bit > inefficient to me. I'm not sure I agree with that. It depends on what you're optimizing for, what tools you're using, etc. There are certainly circumstances in whi . . . Read full entry »


Self reference in an element

Posted 7/12/2011 11:50:42 AM

Hi Sir, I am writing an schema for the following structure: Organization dept + @num name total_emp dept + where dept elements are nested within another dept element, but all departments are under organization. My Schema is: <xs:schema xmlns:n . . . Read full entry »


Re: Self reference in an element

Posted 7/12/2011 11:50:36 AM

Hi Avinash, To do this you will need to break "Department" out into its own top-level element (or top-level complexType). For example: <xs:element name="Organization"> <xs:complexType> <xs:sequence> <xs:element ref="ns1:Department" maxOccurs=& . . . Read full entry »


Re: Can an attribute have an alias name?

Posted 7/3/2011 12:17:28 PM

I was actually playing earlier with writing a schema, as follows (only schema fragments shown, describing properties of a "book"): <xs:element name="pubyear" type="PUB_YEAR" minOccurs="0"/> <xs:attribute name="pubyear" type="PUB_YEAR . . . Read full entry »


Re: Can an attribute have an alias name?

Posted 7/1/2011 2:04:22 PM

The suggestion of using assertions in this case, was not to say that this method is best by design. Assertions seem to solve the "alias" creation problem been mentioned. The best design may be (as suggested by Jozef & Mike) to keep your schema same (it doesn't look good design to def . . . Read full entry »


Re: Can an attribute have an alias name?

Posted 7/1/2011 11:47:13 AM

It seems that this may be implemented with XML Schema 1.1 assertions (as follows), <xs:assert test="count(@name | @new-name) = 1"/> Additionally to such an assertion, I think we need to make sure that these two attributes need to be declared optional (i.e don't use use=&qu . . . Read full entry »


Re: Can an attribute have an alias name?

Posted 7/1/2011 9:17:36 AM

> The best solution i.m.o. is to write a little XSLT that transforms old > files into new ones, copying everything except for the attributes that > changed name, and replacing the latter ones. If the new version has a > different namespace, updating it can also be done at the same . . . Read full entry »


Re: Can an attribute have an alias name?

Posted 7/1/2011 8:03:04 AM

Not allowing both attributes (name and new-name) at the same time cannot be done in XML-Schema 1.0. It can be done in Schematron or in XML-Schema 1.1 (using the schematron construct). Do you really have a change in a well-established spec/schema? That should lead to a new version of the spec/sch . . . Read full entry »


Can an attribute have an alias name?

Posted 6/30/2011 9:52:29 AM

One of our specification documents has changed, and one result is that there has been some renaming of data fields. We have lots of XML files that use elements with attributes named according to the previous specification document. In order to avoid editing all of those files, I was wondering whe . . . Read full entry »


Examples of all the different ways of creating XML Schema simpleTypes

Posted 6/24/2011 1:53:49 PM

Hi Folks, Below is an XML Schema. It contains examples of all the different ways of creating simpleTypes. Please let me know if there are other ways that I haven't accounted for. /Roger <?xml version="1.0"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" . . . Read full entry »


Re: UPA â?? (Why) Is There a Difference Between Those Two? „°‰Ùù‚|h%õù‚|lnÐÚ̯‰Óƒ|@ aܯ‰Óƒ|`n¼°‰Ùù‚|x%õù‚|lnhnhn%ƒÿ½w8x°\¯‰ˆ7d°‰˜ö‚|0°‰Ä¥ƒ|@°‰x¯ƒ|x½ˆ|(ÒïC„°‰¯ƒ|(ÒïC% P ´¯‰˜ö‚|¼°‰˜ö‚|%õù‚|€%ܯ‰(˜ö쯉ÿÿÿÿô°‰˜ö‚|øù‚|ÿÿÿÿõù‚|öλw%ûλwlnhnhnÀ°‰RZFsd±‰tl¼wа‰ÿÿÿÿd±‰PÖ™0 ð±‰ÐçpdÄèpdÖ™0 ð0 ð,±‰ŒWžp0 ð0',t±‰CžpYCžpþFrd°%ø`1H0 ð0',8±‰ˆ"£pз‰ø¢p`CžpÿÿÿÿYCžp¡-žp°%øD²‰5æpdø±‰ÛØ[]ı‰|²‰°% ²‰YCžp0',ðEà豉°%øˆ,žp`1HhÜ™ðEà0',²‰ÐçpdÄèpd¨Ü™0',²‰ÞWžp0',D²‰ ²‰¹Wžp€²‰µKžp0',9Õ¡pÉ0HÉP%,Äʼn¼Ã‰`1H¸¶‰ƒ¢pÈxžpSƒ¢p/include/megabannerDefault.aspô²‰@þ:à´‰uiöw0³‰Š)H³‰à´‰Šiöw0³‰¶‰—iöw#D5?ÂP³‰Igno

Posted 6/24/2011 8:42:39 AM

Yes, your analysis is correct. UPA does not require that the grammar is unambiguous (that is, that it produces a unique parse tree). It only requires that all the possible parse trees deliver the same association ("attribution") of elements in the instance document to particles in the . . . Read full entry »


Re: UPA ? (Why) Is There a Difference Between Those Two? „°È Ùù‚|h%õù‚|ÌÓb(èÌ¯È Óƒ|(Æ!Ü¯È Óƒ|ÀÓb¼°È Ùù‚|x%õù‚|ÌÓbÈÓbÈÓb%ƒÿ½w8x°\¯È 0ƒÀDd°È ˜ö‚|0°È Ä¥ƒ|@°È x¯ƒ|x½ˆ|€ „°È ¯ƒ|€ % P ´¯È ˜ö‚|¼°È ˜ö‚|%õù‚|€%Ü¯È (˜öì¯È ÿÿÿÿô°È ˜ö‚|øù‚|ÿÿÿÿõù‚|öλw%ûλwÌÓbÈÓbÈÓbÀ°È RZFsd±È tl¼wÐ°È ÿÿÿÿd±È PÖ™ð'ð±È ÐçpdÄèpdÖ™ð'ðð'ð,±È ŒWžpð'ðP%,t±È CžpYCžpþFrdÈ/ø`1Hð'ðP%,8±È ˆ"£pÐ·È ø¢p`CžpÿÿÿÿYCžp¡-žpÈ/øD²È 5æpdø±È ÛØ[]Ä±È |²È È/ ²È YCžpP%,3àè±È È/øˆ,žp`1HhÜ™3àP%,²È ÐçpdÄèpd¨Ü™P%,²È ÞWžpP%,D²È ²È ¹Wžp€²È µKžpP%,9Õ¡pÃÈ 0HÃÈ 0$,ÄÅÈ ¼ÃÈ `1H¸¶È ƒ¢pxžpSƒ¢p/include/megabannerDefault.aspÈ ¾ý‚|ø²È ƒ|(|ˆ,OEÜ-OEƒ|è@µÈ ÷ú‚|;û‚|èµÈ ¤¶È t‚|Igno

Posted 6/24/2011 1:45:06 AM

On Friday 24 of June 2011 00:28:12 you wrote: > I hope this helps. Yes, thank you! This is really helpful. I especially appreciate the effort you have made to put this explanation into such a broad context — historic and otherwise. I was worried that my understanding of basic concepts of XML . . . Read full entry »


UPA â?? (Why) Is There a Difference Between Those Two? (Íc„°W Ùù‚|h%õù‚|Äh0Íc̯W Óƒ|€ÕlܯW Óƒ|¸h¼°W Ùù‚|x%õù‚|ÄhÀhÀh%ƒÿ½w8x°\¯W ؝/,d°W ˜ö‚|0°W Ä¥ƒ|@°W x¯ƒ|x½ˆ|Ø)d,„°W ¯ƒ|Ø)d,% P ´¯W ˜ö‚|¼°W ˜ö‚|%õù‚|€%ܯW (˜öì¯W ÿÿÿÿô°W ˜ö‚|øù‚|ÿÿÿÿõù‚|öλw%ûλwÄhÀhÀhÀ°W RZFsd±W tl¼wаW ÿÿÿÿd±W PÖ™ð)ð±W ÐçpdÄèpdÖ™ð)ðð)ð,±W ŒWžpð)ðÀ,t±W CžpYCžpþFrd(ø`1Hð)ðÀ,8±W ˆ"£pзW ø¢p`CžpÿÿÿÿYCžp¡-žp(øD²W 5æpdø±W ÛØ[]ıW |²W ( ²W YCžpÀ,ÐMàè±W (øˆ,žp`1HhÜ™ÐMàÀ,²W ÐçpdÄèpd¨Ü™À,²W ÞWžpÀ,D²W ²W ¹Wžp€²W µKžpÀ,9Õ¡pÃW 0HÃW ,ÄÅW ¼ÃW `1H¸¶W ƒ¢pàxžpSƒ¢p/include/megabannerDefault.aspW ¾ý‚|ø²W ƒ|(|Àa05c05ƒ|è@µW ÷ú‚|;û‚|èµW ¤¶W t‚|Igno

Posted 6/23/2011 11:25:29 PM

Hello, I wanted to make sure that I understand this rule correctly. Foo defined in the following way will result in error in both MSXML and libxml2: <xs:element name="non-valid-foo"> <xs:complexType> <xs:sequence> <xs:sequence> & . . . Read full entry »


Re: UPA ? (Why) Is There a Difference Between Those Two? c„°° Ùù‚|h%õù‚|ütð c̯° Óƒ|Øcܯ° Óƒ|ðt¼°° Ùù‚|x%õù‚|ütøtøt%ƒÿ½w8x°\¯° xć+d°° ˜ö‚|0°° Ä¥ƒ|@°° x¯ƒ|x½ˆ|à…ž „°° ¯ƒ|à…ž % P ´¯° ˜ö‚|¼°° ˜ö‚|%õù‚|€%ܯ° (˜ö쯰 ÿÿÿÿô°° ˜ö‚|øù‚|ÿÿÿÿõù‚|öλw%ûλwütøtøtÀ°° RZFsd±° tl¼wа° ÿÿÿÿd±° PÖ™°!ð±° ÐçpdÄèpdÖ™°!ð°!ð,±° ŒWžp°!ð`!,t±° CžpYCžpþFrd+ø`1H°!ð`!,8±° ˆ"£pз° ø¢p`CžpÿÿÿÿYCžp¡-žp+øD²° 5æpdø±° ÛØ[]ı° |²° + ²° YCžp`!,Ð8àè±° +øˆ,žp`1HhÜ™Ð8à`!,²° ÐçpdÄèpd¨Ü™`!,²° ÞWžp`!,D²° ²° ¹Wžp€²° µKžp`!,9Õ¡pð 0Hð Ð&,ÄŰ ¼Ã° `1H¸¶° ƒ¢p¨!xžpSƒ¢p/include/megabannerDefault.aspô²° @þ: à´° uiöw0³° ¦:H³° à´° Šiöw0³° ¶° —iöw#D5?ÂP³° Igno

Posted 6/23/2011 3:28:12 PM

On Jun 23, 2011, at 2:25 PM, Denis Zawada wrote: > Hello, > > I wanted to make sure that I understand this rule correctly. > > Foo defined in the following way will result in error in both > MSXML and libxml2: > > <xs:element name="non-valid-foo"> &g . . . Read full entry »


Licenses in schemas

Posted 6/22/2011 12:34:48 PM

A community I work with wish to allow their schemas to be included in the testing framework for somebody else's software. The somebody else has asked for a license to be provided so as to ensure everything is Kosher. We are inclined to just use CC-BY. * Does anyone else do this, have any warnings . . . Read full entry »


Re: Licenses in schemas

Posted 6/22/2011 8:11:47 AM

> You can't really stop it but you can put comments in the schema to say > that you reserve the right to add new names, and people creating > extensions should not associate them with your namespace name(s). > > This isn't really something you can do with a licence, because it's > . . . Read full entry »


Re: Licenses in schemas

Posted 6/22/2011 1:42:05 AM

On Wed, 2011-06-22 at 12:34 +0800, Simon.Cox@csiro.au wrote: > One issue that we would like to protect ourselves against is other > people adding new stuff into our namespace. You can't really stop it but you can put comments in the schem . . . Read full entry »


Re: What is the correct terminology for a chain of base simpleTypes versus a chain of constructed-

Posted 6/21/2011 3:19:47 PM

On Jun 21, 2011, at 5:31 AM, Costello, Roger L. wrote: > Hi Folks, > > Consider these two simpleTypes: > > <xsd:simpleType name="LotteryNumbers"> > <xsd:restriction> > <xsd:simpleType> > <xsd:list itemTyp . . . Read full entry »


What is the correct terminology for a chain of base simpleTypes versus a chain of constructed-

Posted 6/21/2011 8:31:02 AM

Hi Folks, Consider these two simpleTypes: <xsd:simpleType name="LotteryNumbers"> <xsd:restriction> <xsd:simpleType> <xsd:list itemType="OneToNinetyNine"/> </xsd:simpleType> <xsd:le . . . Read full entry »


Re: What is this simpleType's "base" type?

Posted 6/20/2011 12:41:35 PM

> Do those seem like reasonable function names for a standard XSD function library? > If I were building such a library, I would use function names related very closely to the property names used in the schema component model. Michael Kay Saxonica Received on Monday, 20 June 2011 11:42:05 . . . Read full entry »


Terminology: constructed from, type definition chain, and base type

Posted 6/20/2011 12:09:45 PM

Hi Folks, I want to verify that I am using terminology consistent with the XSD specification. Consider these two simpleTypes: <xsd:simpleType name="LotteryNumbers"> <xsd:restriction> <xsd:simpleType> <xsd:list itemType=" . . . Read full entry »


RE: What is this simpleType's "base" type?

Posted 6/20/2011 7:25:30 AM

Michael Kay wrote: > In XSD 1.1 therefore the usage has been > changed so that "derived" means "derived by restriction": so saying "A > is derived from B" is the same as saying "B is the base type of A", and > the new term "construct . . . Read full entry »


Re: What is this simpleType's "base" type?

Posted 6/19/2011 11:14:10 PM

On 18/06/2011 11:28, Costello, Roger L. wrote: > Thanks again Mukul and Michael. > > There must be an appropriate name for "Named simpleType A depends on named simpleType B" > > That is, ignoring the details of A, at a macro level simpleType A directly depends on another na . . . Read full entry »


Re: What is this simpleType's "base" type?

Posted 6/18/2011 9:43:28 PM

On Sat, Jun 18, 2011 at 5:05 PM, Costello, Roger L. <costello@mitre.org> wrote: > In my LotteryNumbers example, would it be appropriate to say that the OneToNintyNine simpleType is the "parent" simpleType of LotteryNumber . . . Read full entry »


Re: What is this simpleType's "base" type?

Posted 6/18/2011 2:50:00 PM

On Saturday 18 of June 2011 13:35:59 Costello, Roger L. wrote: > Hi Folks, > > Perhaps "parent" simpleType is the appropriate term? > > In my LotteryNumbers example, would it be appropriate to say that the > OneToNintyNine simpleType is the "parent" simpleTyp . . . Read full entry »


Re: What is this simpleType's "base" type?

Posted 6/18/2011 2:44:22 PM

The point which Mike answered is correct I believe. For other ones, I'll have a take on them. On Sat, Jun 18, 2011 at 3:40 AM, Costello, Roger L. <costello@mitre.org> wrote: > If one is the "base" type then what is the . . . Read full entry »


RE: What is this simpleType's "base" type?

Posted 6/18/2011 7:35:59 AM

Hi Folks, Perhaps "parent" simpleType is the appropriate term? In my LotteryNumbers example, would it be appropriate to say that the OneToNintyNine simpleType is the "parent" simpleType of LotteryNumbers? /Roger -----Original Message----- From: Costello, Roger L. . . . Read full entry »


RE: What is this simpleType's "base" type?

Posted 6/18/2011 6:28:57 AM

Thanks again Mukul and Michael. There must be an appropriate name for "Named simpleType A depends on named simpleType B" That is, ignoring the details of A, at a macro level simpleType A directly depends on another named simpleType called B. It is useful to identity the sequence of . . . Read full entry »


Re: What is this simpleType's "base" type?

Posted 6/17/2011 11:39:11 PM

On 17/06/2011 23:10, Costello, Roger L. wrote: > Hi Folks, > > This simpleType, LotteryNumbers, specifies a list of exactly 6 OneToNintyNine values: > > <xsd:simpleType name="LotteryNumbers"> > <xsd:restriction> > <xsd:simpleT . . . Read full entry »


What is this simpleType's "base" type?

Posted 6/17/2011 6:10:02 PM

Hi Folks, This simpleType, LotteryNumbers, specifies a list of exactly 6 OneToNintyNine values: <xsd:simpleType name="LotteryNumbers"> <xsd:restriction> <xsd:simpleType> <xsd:list itemType="OneToNinetyNine"/> . . . Read full entry »


Re: Is a simpleType, A, that restricts a union simpleType equivalent to a simpleType, A, that is a union?

Posted 6/17/2011 10:48:11 AM

On 16/06/2011 18:21, Costello, Roger L. wrote: > Is the following simpleType, B, equivalent to the above B? > As Mukul says, they are equivalent in the sense that the set of values accepted by one is the same as the set of values accepted by the other. But they are not the same type, any m . . . Read full entry »


Re: Is a simpleType, A, that restricts a union simpleType equivalent to a simpleType, A, that is a union?

Posted 6/17/2011 9:22:17 AM

On Thu, Jun 16, 2011 at 10:51 PM, Costello, Roger L. <costello@mitre.org> wrote: > Is the following simpleType, B, equivalent to the above B? > >    <xsd:simpleType name="B"> >        <xsd:union me . . . Read full entry »


Re: Choice between complextContent and complexType

Posted 6/16/2011 2:00:18 PM

On Thu, Jun 16, 2011 at 9:10 AM, Mukul Gandhi <gandhi.mukul@gmail.com> wrote: >    <xs:complexType name="EXT_formInputTypes"> >          <xs:complexContent> >                <xs:extensi . . . Read full entry »


Is a simpleType, A, that restricts a union simpleType equivalent to a simpleType, A, that is a union?

Posted 6/16/2011 1:21:34 PM

Hi Folks, This simpleType, B, restricts the simpleType, A, which is a union type: <xsd:simpleType name="B"> <xsd:restriction base="A" /> </xsd:simpleType> <xsd:simpleType name="A"> <xsd:union memberTypes=&q . . . Read full entry »


Re: Choice between complextContent and complexType

Posted 6/16/2011 9:54:39 AM

I tried to implement the choice constraint you mentioned with XSD 1.1 type alternatives. I'm not sure, if there's an XSD 1.0 solution for such a choice use case. If the workaround you're suggesting suites your environment, please feel free to use that. On Thu, Jun 16, 2011 at 9:48 AM, Karl Stubs . . . Read full entry »


Re: Choice between complextContent and complexType

Posted 6/16/2011 9:28:02 AM

Thanks for the followup on this Mukul. On Thu, Jun 16, 2011 at 1:30 AM, Mukul Gandhi <gandhi.mukul@gmail.com> wrote: > On Thu, Jun 16, 2011 at 9:10 AM, Mukul Gandhi <gandhi.mukul@gmail.& . . . Read full entry »


Re: Choice between complextContent and complexType

Posted 6/16/2011 9:10:02 AM

Hi Karl, One way is to use the type alternative construct from XML Schema 1.1. Here's probably something we may be able to do for this use case (this is untested), <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="description" type=&q . . . Read full entry »


Re: Choice between complextContent and complexType

Posted 6/16/2011 8:32:41 AM

On 16/06/2011 02:37, Karl Stubsjoen wrote: > I have an element "description", who should either extend the > complexType "formInputTypes" or contain a sequence of "column" > elements. Is this possible? > Can you modify formInputTypes so that its content mo . . . Read full entry »


Re: Choice between complextContent and complexType

Posted 6/15/2011 9:42:16 PM

Yes, I appreciate that. Thanks Mukul. Karl.. On Wed, Jun 15, 2011 at 9:24 PM, Mukul Gandhi <gandhi.mukul@gmail.com> wrote: > I tried to implement the choice constraint you mentioned with XSD 1.1 > type alternatives. > > . . . Read full entry »


Re: Choice between complextContent and complexType

Posted 6/15/2011 9:18:11 PM

Hi Mukul, I'm trying to stick with 1.0 standards. If there is not a 1.0 solution than I think I must define a new child element of description. This is what I am doing now. Thanks, Karl.. On Wed, Jun 15, 2011 at 8:40 PM, Mukul Gandhi <gandhi.mukul@gmail . . . Read full entry »


Choice between complextContent and complexType

Posted 6/15/2011 6:37:51 PM

I have an element "description", who should either extend the complexType "formInputTypes" or contain a sequence of "column" elements. Is this possible? -- Karl Stubsjoen MeetScoresOnline.com (602) 845-0006 Received on Thursday, 16 June 2011 01:38:18 GMT . . . Read full entry »


Proposed standard terminology: "resolve" is the term uses to describe the determination of constraints on a simpleType

Posted 6/9/2011 9:27:49 AM

Hi Folks, 1. I propose that the term "resolve" be adopted as the standard term used to describe the determination of constraints on an XML Schema simpleType. See below for a brief discussion of "determining the constraints on a simpleType." 2. I propose the term "resolved . . . Read full entry »


Re: Adding attribute xml:space

Posted 6/7/2011 11:08:10 AM

perhaps something like following (this is a simplistic example for this), <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/> <xs:e . . . Read full entry »


Re: Adding attribute xml:space

Posted 6/6/2011 11:05:56 PM

Perfect! I was thinking this was more complicated than this. Thanks again.. Karl.. On Mon, Jun 6, 2011 at 10:38 PM, Mukul Gandhi <gandhi.mukul@gmail.com>wrote: > perhaps something like following (this is a simplistic example f . . . Read full entry »


Adding attribute xml:space

Posted 6/6/2011 9:34:30 PM

I have an xml document and for one of the elements xml:space should be a valid attribute. I do not know how to set this up in my schema. My Xml is not declared with any sort of schema. Thanks for any help. Karl.. -- Karl Stubsjoen MeetScoresOnline.com (602) 845-0006 Received on Tuesday, 7 J . . . Read full entry »


What verb would you use to describe the determination of the facets and values that apply to a simpleType?

Posted 6/3/2011 12:46:27 PM

Hi Folks, Consider this simpleType: <simpleType name="BostonAreaSurfaceElevation"> <restriction base="EarthSurfaceElevation"> <maxInclusive value="120"/> </restriction> </simpleType> I . . . Read full entry »


Re: Here is a list of the ways that an element or attribute may specify its value space ... is the list complete?

Posted 5/27/2011 8:56:39 PM

On Fri, May 27, 2011 at 8:25 PM, Costello, Roger L. <costello@mitre.org> wrote: > So, for an element, are these all the ways? > > 1. fixed > > 2. type attribute, XSD data type > > 3. type attribute, user-defined d . . . Read full entry »


Re: looking for a tool that will split an xsd file containing several complexTypes into separate files

Posted 5/27/2011 12:41:50 PM

Hi Andy, On Fri, May 27, 2011 at 3:43 AM, Andy Davidson <andy_davidson@apple.com> wrote: > Anyway for our build process to run correctly each rootElement, simpleType, and complexType needs to be defined in a separate file. Can't . . . Read full entry »


RE: Here is a list of the ways that an element or attribute may specify its value space ... is the list complete?

Posted 5/27/2011 10:55:41 AM

Hi Noah, > It might be more in keeping with XSD terminology to say something like: > > "Here is a list of the ways that an XSD element or attribute declaration > can specify the valid content for elements or attributes." Good suggestion! So, for an element, are these all . . . Read full entry »


Re: Here is a list of the ways that an element or attribute may specify its value space ... is the list complete?

Posted 5/27/2011 10:49:51 AM

FWIW, the only formal use I'm aware of for the term "value space" is for XML Schema Datatypes. Your subject line suggests that elements might have a value space, and I don't believe that terminology is used, and it's especially a stretch in the case of elements with complex type. It m . . . Read full entry »


Here is a list of the ways that an element or attribute may specify its value space ... is the list complete?

Posted 5/27/2011 10:05:38 AM

Hi Folks, An XML Schema document "declares" elements and attributes. The set of valid values for an element or attribute (i.e., its value space) may be specified in a variety of ways. Below is a list of ways that an element or attribute may specify its value space. Is this a complete li . . . Read full entry »


Re: looking for a tool that will split an xsd file containing several complexTypes into separate files

Posted 5/26/2011 3:21:42 PM

On May 26, 2011, at 3:13 PM, Andy Davidson wrote: > > Hi > > I have strange problem. Our XSD files are very long. They typically contain a couple of root elements, complexTypes, and simpleTypes. We wrote a code generated that creates a set of OBJC Model class from the XSD. Its simi . . . Read full entry »


looking for a tool that will split an xsd file containing several complexTypes into separate files

Posted 5/26/2011 3:13:59 PM

Hi I have strange problem. Our XSD files are very long. They typically contain a couple of root elements, complexTypes, and simpleTypes. We wrote a code generated that creates a set of OBJC Model class from the XSD. Its similar to JAXB's xjc. Anyway for our build process to run correctly each ro . . . Read full entry »


Run-Time Validation of Inbound XML Documents - Yea or Nay?

Posted 5/21/2011 10:15:29 AM

Hi Folks, This is a summary of the discussion we had earlier this week. Many thanks to those who contributed. /Roger Issue An application receives an XML document. Should the application validate the XML document prior to processing it? That is, should applications perform run-time validation o . . . Read full entry »


Re: Here is a list of the ways that an XML Schema document may use other XML Schema documents ... is the list complete?

Posted 5/20/2011 11:49:57 AM

Roger Costello wrote: > Below is a list of the ways that an XML Schema document > may use other XML Schema documents. Is this the complete > list? Have I missed any? In the sense I think you mean, that's right. To be absolutely complete, there is also the possibility that one (or mor . . . Read full entry »


Here is a list of the ways that an XML Schema document may use other XML Schema documents ... is the list complete?

Posted 5/20/2011 10:26:29 AM

Hi Folks, An XML Schema document may use other XML Schema documents. Below is a list of the ways that an XML Schema document may use other XML Schema documents. Is this the complete list? Have I missed any? 1. <include> 2. <import> 3. <redefine> 4. <override> /Roger . . . Read full entry »


Re: Perform XML Schema validation at run-time?

Posted 5/17/2011 3:40:54 PM

On 5/16/2011 7:25 PM, Michael Glavassevich wrote: > If you don't want invalid documents to be accepted quietly you can register > a schema (not necessarily XML Schema; could also be Relax NG, Schematron or > something else) and if you want you can force JAXB to fail if an error is > r . . . Read full entry »


Re: Is every XML Schema validator guaranteed to support the same set of Unicode characters?

Posted 5/17/2011 9:18:06 AM

On May 16, 2011, at 12:54 PM, Costello, Roger L. wrote: > Hi Folks, > > 1. Is every XML Schema validator guaranteed to support the same set of Unicode characters? What does 'support' mean here? > > For example, will the set of characters expressed by this regex: > > . . . Read full entry »


Re: Question about checking dependencies between fields in xml document via xsd

Posted 5/17/2011 9:11:40 AM

On May 12, 2011, at 12:49 PM, éÏÎÏ× äÍÉÔÒÉÊ ðÅÔÒÏ×ÉÞ wrote: > >On 11/05/2011 17:25, éÏÎÏ× äÍÉÔÒÉÊ ðÅÔÒÏ×ÉÞ wrote: > ... doc_body can be in 3 variants > 1. see upper (in xml document sample) [i.e. group 1 and group 2 both present] > 2. > <doc_body> > <some_field1> . . . Read full entry »


Re: Perform XML Schema validation at run-time?

Posted 5/16/2011 10:10:37 PM

On 16/05/2011 21:26, Costello, Roger L. wrote: > Hi Folks, > > "XML Schema validation should only be done during testing and debugging. It should never be done at run-time." > > Do you agree with that statement? > No, absolutely not. Validation should be done whenever yo . . . Read full entry »


Re: Is every XML Schema validator guaranteed to support the same set of Unicode characters?

Posted 5/16/2011 10:07:55 PM

On 16/05/2011 19:54, Costello, Roger L. wrote: > Hi Folks, > > 1. Is every XML Schema validator guaranteed to support the same set of Unicode characters? Firstly, let's assume we are talking about conformant XSD processors. There are many that aren't conformant, and regex support is a not . . . Read full entry »


Re: Perform XML Schema validation at run-time?

Posted 5/16/2011 7:25:25 PM

gkholman@CraneSoftwrights.com wrote on 05/16/2011 05:16:39 PM: > >Can you provide an example of a service that does run-time validation? > > I would think that . . . Read full entry »


Re: Perform XML Schema validation at run-time?

Posted 5/16/2011 5:47:46 PM

I disagree too. For example, certain databases systems count on and benefit from the fact that certain collections of XML documents are known all to be valid per some schema. That can help with both storage and query optimization. I'm fairly sure that certain commercial database systems offer t . . . Read full entry »


Re: Perform XML Schema validation at run-time?

Posted 5/16/2011 5:16:39 PM

At 2011-05-16 16:26 -0400, Costello, Roger L. wrote: >"XML Schema validation should only be done during testing and >debugging. It should never be done at run-time." > >Do you agree with that statement? I do not. I interpret your "testing and debugging" involves c . . . Read full entry »


Re: Perform XML Schema validation at run-time?

Posted 5/16/2011 4:54:26 PM

Are you referring to the validation of a XML schema? Or the validation of an XML document via xml schema? We have a thin client DITA editor that does lots of runtime validation on xml documents. However we built our own validation engine in javascript to do this efficiently on the client. Virtuall . . . Read full entry »


Perform XML Schema validation at run-time?

Posted 5/16/2011 4:26:06 PM

Hi Folks, "XML Schema validation should only be done during testing and debugging. It should never be done at run-time." Do you agree with that statement? Can you provide an example of a service that does run-time validation? /Roger Received on Monday, 16 May 2011 20:26:33 GMT . . . Read full entry »


Is every XML Schema validator guaranteed to support the same set of Unicode characters?

Posted 5/16/2011 2:54:07 PM

Hi Folks, 1. Is every XML Schema validator guaranteed to support the same set of Unicode characters? For example, will the set of characters expressed by this regex: [\d\D] be the same regardless of the XML Schema validator? 2. Is every version of XML Schema guaranteed to support the sa . . . Read full entry »


Re: Question about checking dependencies between fields in xml document via xsd

Posted 5/12/2011 10:49:01 PM

>On 11/05/2011 17:25, éÏÎÏ× äÍÉÔÒÉÊ ðÅÔÒÏ×ÉÞ wrote: >> >> Hello. >> >> During a few days I can't solve one problem. >> >> There are two groups of fields in the xml file >> >> first >> >> <field1></field1> >> <f . . . Read full entry »


Re: Question about checking dependencies between fields in xml document via xsd

Posted 5/11/2011 9:22:05 PM

On 11/05/2011 17:25, éÏÎÏ× äÍÉÔÒÉÊ ðÅÔÒÏ×ÉÞ wrote: > > Hello. > > During a few days I can't solve one problem. > > There are two groups of fields in the xml file > > first > > <field1></field1> > <field2></field2> > <field3></fiel . . . Read full entry »


Question about checking dependencies between fields in xml document via xsd

Posted 5/11/2011 8:25:36 PM

Hello. During a few days I can't solve one problem. There are two groups of fields in the xml file first <field1></field1> <field2></field2> <field3></field3> second <field4></field4> <field5></field5> All fields in the same l . . . Read full entry »


Looking for background on XSD cross-referencing mechanisms

Posted 5/11/2011 10:25:17 AM

Some of you may recall that I'm working on my own simple schema language [1]. As part of that I've developed a simple element cross-referencing mechanism that is facet based. I'm wondering whether this was ever considered for XSD and if not, are there issues with the mechanism. To explain t . . . Read full entry »


RE: Dealing with multiple XML Schema files

Posted 5/9/2011 1:31:15 PM

a. Completing recipe 6, Instance.xml will be found valid by most common processors _providing_ the xsi:schemaLocation points the no-prefix-namespace to all-files.xsd. b. And combining recipes 6. And 7., it's OK for each of A.xsd and B.xsd and C.xsd and D.xsd to (circularly) <include> all-fil . . . Read full entry »


Re: Dealing with multiple XML Schema files

Posted 5/9/2011 10:18:30 AM

Hi Roger I am not sure what the purpose of the document is. Is it a "best practices" guide? If so, in my humble opinion. #1 may be possible but a bad idea. This design will probable lead to lots of programming errors #2 is basically the same as #1. In both cases the "name" is . . . Read full entry »


Re: Dealing with multiple XML Schema files

Posted 5/8/2011 8:13:44 PM

Hi Roger, Could be interesting to write the same article but using namespaces, with includes and imports, I mean, importing files with the same namespace in other and with circular references. Despite constructions are correct, some parsers didn´t implement all the schema's rules and the results . . . Read full entry »


Dealing with multiple XML Schema files

Posted 5/8/2011 8:55:14 AM

Hi Folks, I wrote a short article on dealing with multiple XML Schema files: http://xfront.com/Dealing-With-Multiple-XML-Schema-Files.pdf Comments welcome. /Roger Received on Sunday, 8 May 2011 12:55:43 GMT . . . Read full entry »


Re: Here's why I use XML Schemas ... Why do you use XML Schemas?

Posted 5/3/2011 9:32:16 PM

Argh, I forgot to put in the link to the slide deck. It's at [1]. I suggest you run it as an actual slide show in Powerpoint (press F5), as there are some animiations that get lost if you just page through the slides. Noah [1] http://www.arcanedomain.com/publications/SchemaSecrets.ppt On 5/3/2 . . . Read full entry »


Re: Here's why I use XML Schemas ... Why do you use XML Schemas?

Posted 5/3/2011 9:30:37 PM

Way back in 2002, I gave a presentation on XML Schema at a quite technically focused developer event. The slides are at [1], and on slide 9 I attempted to give a quite general answer to your question. The contents of that slide are: ================= WHAT ARE SCHEMAS FOR? * Contracts: agreei . . . Read full entry »


Re: ANN: Algorithm for Merging a simpleType Dependency Chain

Posted 5/3/2011 11:06:21 AM

On May 2, 2011, at 2:28 PM, Costello, Roger L. wrote: > Hey Michael, > >>> I wish to create a single, standalone rendering for BostonAreaSurfaceElevation. >>> That is, a representation that does not depend on a base type. >> >> Any particular reason to do th . . . Read full entry »


Re: Is this the complete list of named things in an XML Schema?

Posted 5/2/2011 7:25:36 PM

"notation" may be the only one left. On Mon, May 2, 2011 at 7:16 PM, Costello, Roger L. <costello@mitre.org> wrote: > Hi Folks, > > Below is a list of "named" items (i.e., things that can have a name attr . . . Read full entry »


RE: ANN: Algorithm for Merging a simpleType Dependency Chain

Posted 5/2/2011 4:28:33 PM

Hey Michael, >> I wish to create a single, standalone rendering for BostonAreaSurfaceElevation. >> That is, a representation that does not depend on a base type. > > Any particular reason to do that? Understanding the constraints on a simpleType is important for understanding a . . . Read full entry »


Re: Is this the complete list of named things in an XML Schema?

Posted 5/2/2011 2:57:48 PM

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Costello, Roger L. writes: > Below is a list of "named" items (i.e., things that can have a name > attribute). Have I missed anything? Yes, you missed Notation declarations. See the list in the spec [1]. Note that there are only 7 &q . . . Read full entry »


Re: Is this the complete list of named things in an XML Schema? (UNCLASSIFIED)

Posted 5/2/2011 2:14:30 PM

Classification: UNCLASSIFIED The link provided by Henry lists 13 key components of Schema, but it does not include import or include type elements, which seem to stand on their own apart from the listed components. Austin Cheney, CISSP http://prettydiff.com/ On 05/02/11, ht@in&# . . . Read full entry »


Is this the complete list of named things in an XML Schema?

Posted 5/2/2011 9:46:29 AM

Hi Folks, Below is a list of "named" items (i.e., things that can have a name attribute). Have I missed anything? 1. simpleType 2. complexType 3. element 4. attribute 5. group 6. attributeGroup 7. key 8. keyref 9. unique /Roger Received on Monday, 2 May 2011 13:46:57 GMT . . . Read full entry »


Re: ANN: Algorithm for Merging a simpleType Dependency Chain

Posted 5/2/2011 8:07:24 AM

On May 1, 2011, at 8:11 AM, Costello, Roger L. wrote: > ... > > I wish to create a single, standalone rendering for BostonAreaSurfaceElevation. That is, a representation that does not depend on a base type. Any particular reason to do that? -- *************************************** . . . Read full entry »


Re: ANN: Algorithm for Merging a simpleType Dependency Chain

Posted 5/1/2011 3:19:44 PM

Hi Roger, The thing which confuses me, within your article is that you use the terminology, xsd:value (i.e the component "value" is in XML Schema namespace, whereas in XML Schema language we currently don't have any component named "value" within the xsd: namespace). So how . . . Read full entry »


Re: ANN: Algorithm for Merging a simpleType Dependency Chain

Posted 5/1/2011 10:48:35 AM

Hi Roger, Not commenting on the uses of your algorithm to merge constraints of a simpleType dependency chain. This may have uses in certain use cases. There seems to be one technical gotcha, that I observed in your article. Somewhere in your article, you say that simpleType is rendered as [1 . . . Read full entry »


RE: ANN: Algorithm for Merging a simpleType Dependency Chain

Posted 5/1/2011 10:11:34 AM

Hi Mukul, No, I am not merely bundling together all the facets into a simpleType. Rather, I am intelligently merging/consolidating/assimilating the facets. Example: BostonSurfaceAreaElevation has a base type, EarthSurfaceElevation <xsd:simpleType name="BostonAreaSurfaceElevation& . . . Read full entry »


RE: ANN: Algorithm for Merging a simpleType Dependency Chain

Posted 5/1/2011 5:15:20 AM

Hi Mukul, Recall the purpose of my algorithm: create a single, standalone rendering of a simpleType. By sticking to the XML Schema representation of simpleTypes it is impossible to create a single, standalone rendering of a simpleType. Why? Because of the pattern facet - pattern facets within . . . Read full entry »


ANN: Algorithm for Merging a simpleType Dependency Chain

Posted 4/30/2011 6:20:18 PM

Hi Folks, An XML Schema simpleType can have a base type. And that base type may have a base type. And so on. Further, the types may be in different schema files and in different namespaces. Determining the constraints on a simpleType in this "dependency chain" can be challenging. I cr . . . Read full entry »


Another XML Schema quiz -- what is the base type for a simpleType that is part of a simpleType dependency chain?

Posted 4/28/2011 2:50:13 PM

Hi Folks, Consider this simpleType: <xs:simpleType name="A"> <xs:restriction base="B"> -- facets -- </xs:restriction> </xs:simpleType> You see that simpleType A uses simpleType B. Suppose that simpleType B uses simpleType C, which u . . . Read full entry »


Re: XML Schema programming idiom: gathering up all the constraints on a simpleType

Posted 4/27/2011 4:23:06 PM

By defining a user defined simpleType, we are actually defining the value space of the simpleType (which could be from restriction of another simple type, a list, or union of value spaces of member types). The fundamental means of doing this in XML Schema language is by using facets, itemType (for . . . Read full entry »


Re: Are these all the possible variations for simpleTypes?

Posted 4/27/2011 3:59:45 PM

Hi Roger, I think one case that is probably left is follows, <xs:union memberTypes="t1 t2"> {xs:simpleType*} </xs:union> i.e simpleType with variety union may have both, value in memberTypes attribute and simpleType's specified as children of xs:union element. In t . . . Read full entry »


XML Schema programming idiom: gathering up all the constraints on a simpleType

Posted 4/27/2011 5:41:20 AM

Hi Folks, One activity that I frequently perform when processing XML Schemas is this: I have a simpleType and I need to know all the constraints on it. Example: consider this simpleType: <xsd:simpleType name="BostonAreaSurfaceElevation"> <xsd:restrictio . . . Read full entry »


Re: In a type dependency chain, what is the highest type in the chain called?

Posted 4/26/2011 10:52:20 PM

On 26/04/2011 18:24, Costello, Roger L. wrote: > Hi Folks, > > In the below type dependency chain BostonAreaSurfaceElevation restricts EarthSurfaceElevation which restricts Elevation which restricts xsd:integer. > > So, xsd:integer is at the top of the chain. No it isn't. xs:integer . . . Read full entry »


Are these all the possible variations for simpleTypes?

Posted 4/26/2011 3:27:40 PM

Hi Folks, I want to check that this is a complete list of ways of expressing simpleTypes. I have identified 6 ways: 1. A simpleType that has a base attribute, e.g., <xsd:simpleType name="BostonAreaSurfaceElevation"> <xsd:restriction base="elev:EarthSurfaceElev . . . Read full entry »


In a type dependency chain, what is the highest type in the chain called?

Posted 4/26/2011 1:24:57 PM

Hi Folks, In the below type dependency chain BostonAreaSurfaceElevation restricts EarthSurfaceElevation which restricts Elevation which restricts xsd:integer. So, xsd:integer is at the top of the chain. What is that called? The start type? The head type? The beginning type? The primal type? If t . . . Read full entry »


Re: I propose the XML Schema 1.1 <assert> element support user-friendly diagnostic messages via the XPath trace() function

Posted 4/26/2011 12:23:12 PM

>             <xs:assert test="if (xs:time(start) lt xs:time(end)) then > >                                                      true() > >                                                else > >                                                       trace(false(), 'Hey, . . . Read full entry »


I propose the XML Schema 1.1 <assert> element support user-friendly diagnostic messages via the XPath trace() function

Posted 4/26/2011 6:35:58 AM

Hi Folks, The <assert> element in here checks that the meeting start time is before its end time: <xs:element name="meeting"> <xs:complexType> <xs:sequence> <xs:element name="start" type="xs:time" . . . Read full entry »


Re: Algorithm for merging the pattern facets in a base simpleType with a subtype?

Posted 4/25/2011 4:20:46 PM

On Apr 22, 2011, at 11:13 AM, Michael Kay wrote: > >> Since regular languages are closed under intersection, >> the result of a logical 'and' of two regexes is a regular >> language. And it will have an expression using XSD regular >> expressions. > > Interestin . . . Read full entry »


Re: I recommend the following changes to XML Schema simpleType facets

Posted 4/23/2011 8:08:24 PM

Hi Roger, On Fri, Apr 22, 2011 at 10:21 PM, Costello, Roger L. <costello@mitre.org> wrote: > 2. If a simpleType contains multiple pattern facets, they should be AND-ed together (instead of OR-ed together). This limitation is some . . . Read full entry »


Re: Algorithm for merging the pattern facets in a base simpleType with a subtype?

Posted 4/22/2011 6:13:48 PM

> Since regular languages are closed under intersection, > the result of a logical 'and' of two regexes is a regular > language. And it will have an expression using XSD regular > expressions. Interesting. Is there a general algorithm for deriving that expression? In the absence of t . . . Read full entry »


Re: I recommend the following changes to XML Schema simpleType facets

Posted 4/22/2011 6:09:03 PM

On 22/04/2011 17:51, Costello, Roger L. wrote: > Hi Folks, > > I recommend the following changes to XML Schema simpleTypes. We can all think of many ways of improving the XSD language if backwards compatibility were not a constraint. Sadly, we don't have that luxury - we're stuck with t . . . Read full entry »


I recommend the following changes to XML Schema simpleType facets

Posted 4/22/2011 12:51:54 PM

Hi Folks, I recommend the following changes to XML Schema simpleTypes. 1. Each simpleType may have only one enumeration facet. The value of its "value" attribute can be a list of pipe-separated values. E.g., do not do this: <simpleType name="Colors"> <restriction . . . Read full entry »


RE: Algorithm for merging the pattern facets in a base simpleType with a subtype?

Posted 4/22/2011 11:16:37 AM

Hi Michael, > What does this algorithm sketch do if there are three patterns > on each declaration (call them A1, A2, A3, B1, B2, B3, ..., D3)? > Are B1 through D3 all ORed together? Yes. A1, A2, A3 is converted to A1|A2|A3 B1, B2, B3 is converted to B1|B2|B3 C1, C2, C3 is converted t . . . Read full entry »


Re: Algorithm for merging the pattern facets in a base simpleType with a subtype?

Posted 4/22/2011 9:04:26 AM

On Apr 20, 2011, at 3:49 AM, Costello, Roger L. wrote: > ... > > Let me denote this simpleType dependency chain like this: > > list = [A, B, C, D] > > Problem: what are the pattern facet constraints on simpleType A? > > > Algorithm: > > Pattern-Facet- . . . Read full entry »


Re: Algorithm for merging the pattern facets in a base simpleType with a subtype?

Posted 4/22/2011 8:27:55 AM

On Apr 19, 2011, at 6:35 PM, Liam R E Quin wrote: > > > I don't know if the XSD regular expression language is closed under a > (putative) "and" operation. There may not always be a single expression > to represent the result. Unlike some constructs which circulate un . . . Read full entry »


RE: Algorithm for merging the pattern facets in a base simpleType with a subtype?

Posted 4/20/2011 5:49:18 AM

Thanks Michael and Liam. Truly excellent. I think that now I have an algorithm for determining how the pattern facets in a simpleType and in its base type (and its base type's base type and so on) constrain a simpleType. Would you verify my algorithm please? Consider simpleType A that has a base . . . Read full entry »


RE: Algorithm for merging the pattern facets in a base simpleType with a subtype?

Posted 4/19/2011 8:35:25 PM

On Tue, 2011-04-19 at 16:34 -0400, Costello, Roger L. wrote: > [a-z]{10} and [a-z]{20} This is a nonsense in logic (the empty set) since no values have both exactly 10 and exactly 20 characters. I am guessing you really mean "or" - in which case, ([a-z]{10})|([a-z]{20}) woul . . . Read full entry »


Re: Algorithm for merging the pattern facets in a base simpleType with a subtype? (UNCLASSIFIED)

Posted 4/19/2011 5:41:25 PM

On Apr 19, 2011, at 1:04 PM, Cheney, Edward A SSG RES USAR USARC wrote: > Classification: UNCLASSIFIED >>> Therefore, the patterns that apply to "B" are just the patterns >>> contained in "B". Effectively the patterns in "A" may be ignored. Do &g . . . Read full entry »


Re: Algorithm for merging the pattern facets in a base simpleType with a subtype?

Posted 4/19/2011 5:26:52 PM

On Apr 19, 2011, at 2:34 PM, Costello, Roger L. wrote: > Thanks Michael. Very enlightening. > > I'd like to confirm my new understanding. > > Here simpleType "A" is the base of simpleType "B": > > <xs:simpleType name="A"> > . . . Read full entry »


RE: Algorithm for merging the pattern facets in a base simpleType with a subtype?

Posted 4/19/2011 4:34:07 PM

Thanks Michael. Very enlightening. I'd like to confirm my new understanding. Here simpleType "A" is the base of simpleType "B": <xs:simpleType name="A"> <xs:restriction base="xs:string"> <xs:pattern value="[a-z] . . . Read full entry »


Re: Algorithm for merging the pattern facets in a base simpleType with a subtype? (UNCLASSIFIED)

Posted 4/19/2011 2:04:00 PM

Classification: UNCLASSIFIED >> Therefore, the patterns that apply to "B" are just the patterns >> contained in "B". Effectively the patterns in "A" may be ignored. Do >> you agree? > > No, sorry, there is nothing in the spec to justify that con . . . Read full entry »


Re: Algorithm for merging the pattern facets in a base simpleType with a subtype?

Posted 4/19/2011 10:38:57 AM

On Apr 19, 2011, at 7:15 AM, Costello, Roger L. wrote: > Hi Folks, > > Suppose that simpleType "A" is the base or simpleType "B": > ... > > Suppose that "A" contains one or more pattern facets: > ... > > What patterns apply to "B&qu . . . Read full entry »



XQuery Editor

Stylus Studio's XQuery development tools are a tremendous help in building and testing XML applications requiring a standards-based approach to querying, integrating and transforming data from various distributed data sources.

Convert DTD to XML

Learn how to create a sample XML instance document from a DTD using Stylus Studio DTD to XML conversion tools.

XML Programming

Simplify XML Programming with Stylus Studio's XML Pipeline, a powerful tool for modeling, programming, debugging and deploying complete XML programs.

XML Document Wizards

Stylus Studio XML Document Wizards help you easily convert EDI, flat files, and other document formats to industry-standard XML.

Stylus Most Wanted

PURCHASE STYLUS STUDIO ONLINE TODAY!!

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

Buy Stylus Studio Now

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!

 
Free Stylus Studio XML Training:
W3C Member