Subscribe to the XML-Dev Blog in XML format
RSS 2.0
Atom 0.3

The XML-DEV Blog

The XML-DEV email discussion forum was started nearly 10 years ago by Dr. Peter Murray-Rust and Dr. Henry Rzepa of Imperial College (UK), covering XML development topics including XML standards, XML specifications, and technical questions related to the eXtensible Markup Language. The XML-DEV Blog brings the XML-DEV community into the blogging era, enabling XML developers to easily follow the hottest threads in the blogosphere.


Re: XML Parsing in Go

Posted 12/7/2017 8:28:13 PM

Should also add that I have only used the built-in parser once and it did a serviceable job. I used it to help a team understand the contents of some large XML files which had no DTD or XSD. Pretty printed they came to about 10K lines. I essentially computed counts of the elements, certain values o . . . Read full entry »


Re: XML Parsing in Go

Posted 12/7/2017 8:19:31 PM

The "tagged" structs in Go are more flexible than first appearances may show, but the built-in xml parser doesn't give a lot of options. Over at godocs.org a search on xml show some that may be of interest. But I can't vouch for any of them:- a pull parser https://godoc.org/github . . . Read full entry »


XML Parsing in Go

Posted 12/7/2017 1:59:50 PM

I'm looking into a project that will do some XML parsing and likely be implemented in Go. What do folks think of the available libraries? All I see so far seems to be based on the rather broken notion of data binding. (One more time: XML documents are not structs.) Is there any rough equivalent to . . . Read full entry »


Re: Which is more declarative? More XMLish?

Posted 12/4/2017 11:16:09 AM

I think you can validate a streaming document. Start with the proposition that a document is wellformed and valid until you find something that disproves it. That does not affect Dmitri's point about transactions, of course.Rick > Note: even XML well-formedness cannot be validated when strea . . . Read full entry »


Re: Which is more declarative? More XMLish?

Posted 12/3/2017 4:23:37 PM

>> Perhaps more interestingly, XPath 3.1 introduces maps, and there is no rule that says a map must be finite. It is possible to take a finite graph structure (such as schema component model) and represent each node in the graph as a map; the map will then be infinite (you can navigate around . . . Read full entry »


Re: Which is more declarative? More XMLish?

Posted 12/3/2017 2:57:27 AM

On Sat, 2017-12-02 at 09:04 -0800, Dimitre Novatchev wrote: > [...] > But an XML document cannot contain infinite number of > elements (unless W3C makes a new XML Spec allowing this -- and this > would be conveniently hand-in-hand with XSLT streaming). I several times wished we had mo . . . Read full entry »


Re: Which is more declarative? More XMLish?

Posted 12/2/2017 11:16:36 PM

The direction of thought I have in mind has nothing to do with "constrained vocabularies". It has to do with an extension of our thinking about XML: the introduction of "semantic identity", as opposed to node identity; or to put it simply: the view that complex XML elements describe a thing (its pr . . . Read full entry »


Re: Which is more declarative? More XMLish?

Posted 12/2/2017 10:53:28 PM

On 2 Dec 2017, at 22:18, Hans-Juergen Rennau <hrennau@yahoo.de> wrote:Michael Kay wrote: "the result of serializing the map as JSON and then converting the JSON to XML will be an infinite XML document"But this assumes a certain way of re . . . Read full entry »


Re: Which is more declarative? More XMLish?

Posted 12/2/2017 10:18:30 PM

Michael Kay wrote: "the result of serializing the map as JSON and then converting the JSON to XML will be an infinite XML document"But this assumes a certain way of representing JSON data in XML (or, more generally, "information objects" in XML), an assumption which is as habitual as it is complete . . . Read full entry »


Re: Which is more declarative? More XMLish?

Posted 12/2/2017 9:13:28 PM

> On 2 Dec 2017, at 18:15, Michael Kay <mike@saxonica.com> wrote: > > > I don't think there is any rule that says the number of elements in a document must be finite. > > ... > Perhaps more interestingly, XPat . . . Read full entry »


Re: Which is more declarative? More XMLish?

Posted 12/2/2017 6:15:53 PM

> On 2 Dec 2017, at 17:04, Dimitre Novatchev <dnovatchev@gmail.com> wrote: > > > This is not a set -- this is, strictly speaking, a sequence. > > More precisely, this is just one of the n! possible rep . . . Read full entry »


Re: Which is more declarative? More XMLish?

Posted 12/2/2017 3:28:56 PM

On 12/2/2017 9:26 AM, Costello, Roger L. wrote: Hi Folks, XML documents oftentimes contain a set of things – a set of books, a set of people, a set of transactions, etc. Typically, a set isn’t allowed to contain just anything, the set must satisfy some constraints. Constraints can be expressed . . . Read full entry »


Which is more declarative? More XMLish?

Posted 12/2/2017 2:26:36 PM

Hi Folks, XML documents oftentimes contain a set of things – a set of books, a set of people, a set of transactions, etc. Typically, a set isn’t allowed to contain just anything, the set must satisfy some constraints. Constraints can be expressed in different ways. Perhaps one way i . . . Read full entry »


Re: Which is more declarative? More XMLish?

Posted 12/2/2017 2:20:15 PM

On 12/2/2017 9:26 AM, Costello, Roger L. wrote: Hi Folks, XML documents oftentimes contain a set of things – a set of books, a set of people, a set of transactions, etc. The only XML documents I've seen contain elements, attributes, textual data, PIs, and DTDs. They never contain books . . . Read full entry »


Re: Which is more declarative? More XMLish?

Posted 12/2/2017 10:15:04 AM

Both rules would also allow: <numbers> <number>0</number> <number>2</number> <number>2</number> <number>4</number> <number>4</number> <number>4</number> <number>6</number> < . . . Read full entry »


Re: Which is more declarative? More XMLish?

Posted 12/2/2017 9:04:35 AM

Hi Roger, > Example: Here is an XML document containing a set (of positive even > numbers): > > <numbers> > <number>0</number> > <number>2</number> > <number>4</number> > <number>6</number> > > . . . Read full entry »


fragments and React

Posted 12/1/2017 2:26:08 PM

I keep finding that how different systems handle document fragments is a useful indicator of how they look at the world. React is a pretty popular framework from Facebook, one I mostly like except for odd things deriving from their particular mixture of markup and JavaScript. They recently adde . . . Read full entry »


Re: Embedding image files in XML using data URLs

Posted 11/29/2017 4:16:52 PM

> An xs:anyURI value can be a data URL.that's hardly surprising given that (in later interpretations of xsd) any string is valid xs:anyURI value.> An xs:anyURI value can either link to external data or it can inline the data using a data URL.or said differently   an xsl:anyURI value can r . . . Read full entry »


Embedding image files in XML using data URLs

Posted 11/29/2017 4:03:51 PM

Hi Folks,   You are familiar with URLs such as this:   http://www.example.org   That URL uses the http scheme.   There are other schemes in addition to the http scheme. One such scheme is the data URI scheme. Let’s look at it. But first, let’s motivate . . . Read full entry »


Re: Is a URI a uri or the entity pointed to by the uri?

Posted 11/28/2017 10:55:00 AM

I love it when we get all metaphysical!    Jim On 2017-11-27 11:57, Simon St.Laurent wrote: This conversation is a perfect response to the initial question.  xml-dev wins again! Thanks, Simon . . . Read full entry »


Re: Is a URI a uri or the entity pointed to by the uri?

Posted 11/27/2017 4:47:00 PM

On 27 Nov 2017, at 15:37, Costello, Roger L. <costello@mitre.org> wrote: Hi Folks,1. Here is a set:{The Amazon River, George Washington, 3}That set uses a name for each of its member, but the set consists of the objects named, not of the . . . Read full entry »


Is a URI a uri or the entity pointed to by the uri?

Posted 11/27/2017 3:37:45 PM

Hi Folks, 1. Here is a set: {The Amazon River, George Washington, 3} That set uses a name for each of its member, but the set consists of the objects named, not of the names themselves. In the set, the first president of the United States, whose name happens to be ‘George Washington’ . . . Read full entry »


Re: Is a URI a uri or the entity pointed to by the uri?

Posted 11/27/2017 1:57:45 PM

This conversation is a perfect response to the initial question.  xml-dev wins again! Thanks, Simon On 11/27/2017 1:43 PM, Webb Roberts wrote: But that would just be a performance of the song.  On Nov 27, 2017, . . . Read full entry »


Re: Is a URI a uri or the entity pointed to by the uri?

Posted 11/27/2017 1:43:40 PM

But that would just be a performance of the song. On Nov 27, 2017, at 13:40, John Cowan <johnwcowan@gmail.com> wrote:On Mon, Nov 27, 2017 at 1:37 PM, Webb Roberts <webb@w...> wrote:'Well, what IS the song, then?' said Alice, who was by this time co . . . Read full entry »


Re: Is a URI a uri or the entity pointed to by the uri?

Posted 11/27/2017 1:40:24 PM

On Mon, Nov 27, 2017 at 1:37 PM, Webb Roberts <webb@webbroberts.com> wrote:'Well, what IS the song, then?' said Alice, who was by this time completely bewildered. 'I was coming to that,' the Knight said. 'The song real . . . Read full entry »


Re: Is a URI a uri or the entity pointed to by the uri?

Posted 11/27/2017 1:37:34 PM

'You are sad,' the Knight said in an anxious tone: 'let me sing you a song to comfort you.' 'Is it very long?' Alice asked, for she had heard a good deal of poetry that day. 'It's long,' said the Knight, 'but very, VERY beautiful. Everybody that hears me sing it--either it brings the TEARS in . . . Read full entry »


Re: Is a URI a uri or the entity pointed to by the uri?

Posted 11/27/2017 10:33:12 AM

Your question can’t be answered as asked because you didn’t specify the *context* for the answer.In the case of the XML document, the value of the < attendee> element is the text node http://www.example.com/SallySmith (which we can generalize to the string http://www.example.com/SallySmith as . . . Read full entry »


Re: Is a URI a uri or the entity pointed to by the uri?

Posted 11/27/2017 9:27:36 AM

The W3C TAG discussed a related issue for some years; you may wish to peruse the archives. https://www.w3.org/2001/tag/issues.html#httpRange-14 Lauren On Mon, Nov 27, 2017 at 8:47 AM, Michael Kay <mike@saxonica.com> wrote: > > . . . Read full entry »


[ANN] Reminder: XML Prague 2018 - Call for Proposals

Posted 11/23/2017 5:39:57 PM

Hello, there are still seven days to submit your proposal for XML Prague. The XML Prague conference will include two full days of single track sessions, as well as a multitrack unconference day. The conference is held on the Thursday, Friday and Saturday (February 8-10, 2018), located at the Uni . . . Read full entry »


Re: A better way to construct regular expressions in XMLSchema

Posted 11/23/2017 1:36:58 PM

On 20.11.2017 13:35, Costello, Roger L. wrote: > I have an XML Schema that needs some complex regular expressions. I have been using <!ENTITY> to construct the regexes. See below. I find it pretty hard to debug these regular expressions. Is there a better way to construct regexes? /Roger . . . Read full entry »


Re: How efficient are XML parsers?

Posted 11/23/2017 1:32:14 PM

On 15.11.2017 13:07, Costello, Roger L. wrote: > Answer: Google FlatBuffers. Funny fact is that Facebook is now so large that right hand doesn't know what left was doing. They already have their own technology for more-efficient data interchange: https://thrift.apache.org/ But basically most . . . Read full entry »


Re: A better way to construct regular expressions in XMLSchema

Posted 11/21/2017 2:51:42 PM

On Mon, 2017-11-20 at 12:35 +0000, Costello, Roger L. wrote: > Hi Folks, > > I have an XML Schema that needs some complex regular expressions. I > have been using <!ENTITY> to construct the regexes. See below. I find > it pretty hard to debug these regular expressions. Is ther . . . Read full entry »


Re: RE: When maxOccurs=1 means an unbounded number ofoccurrenc

Posted 11/21/2017 1:58:16 PM

On 21 November 2017 at 13:47, Costello, Roger L. <costello@mitre.org> wrote: > Hi Folks, > > > > Here is more context to my post. I am reading the vCard RFC. > (https://tools.ietf.org/html/rfc6350) The RFC specifies . . . Read full entry »


RE: When maxOccurs=1 means an unbounded number of occurrences isvalid

Posted 11/21/2017 1:47:37 PM

Hi Folks,   Here is more context to my post. I am reading the vCard RFC. (https://tools.ietf.org/html/rfc6350)  The RFC specifies number of occurrences this way:       +-------------+--------------------------------------------------+     . . . Read full entry »


Re: A better way to construct regular expressions in XML Schem

Posted 11/21/2017 1:35:04 PM

s/data extraction/data abstraction/s/system anyone/system anyway/blushOn Tue, Nov 21, 2017 at 1:30 PM, Rick Jelliffe <rjelliffe@allette.com.au> wrote:But he doesn't want to do data extraction. He just wants to chunk up a large regular . . . Read full entry »


Re: A better way to construct regular expressions in XML Schem

Posted 11/21/2017 1:30:38 PM

But he doesn't want to do data extraction. He just wants to chunk up a large regular expression. We need to be careful about a degree of nanny-ism, that just prevents people from getting the job done. The sure result of refusing to provide (abusable) general mechanisms is an explosion of specif . . . Read full entry »


Re: When maxOccurs=1 means an unbounded number of occurrences

Posted 11/21/2017 11:27:35 AM

> On Nov 20, 2017, at 4:13 PM, yamahito <yamahito@gmail.com> wrote: > > Hi Roger, > > I would disagree only with your initial interpretation: I think minOccurs=1 - I think 'exactly' trumps 'MAY'. > > Interested to see if the lis . . . Read full entry »


Re: A better way to construct regular expressions in XML Schem

Posted 11/21/2017 10:24:01 AM

No.   But what makes entities offensive? Seems like the appropriate technology to use.In Schematron, you can put the text portions into variables and combine them. But it is ultimately still just text substitution (macros). XSD doesn't provide simple macros, but it doesn't need to, because . . . Read full entry »


Re: A better way to construct regular expressions in XML Schem

Posted 11/21/2017 1:05:54 AM

I've always been ambivalent about macros in general, largely because I've seen people use their power to build monstrous houses-built-on-sand that were wonderful to behold but impossible to understand or debug or change.I've also been very ambivalent about XML's macro mechanism (entity expansion), . . . Read full entry »


Re: When maxOccurs=1 means an unbounded number of occurrences

Posted 11/20/2017 11:17:51 PM

I would disagree only with your initial interpretation: I think minOccurs=1 - I think 'exactly' trumps 'MAY'.It struck me as being thoroughly ambiguous, but perhaps if we had more context it would become more clear.Michael KaySaxonicaThe RFC says that Name must occur *1 times, where *1 is defined a . . . Read full entry »


Re: When maxOccurs=1 means an unbounded number ofoccurrences i

Posted 11/20/2017 11:13:34 PM

Hi Roger,I would disagree only with your initial interpretation: I think minOccurs=1 - I think 'exactly' trumps 'MAY'.Interested to see if the list thinks differently!TomOn Mon, 20 Nov 2017 at 15:29 Costello, Roger L. <costello@mitre.o . . . Read full entry »


When maxOccurs=1 means an unbounded number of occurrences is valid

Posted 11/20/2017 3:27:33 PM

Hi Folks, I am reading a Request for Comments (RFC). The RFC says that Name must occur *1 times, where *1 is defined as “Exactly one instance MAY be present.” I interpret that to mean minOccurs=0 and maxOccurs=1. So, this is valid because there is only one occurrence: <Name>Bo . . . Read full entry »


A better way to construct regular expressions in XML Schemas?

Posted 11/20/2017 12:35:03 PM

Hi Folks,   I have an XML Schema that needs some complex regular expressions. I have been using <!ENTITY> to construct the regexes. See below. I find it pretty hard to debug these regular expressions. Is there a better way to construct regexes?  /Roger   <?xml version=&q . . . Read full entry »


Re: A better way to construct regular expressions in XMLSchema

Posted 11/20/2017 9:18:56 AM

This seems like a validation requirement better suited to Schematron or maybe custom code. I can’t think of a better way to manage the composition of this kind of complex regex within the source of an XSD schema. To debug it I’d probably do the debugging outside of the XSD content, e.g., . . . Read full entry »


Re: @xml-base in subtrees included (a) via entity expansion, a

Posted 11/16/2017 11:47:08 PM

> > Given that you are looking aside at the location information in order to > identify the correct base URI in case (B), I suspect that you would be > able to calculate the correct base URI in case C if you were to set feature > http://apache.org/xml/features/xinclude/fixup-base-u . . . Read full entry »


Re: @xml-base in subtrees included (a) via entityexpansion, an

Posted 11/16/2017 8:38:38 PM

The problem is that xerces team is looking for volunteers to publish a release with bug fixes that are quite old, and won't probably be able to add required extension property. Have a look at this post : https://mail-archives.apache.org/mod_mbox/xerces-j-dev/201711.mbox/browser Christophe Le . . . Read full entry »


Re: @xml-base in subtrees included (a) via entity expansion, a

Posted 11/16/2017 11:36:21 AM

> On Nov 16, 2017, at 1:42 AM, Michael Kay <mike@saxonica.com> wrote: >> ... >> >> (3) Your upstream processor is, as required by the spec, leaving xml:base attributes in the top-level included element items of a . . . Read full entry »


Re: @xml-base in subtrees included (a) via entity expansion, a

Posted 11/16/2017 8:42:40 AM

> Thanks for studying the problem. > I am not entirely certain that I understand the problem. But I infer from your posing the question that: > > (1) Saxon and not your upstream XML processor is taking responsibility for calculating the base URIs elements. > (2) Your upstream p . . . Read full entry »


Re: How efficient are XML parsers?

Posted 11/16/2017 12:20:12 AM

So FlatBuffers is to JSON what EXI is to XML?On Wed, Nov 15, 2017 at 11:59 PM, Michael Kay <mike@saxonica.com> wrote:A classic example of how you can nearly always improve performance by sacrificing something else, e.g. simplicity, or conformance to standards, or p . . . Read full entry »


Re: @xml-base in subtrees included (a) via entityexpansion, an

Posted 11/15/2017 9:21:49 PM

Perhaps resort to a configuration parameter? Such a setting (say "external-fragment-base-uri") with two possible values (say, fragment-root|fragment-parent) representing the "external entity way" versus the "xs:include" way? The default value of such a setting should probably be fragment-root, as t . . . Read full entry »


@xml-base in subtrees included (a) via entity expansion, and (b) via xi:

Posted 11/15/2017 5:29:00 PM

Patrik Stellman raised a problem on the saxon-help list for which I would appreciate advice. When an external entity is expanded, and the entity in question contains an element with an xml-base attribute, the value of the @xml:base attribute is supposed to be resolved against the base URI of the e . . . Read full entry »


Re: @xml-base in subtrees included (a) via entity expansion, a

Posted 11/15/2017 4:56:36 PM

> On Nov 15, 2017, at 2:21 PM, Hans-Juergen Rennau <hrennau@yahoo.de> wrote: > > Perhaps resort to a configuration parameter? Such a setting (say "external-fragment-base-uri") with two possible values (say, fragmen . . . Read full entry »


Re: How efficient are XML parsers?

Posted 11/15/2017 4:46:00 PM

> > I'm still hoping that EXI for JS will be a player. > Is there an EXI parser written in JS? Michael Kay Saxonica . . . Read full entry »


Re: How efficient are XML parsers?

Posted 11/15/2017 12:59:59 PM

A classic example of how you can nearly always improve performance by sacrificing something else, e.g. simplicity, or conformance to standards, or potential for change, or ease of writing an application to produce or consume the data.Just don't do it unless (a) you know you need the extra performan . . . Read full entry »


Re: How efficient are XML parsers?

Posted 11/15/2017 12:34:46 PM

On Wed, 2017-11-15 at 16:46 +0000, Michael Kay wrote: > > > > I'm still hoping that EXI for JS will be a player. > > > > Is there an EXI parser written in JS? Exificient, see http://exificient.github.io/ Liam > > Michael Kay > Saxonica > -- Liam Quin, W . . . Read full entry »


Re: How efficient are XML parsers?

Posted 11/15/2017 12:26:50 PM

"A JSON parser needs to build a field mapping before it can start parsing" I don't see how this is a requirement. It certainly is one approach a JSON parser can take, and one many do take; but I don't think it's necessary by any means. On Wed, Nov 15, 2017 at 7:07 AM, Costello, Roger . . . Read full entry »


How efficient are XML parsers?

Posted 11/15/2017 12:07:07 PM

Hi Folks,   I recently read an article about Facebook dumping JSON due to inadequate performance of JSON parsers. See below. I wonder how XML parsers would stack up. Do you have numbers?   Parse a 20KB stream Facebook requirement: must not exceed the UI frame refresh interval of 16.6 . . . Read full entry »


Re: How efficient are XML parsers?

Posted 11/15/2017 11:37:36 AM

On Wed, 2017-11-15 at 12:07 +0000, Costello, Roger L. wrote: > Hi Folks, > > I recently read an article about Facebook dumping JSON due to > inadequate performance of JSON parsers. See below. I wonder how XML > parsers would stack up. Do you have numbers? The fastest XML parsers ar . . . Read full entry »


Re: How efficient are XML parsers?

Posted 11/15/2017 8:10:41 AM

If you don't make Facebook's solutions your solutions then you won't make Facebook's problems your problem.On Wed, Nov 15, 2017 at 7:07 AM, Costello, Roger L. <costello@mitre.org> wrote: Hi Folks,   I recently read an article . . . Read full entry »


Re: Need a language whiz: An XML Schema "specifies" howdata is

Posted 11/14/2017 1:26:00 PM

An XML Schema describes certain document structures and data typing. The parties specify when, how and how much of it should be used.A schema has no agency or will or knowledge of outcomes or intent. It reveals/reflects the relative power and attitudes of the various stakeholders.RegardsRickOn 14 N . . . Read full entry »


Re: Need a language whiz: An XML Schema "specifies" howdata is

Posted 11/14/2017 11:33:46 AM

On 11/14/2017 10:42 AM, Eliot Kimber wrote: At the risk of splitting hairs (ok, at the certain risk of splitting hairs), I don’t think a schema can be said to “describe how data is to be structured”. Well, I was trying to see how close to the language of Roger's proposed statements as I could g . . . Read full entry »


Re: Need a language whiz: An XML Schema "specifies" howdata is

Posted 11/14/2017 9:42:43 AM

At the risk of splitting hairs (ok, at the certain risk of splitting hairs), I don’t think a schema can be said to “describe how data is to be structured”. Any declarative schema is simply a set of constraints to which instances governed by the schema do or don’t conform. Any descriptive aspect i . . . Read full entry »


Re: Need a language whiz: An XML Schema "specifies" howdata is

Posted 11/14/2017 7:43:54 AM

Or, to put it in language similar to Roger's 8 statements, 0. A schema describes how data is to be structured, and may be used to constrain that structure. TomP On 11/13/2017 9:26 PM, Rick Jelliffe wrote: An XML Schema describes certain document structures and data typing. The parties specify w . . . Read full entry »


Need a language whiz: An XML Schema "specifies" how data is to bestruct

Posted 11/13/2017 1:13:53 PM

Hi Folks,   Which of the following is most accurate and why?   An XML Schema specifies how data is to be structured. An XML Schema describes how data is to be structured. An XML Schema states how data is to be structured. An XML Schema constrains the structure of data. An XML Schema . . . Read full entry »


Re: Need a language whiz: An XML Schema "specifies" howdata is

Posted 11/13/2017 10:24:04 AM

"Constrains".On Mon, Nov 13, 2017 at 8:13 AM, Costello, Roger L. <costello@mitre.org> wrote: Hi Folks,   Which of the following is most accurate and why?   An XML Schema specifies how data is to be structured. An XML Schema . . . Read full entry »


Re: Need a language whiz: An XML Schema "specifies" howdata is

Posted 11/13/2017 9:47:06 AM

+1 --Eliot Kimberhttp://contrext.com   From: John Cowan <johnwcowan@gmail.com>Date: Monday, November 13, 2017 at 9:24 AMTo: "Costello, Roger L." <costello@m...>Cc: "xml-dev@l..." <xml-d . . . Read full entry »


Best Practice: Enumerating a set of items in XML Schema

Posted 11/10/2017 2:03:19 PM

Issue: You have a set of items that you wish to enumerate in your XML Schema. Should the items be enumerated using the enumeration facet or the pattern facet?   At the bottom of this message is an example of both approaches. The first uses the enumeration facet. The second uses the pattern . . . Read full entry »


Re: Enumerating a set of values using the pattern facetversus

Posted 11/10/2017 8:36:22 AM

On 9 November 2017 at 02:01, Eliot Kimber <ekimber@contrext.com> wrote:In addition, the enumeration markup allows binding of annotations to each item, whereas the pattern can only take a single annotation for the entire pattern. I hadn& . . . Read full entry »


Enumerating a set of values using the pattern facet versus theenumeratio

Posted 11/8/2017 6:18:43 PM

Hi Folks,   Below are two XML Schema element declarations. Both enumerate a set of values for the <type> element. The first uses the pattern facet to enumerate the set of values. The second uses the enumeration facet. Is there a reason to prefer one over the other? Or, are they iden . . . Read full entry »


Re: Enumerating a set of values using the pattern facetversus

Posted 11/8/2017 2:31:26 PM

In addition, the enumeration markup allows binding of annotations to each item, whereas the pattern can only take a single annotation for the entire pattern. In general, I would prefer the enumeration here because it is more granular. This is from  schema I maintain as part of the DITA fo . . . Read full entry »


Re: Enumerating a set of values using the pattern facetversus

Posted 11/8/2017 2:28:05 PM

I would not expect grammar-driven editors to be able to use the pattern to guide authoring but to always be able to use the enumeration. Cheers, E. --Eliot Kimberhttp://contrext.com   From: "Costello, Roger L." <costello@&# . . . Read full entry »


Re: Enumerating a set of values using the pattern facetversus

Posted 11/8/2017 1:27:35 PM

I prefer the enumeration facet, since it does not care about special regex characters.On Wed, Nov 8, 2017 at 1:18 PM, Costello, Roger L. <costello@mitre.org> wrote: Hi Folks,   Below are two XML Schema element declarations. Both enumerate a set o . . . Read full entry »


[ANN] Release of XMLmind Word To XML v1.3

Posted 11/8/2017 10:25:01 AM

Release of XMLmind Word To XML v1.3. Highlights: - Many enhancements and bug fixes. - Now available as a macOS X native .dmg distribution including a private Java[tm] 1.8.0_152 runtime. More information in http://www.xmlmind.com/w2x/changes.html ---------------------------- What is XMLmind W . . . Read full entry »


Re: XPath expression which checks that all commas are escaped

Posted 11/6/2017 5:10:47 PM

You could also use an ebnf grammar with something like the rex parser in your schematron rule: see e.g. Kirk a’s paper from XML London this year*, or some of Stephen Pemberton’s talks that it references * video: https://m.youtube.com/watch?v=0hhquUmsKf0paper: p56 of http://xmllondon.com/2017/xmllon . . . Read full entry »


RE: XPath expression which checks that all commas areescaped

Posted 11/3/2017 9:10:40 PM

Michael Kay wrote: > I suspect that there must only be one > backslash before the comma: if there > are two ("\\,") then the comma is not > escaped because the "\\" represents > a real backslash. Wow! I had not thought about that. > not(matches(replace(., . . . Read full entry »


Re: XPath expression which checks that all commas are escaped

Posted 11/3/2017 9:02:41 PM

> On 3 Nov 2017, at 19:22, Dimitre Novatchev <dnovatchev@gmail.com> wrote: > >> not(contains(replace(., '\\,', ''), ',')) > > And, of course: > > not(matches(., '[^\\],')) > I don't think that detects an unescaped co . . . Read full entry »


XPath expression which checks that all commas are escaped

Posted 11/3/2017 6:40:53 PM

Hi Folks, Do you deal with Request for Comments (RFCs)? Then the following might come in handy someday. Note: Thanks to Martin Honnen for helping me with the XPath expression (below). Some RFCs (e.g., vCard) have this rule:             &nb . . . Read full entry »


Re: XPath expression which checks that all commas are escaped

Posted 11/3/2017 12:22:50 PM

> not(contains(replace(., '\\,', ''), ',')) And, of course: not(matches(., '[^\\],')) Cheers, Dimitre On Fri, Nov 3, 2017 at 12:14 PM, Dimitre Novatchev <dnovatchev@gmail.com> wrote: > not(contains(replace(., '\\,', ''), ',')) > > On Fri, . . . Read full entry »


Re: XPath expression which checks that all commas are escaped

Posted 11/3/2017 12:14:51 PM

not(contains(replace(., '\\,', ''), ',')) On Fri, Nov 3, 2017 at 11:40 AM, Costello, Roger L. <costello@mitre.org> wrote: > Hi Folks, > > Do you deal with Request for Comments (RFCs)? Then the following might come > . . . Read full entry »


Expat 2.2.5 released

Posted 11/1/2017 8:01:57 PM

Hi everyone, Expat 2.2.5 has been released. It fixes miscellaneous bugs. For more details, please check the changelog [1]. If you maintain Expat packaging or a bundled version of Expat somewhere, please update it to 2.2.5. Thanks! Best Sebastian [1] https://github.com/libexpat/libexpat/blo . . . Read full entry »


Re: Is this a good use of XML: XML-formatted images?

Posted 10/30/2017 12:02:04 PM

On Sun, 29 Oct 2017 13:01:22 +0000, "Costello, Roger L." <costello@mitre.org> wrote: | Thoughts? RFC 3252. . . . Read full entry »


Re: Is this a good use of XML: XML-formatted images?

Posted 10/29/2017 5:51:08 PM

On 29 Oct 2017, at 13:01, Costello, Roger L. <costello@mitre.org> wrote: Hi Folks,JPEG/JFIF, GIF, PNG, BMP are, as you know, binary data formats for images.Why are there no XML-formatted images? Is XML not a good format for images? If it’s not, why . . . Read full entry »


Re: Is this a good use of XML: XML-formatted images?

Posted 10/29/2017 3:00:56 PM

Raster images are  one of the types types of image elements SVG supportshttps://www.w3.org/TR/SVG11/render.html#TypesOfGraphicsElementsOn Sun, Oct 29, 2017 at 10:56 AM Costello, Roger L. <costello@mitre.org> wrote: Thanks Timothy.   I was thinkin . . . Read full entry »


RE: Is this a good use of XML: XML-formatted images?

Posted 10/29/2017 2:55:57 PM

Thanks Timothy.   I was thinking bitmapped images, not vector images.   /Roger   From: Timothy Cook [mailto:timothywayne.cook@gmail.com] Sent: Sunday, October 29, 2017 10:25 AM To: Cos . . . Read full entry »


Is this a good use of XML: XML-formatted images?

Posted 10/29/2017 1:01:22 PM

Hi Folks, JPEG/JFIF, GIF, PNG, BMP are, as you know, binary data formats for images. Why are there no XML-formatted images? Is XML not a good format for images? If it’s not, why not? I’ll speculate: perhaps the reason is simply that XML is too verbose. Is that the reason? Are there . . . Read full entry »


Re: Is this a good use of XML: XML-formatted images?

Posted 10/29/2017 12:25:29 PM

Maybe you have heard of this?"This specification defines the features and syntax for Scalable Vector Graphics (SVG) Version 1.1, a modularized language for describing two-dimensional vector and mixed vector/raster graphics in XML."https://www.w3.org/TR/SVG11/On Sun, Oct 29, 2017 at 11:01 . . . Read full entry »


Re: XML-formatted data can be incrementally enriched with more

Posted 10/28/2017 8:48:43 PM

The ability to extend a data format while retaining backwards compatibility is important, and was no doubt one of the objectives of the design of XML.But I don't think that's primarily what the "extensibility" property is about. The "X" in "XML" is there primarily to contrast with HTML, and it refe . . . Read full entry »


RE: XML-formatted data can be incrementally enriched with more andmore i

Posted 10/28/2017 7:10:23 PM

Hi Folks,   Thank you (again) for your outstanding responses.   I found your responses surprising. In a nutshell, you told me that many, if not most, data formats – both text and binary – are extensible.   XML, it seems to me, has always made it a point to advertise t . . . Read full entry »


Re: XML-formatted data can be incrementally enriched withmore

Posted 10/28/2017 1:38:34 PM

Hi Roger, > Lesson Learned: XML is the only data format that supports incremental enrichment. At first I thought that what you describe is related to strong vs. weak vs. no typing, late binding and so on It is related to some extent, however extensibility can be achieved in a standard way ev . . . Read full entry »


Re: XML-formatted data can be incrementally enriched with more

Posted 10/27/2017 7:46:23 PM

You can do it with CSV: just add fields to the right-hand end of a line P On 27 October 2017 14:33:59 Michael Kay <mike@saxonica.com> wrote: Do you agree with those assertions? No. We were doing this with binary type-length-value formats . . . Read full entry »


Re: XML-formatted data can be incrementally enriched with more

Posted 10/27/2017 2:31:36 PM

Do you agree with those assertions? No. We were doing this with binary type-length-value formats 50 years ago.Michael KaySaxonica . . . Read full entry »


XML-formatted data can be incrementally enriched with more and moreinfor

Posted 10/27/2017 12:18:08 PM

Hi Folks,   Assertion: The XML data format is the only data format that lends itself to incremental enrichment.   Assertion: If data is to traverse through a workflow and you want the data to be incrementally enriched along the way, then you must format the data as XML.   Do yo . . . Read full entry »


Re: XML-formatted data can be incrementally enriched withmore

Posted 10/27/2017 8:45:43 AM

On Fri, Oct 27, 2017 at 8:18 AM, Costello, Roger L. <costello@mitre.org> wrote: Suppose the data is binary. For example, suppose the data is a JPEG file. How would you incrementally enrich JPEG files? How would you bundle together mu . . . Read full entry »


Re: DSDL.org

Posted 10/25/2017 10:01:05 PM

The webarchive of the original DSDL.org is available at https://web.archive.org/web/20160122193526/http://dsdl.orgRegards,Makoto2017/10/25 午後6:38 "yamahito" <yamahito@gmail.com>:I note that the above website is now a norwegian bl . . . Read full entry »


DSDL.org

Posted 10/25/2017 9:38:17 AM

I note that the above website is now a norwegian blog extolling the values of playing online slots.Does/will DSDL have a new home?The webmaster for nvdl.org might also like to know so that he can edit/remove the link on that page. . . . Read full entry »


[ANN] XML Prague 2018 - Call for Proposals

Posted 10/23/2017 2:00:58 PM

Hello, we are glad to announce that call for proposals for XML Prague 2018 conference is open now. The XML Prague conference will include two full days of single track sessions, as well as a multitrack unconference day. The conference is held on the Thursday, Friday and Saturday (February 8-10, . . . Read full entry »


[ANN] Release of XMLmind XSL-FO Converter v5.4.6

Posted 10/23/2017 10:09:19 AM

Release of XMLmind XSL-FO Converter v5.4.6. Highlights: - XMLmind XSL Utility and XMLmind XSL Server can now be used to convert DocBook v5.1 assemblies to PDF, RTF, WML, DOCX and ODT. - Updated some software components in XMLmind XSL Utility and XMLmind XSL Server. More information in http://w . . . Read full entry »


Re: [ANN] XML Prague 2018 - Call for Proposals

Posted 10/22/2017 8:26:15 PM

On 22/10/17 15:00, Jirka Kosek wrote: > we are glad to announce that call for proposals for XML Prague 2018 > conference is open now. I have updated the entry in the FAQ at http://xml.silmaril.ie/moreinfo.html#events ///Peter Attachment: signature.asc Description: OpenPGP digital signatur . . . Read full entry »


[ANN] XML Prague 2018 - Call for Proposals

Posted 10/22/2017 4:00:50 PM

Hello, we are glad to announce that call for proposals for XML Prague 2018 conference is open now. The XML Prague conference will include two full days of single track sessions, as well as a multitrack unconference day. The conference is held on the Thursday, Friday and Saturday (February 8-10, . . . Read full entry »


RE: NVDL & ISO Schematron?

Posted 10/18/2017 12:17:16 PM

Hi,   We use Jing to do NVDL and Schematron validation. There is basic ISO Schematron support but there are things you cannot do – for instance if your Schematron uses queryBinding="xslt2" and contains XSL elements, it will not work. We forked the project to add the ful . . . Read full entry »


editors and schemas

Posted 10/18/2017 11:29:30 AM

This might interest the document-centric folks here: ProseMirror: A toolkit for building rich-text editors on the Web http://prosemirror.net/ In particular, the sections describing ProseMirror's schemas and transformations might seem familiar, but not very familiar: http://prosemirror.net/docs/ . . . Read full entry »


NVDL & ISO Schematron?

Posted 10/18/2017 10:34:42 AM

What would people currently recommend to do NVDL validation including standalone schematron?It looks like the current version of Jing from github has some degree of support, but documentation doesn’t mention it explicitly; can anyone enlighten as to what support is offered, or if there are any alte . . . Read full entry »


Re: PE's in internal subset with non-validating processors

Posted 10/17/2017 11:48:37 AM

Parameter entities can also be declared in an internal declaration, right?  That could be thought of as parsing rather than validation, IMO...On Mon, 16 Oct 2017 at 01:25 David John Burrowes <biede0@gmail.com> wrote:Thank you John Cowan a . . . Read full entry »


Re: PE's in internal subset with non-validating processors

Posted 10/17/2017 4:54:02 AM

> Parameter entities can also be declared in an internal declaration, right? Yes.> That could be thought of as parsing rather than validation, IMO…I’m not quite sure i understand what you mean.  But a non-validating parser can indeed parse a PE declaration if it chooses, and do noth . . . Read full entry »


Re: PE's in internal subset with non-validating processors

Posted 10/15/2017 6:12:15 PM

On Sun, Oct 15, 2017 at 3:18 PM, David John Burrowes <biede0@gmail.com> wrote:The phrase "and in any parameter entity that they read” is what is puzzling me.  Yes, it probably should have been "any parameter entity that they choose to rea . . . Read full entry »


Re: PE's in internal subset with non-validating processors

Posted 10/15/2017 5:25:29 PM

Thank you John Cowan and Tim Bray for your swift responses!DavidOn Oct 15, 2017, at 3:12 PM, John Cowan <johnwcowan@gmail.com> wrote:On Sun, Oct 15, 2017 at 3:18 PM, David John Burrowes <biede0@g...> wrote:The phrase "and in any parameter entity that they re . . . Read full entry »


Re: PE's in internal subset with non-validating processors

Posted 10/15/2017 1:37:58 PM

We'll, even a non-validating processor *might* decide to read parameter entities. Nothing forbids it.On Oct 15, 2017 12:18 PM, "David John Burrowes" <biede0@gmail.com> wrote:I have a question about a passage in section 5.1 of the XML standard that . . . Read full entry »


PE's in internal subset with non-validating processors

Posted 10/15/2017 12:18:45 PM

I have a question about a passage in section 5.1 of the XML standard that I can’t quite wrap my head around:Non-validating processors are required to check only the document entity, including the entire internal DTD subset, for well-formedness. [Definition: While they are not required to check . . . Read full entry »


For the mathematically inclined.

Posted 10/10/2017 1:33:17 PM

https://www.youtube.com/watch?v=OyfBQmvr2Hc The mention of tree processing in Schema alongside DSSSL made me smile. Enjoy -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk . . . Read full entry »


Re: For the mathematically inclined.

Posted 10/10/2017 8:37:40 AM

I've watched the first half last night. The math must be in the second half.On Tue, Oct 10, 2017 at 8:33 AM, Dave Pawson <dave.pawson@gmail.com> wrote:https://www.youtube.com/watch?v=OyfBQmvr2Hc The mention of tree processing . . . Read full entry »


Shoehorning (was RE: Re: XML vs JSON)

Posted 10/6/2017 11:39:00 AM

While we are on the subject of shoehorning (facades/views to allow use of one technology that is weak in some area with a different technology that is strong in the same area): http://schematron.com/2017/08/can-i-assert-patterns-in-java-objects-with-schematron/RegardsRickOn 6 Oct 2017 09:57, " . . . Read full entry »


RE: Re: XML vs JSON

Posted 10/5/2017 3:57:18 PM

Hi, In addition, it may be worth mentioning that a draft version of WoT (Web of Things) Thing Description [1]specification also attempts to define JSON-schema to XML-schema mapping, based on the JSON-XML mapping defined by EXI. One consequence of this is one will be able to validate JSON . . . Read full entry »


Re: XML vs JSON

Posted 10/5/2017 11:27:40 AM

I think one can probably prove that no mapping JSON to/from XML will satisfy all the following objectives:(1) Handles any JSON document(2) Handles any XML document(3) is round-trippable (to-json(to-xml(J)) = J, and to-xml(to-json(X)) = X).and the more you try and get close to this, the more you sac . . . Read full entry »


AW: Re: XML vs JSON

Posted 10/5/2017 9:07:08 AM

Hi, Many of these JSON<->XML tools provide a good coverage for some XML/JSON constructs but not for all. The tool [1] you pointed to fails for example when converting the following "simple" JSON example to XML. { "a number": 1 } The reason is rather simple. The qualifi . . . Read full entry »


Re: XML Schema complex type restriction

Posted 10/2/2017 8:18:05 PM

> Requiring the assertion to be true ONLY for content that satisfies the grammar would be a ridiculous burden on schema authors. In fact, it has been proven untractable for XML Schema [1], but not for DTDs [2]: [1]: http://www.cs.toronto.edu/tox/papers/xsc.pdf "What's Hard about XML S . . . Read full entry »


Re: XML Schema complex type restriction

Posted 10/2/2017 7:01:24 PM

On 29 September 2017 at 14:09, Michael Kay <mike@saxonica.com> wrote:More realistically, imagine you have a complex type whose content model is <element name="para" minOccurs="0" maxOccurs="unbounded&q . . . Read full entry »


XDM and semantic identity

Posted 9/29/2017 10:46:01 PM

Dear colleagues,I have just spent indefinite time staring at a single sentence from the "National Information Exchange Model Naming and Design Rules", section 5.4:"The properties of an object may be spread across several XML elements that have the same identifier." [1]The significance of this sent . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/29/2017 7:06:31 PM

(Doh.  I meant of course a datatype facet like minInclusive and maxInclusive. )On Fri, Sep 29, 2017 at 7:03 PM, Rick Jelliffe <rjelliffe@allette.com.au> wrote:> Requiring the assertion to be true ONLY for content that satisfies the gram . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/29/2017 7:03:36 PM

> Requiring the assertion to be true ONLY for content that satisfies the grammar would be a ridiculous burden on schema authors.And it is not the way that other datatype facet work either:  minOccurs allows values that maxOccurs excludes; the type is the intersection of the facets. On Fri, Sep 2 . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/29/2017 4:39:34 PM

Oops, my example made no sense. Here is a better stab:For example, if you have an element of XSD type Integer and the assertion constrains the element to be either the text "MentalSpasm" or the number 32 (XSD assertion tests are on the typed document), the type is constrained to be the n . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/29/2017 11:18:03 AM

On 28 September 2017 at 21:07, Rick Jelliffe <rjelliffe@allette.com.au> wrote:I think assertions are always subsumptive in your terminology.  Even if they appear to allow otherwise.For example, if you have an element of type Integer and . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/29/2017 9:39:38 AM

More realistically, imagine you have a complex type whose content model is <element name="para" minOccurs="0" maxOccurs="unbounded"/>, and the assertion says test="exists(para)", then the assertion on its own would allow<para/><fig/><fig/>which the complex type's grammar doe . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/29/2017 1:37:32 AM

I think assertions are always subsumptive in your terminology.  Even if they appear to allow otherwise.For example, if you have an element of type Integer and the assertion constrains the element to be either the text "54" or the number 32, the type is constrained to be the number 32.  Th . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/28/2017 6:07:59 PM

On 25 September 2017 at 19:50, Michael Kay <mike@saxonica.com> wrote:Both these problems can be addressed by defining the restrictions using assertions. I think this is how I would normally do it in XSD 1.1.Here's the syntax of complex type r . . . Read full entry »


Re: Missing character in PDF of Schematron 2nd edition?

Posted 9/28/2017 4:00:17 PM

To follow up, the previous editor advises regarding the removal of s6.3 that it was felt that the standard describes a language, rather than a processor.Hope that helps,AndrewOn 27 September 2017 at 15:20, Andrew Sales <andrew@andrewsales.com> wrote:Thank you bot . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/28/2017 12:50:45 PM

On Tue, Sep 26, 2017 at 4:50 PM, Webb Roberts <webb@webbroberts.com> wrote:That said, I feel that JSON-LD has really threaded the needle between JSON and RDF, turning something that's fairly underspecified into something incredibly useful. We . . . Read full entry »


Re: Missing character in PDF of Schematron 2nd edition?

Posted 9/27/2017 3:20:16 PM

Thank you both -- I will add this to my list.I'm not sure why s6.3 was removed, will ask the previous editor.Andrew(Project editor, Schematron)On 27 September 2017 at 14:48, G. Ken Holman <gkholman@cranesoftwrights.com> wrote: . . . Read full entry »


Missing character in PDF of Schematron 2nd edition?

Posted 9/27/2017 2:10:21 PM

Hello everbody, Dunno if this is the right place to complain, but I think that the PDF of Schematron's second edition might contain an misleading error. I seems to me that the character used for signifying the use of parameter of an abstract pattern on page 11, in Annex C, Annex H, Annex J, and A . . . Read full entry »


Re: Missing character in PDF of Schematron 2nd edition?

Posted 9/27/2017 9:48:12 AM

In the latest version of the ISO/IEC specification currently being voted on this text reads: "prefix the name with the character $." ... in Annexes C, H and J. The dollar sign remains absent in Annexes L and M and so warrants an editorial comment. Well spotted! . . . . . . . Ken . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/27/2017 7:26:23 AM

Thank you very much, Webb - I am glad to have these answers, which, taken together with your links and earlier explanations provide food for weeks of thoughts and studies.This thread started with concerns about XSD's mechanism of restriction, xs:restriction. I would like to make an attempt and rela . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/26/2017 4:50:00 PM

Hans-Jürgen, thank you for your kind comments.On 2017-09-25, at 18:07:04, Hans-Juergen Rennau <hrennau@yahoo.de> wrote:is NIEM's being based on RDF a concept which had been present from the very beginning of NIEM, or had it been gradu . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/26/2017 3:52:54 PM

XSD misses at least five important mechanisms needed for practical schemas.First, it does not allow parameterization: i.e. parameters supplied that can be used to create cohesive subsets.  Interestingly, one of the extensions (pushed by mathematician Dave Peterson IIRC) mooted for SGML in the early . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/26/2017 10:17:35 AM

On 25 September 2017 at 19:50, Michael Kay <mike@saxonica.com> wrote:Firstly, you have to describe the restricted content model rather than describing the differences (which means the parts that are retained are described in more than one place.)I agree with t . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/26/2017 12:07:02 AM

I'd like to share my experience here with the ISO 20012 schema to represent financial transactions as used in the upcoming EU MiFIR reporting process. There's no question the schema was competently designed by domain experts, and also from a markup design PoV apart from using generated type names I . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/25/2017 10:07:04 PM

My cordial thanks for this excellent summary of the NIEM approach, Webb. I had read parts of it before, but your description pulled everything together as to give it a coherence of concept which I had not been aware of, and which impresses me deeply. Would you like to answer some of the following q . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/25/2017 9:47:34 PM

I find the idea of parameterized schemas very interesting, it had never occurred to me. But I think it does not scale out for very complex schemas where the burden of having to anticipate all needs of variation could become overwhelming.Concerning the tiny vocabulary, your scepsis is perhaps based . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/25/2017 6:01:04 PM

You are forced to use a started kitchen sink schema because is standard and therefore will make life easier.However, most of the elements and attributes are things you dont need. And you know the full schema will blow out implementatuon and confuse testing and anyway YAGNI. So you will make profile . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/25/2017 3:20:05 PM

I think there are two main problems with complex type restriction as defined in XSD.Firstly, you have to describe the restricted content model rather than describing the differences (which means the parts that are retained are described in more than one place.)Secondly, what I call "deep restrictio . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/25/2017 1:47:04 PM

On 2017-09-25, at 08:47:59, Hans-Juergen Rennau <hrennau@yahoo.de> wrote:how does NIEM treat this question, where restriction of extreme generality should be extremely important?The National Information Exchange Model (NIEM) provides a set of XM . . . Read full entry »


XML Schema complex type restriction

Posted 9/25/2017 12:57:03 PM

Hello list,    Can anyone come up with a useful business use case, to use XML Schema complex type restriction?-- Regards,Mukul Gandhi . . . Read full entry »


Re: XML Schema complex type restriction

Posted 9/25/2017 12:47:59 PM

"The trouble with restriction is not knowing exactly what the differences are or why."This is an interesting point. (And I've always avoided restriction of complex types, instinctively.)Of course it would, in principle, be very easy to specify a restriction step explicitly, using a tiny vocabulary . . . Read full entry »


Re: XML vs JSON

Posted 9/22/2017 11:38:23 AM

With respect to this thread, I could see that people have written tools to convert between XML and JSON (both ways). This seems to be nice: www.utilities-online.info/xmltojson/On 1 August 2017 at 17:04, Mukul Gandhi <gandhi.mukul@gmail.com> wro . . . Read full entry »


[ANN] Release of XMLmind Ebook Compiler v1.0.1

Posted 9/18/2017 10:19:36 AM

XMLmind Ebook Compiler v1.0.1 features a few minor enhancements. More info in http://www.xmlmind.com/ebookc/changes.html ------------------------------- What is XMLmind Ebook Compiler? ------------------------------- XMLmind Ebook Compiler (ebookc for short) is a free, open source tool which . . . Read full entry »


RE: Seek your help in compiling a list of "facts about base64-encodeddat

Posted 9/16/2017 8:03:36 PM

Thank you David and Eliot. Outstanding comments!   I updated the list, incorporating the comments from David and Eliot. See below. Does anyone else have comments?  /Roger   Here are some things to know about base64:   1.       Base64 encoding is . . . Read full entry »


Re: RE: Seek your help in compiling a list of "facts aboutbase

Posted 9/16/2017 7:09:21 PM

> I would also be very interested to hear your thoughts on 17. If you don't mind, would you post your thoughts to the list, please? well, as you ask... On 16 September 2017 at 14:09, Costello, Roger L. <costello@mitre.org> wrote: > Hi Folks, > . . . Read full entry »


Re: RE: Seek your help in compiling a list of "facts aboutbase

Posted 9/16/2017 3:10:44 PM

I'm not sure agree with the previous 17 either but this one in particular I think needs comment > 18. The size of base64-encoded data is roughly 4/3 the size of the original data. The link you gives shows that there are 4/3 as many output characters as input bytes. The relative size of the . . . Read full entry »


Re: RE: Seek your help in compiling a list of "facts aboutbase

Posted 9/16/2017 2:00:16 PM

As regards the need for more decoding for base64 data: I think the point Roger’s trying to make is that from the standpoint of communicating data to a system that is expected to be able to process it in some way, if you provide a stream of bytes that is a JPEG image then the consumer of that strea . . . Read full entry »


RE: Seek your help in compiling a list of "facts about base64-encodeddat

Posted 9/16/2017 1:09:01 PM

Hi Folks,   Thank you for your excellent comments. I added them to my list. Below is the updated list. Is it missing anything?  /Roger   Here are some things to know about base64:   1.       Base64 encoding is specified in RFC 4648. 2. &nbs . . . Read full entry »


Fwd: Re: A XSD regex to allow a QName in Clark form

Posted 9/16/2017 12:50:29 AM

---------- Forwarded message ----------From: "Rick Jelliffe" <rjelliffe@allette.com.au>Date: 15 Sep 2017 11:34 AMSubject: Re: A XSD regex to allow a QName in Clark formTo: "Christophe Marchand" <cmarchand@o...>Cc: . . . Read full entry »


Re: What does it mean to lexically distinguish significantand

Posted 9/15/2017 6:59:32 PM

On Wed, Sep 13, 2017 at 7:45 AM, Michael Kay <mike@saxonica.com> wrote:What I meant by the phrase is that when you see <a>   <b/> </a> there is nothing within the document itself to tell you whether the whitespace is signifi . . . Read full entry »


Re: Seek your help in compiling a list of "facts aboutbase64-e

Posted 9/14/2017 7:22:39 PM

On Thu, 14 Sep 2017 13:09:54 +0000 "Costello, Roger L." <costello@mitre.org> wrote: > Hi Folks, > > > Is base64 encoded data good? Bad? A security risk? A simple mechanism for > data privacy? It is probably all of those. . . . Read full entry »


Re: Seek your help in compiling a list of "facts aboutbase64-e

Posted 9/14/2017 7:10:02 PM

On Thu, Sep 14, 2017 at 9:09 AM, Costello, Roger L. <costello@mitre.org> wrote:> 1.       Base64-encoded data is plain text, consisting of these 64 ASCII characters: a-z, A-Z, 0-9, +, / and the equals symbol ( = ).As a common extension, . . . Read full entry »


Re: Seek your help in compiling a list of "facts about base64-

Posted 9/14/2017 6:17:25 PM

On 14 Sep 2017, at 14:09, Costello, Roger L. <costello@mitre.org> wrote: Hi Folks,  Is base64 encoded data good? Bad? I would suggest that the goodness or badness of a piece of data is completely independent of its encoding.The choic . . . Read full entry »


Seek your help in compiling a list of "facts about base64-encodeddata"

Posted 9/14/2017 1:09:54 PM

Hi Folks,   Is base64 encoded data good? Bad? A security risk? A simple mechanism for data privacy? It is probably all of those. Below I have attempted to objectively state the facts. Am I missing any facts?  /Roger   1.       Base64-encoded data is . . . Read full entry »


Re: A XSD regex to allow a QName in Clark form

Posted 9/14/2017 11:17:38 AM

As I use this value to create a new net.sf.saxon.s9api.QName, via constructor and factory methods, I'm gonna check this. Thanks a lot for this precises explanations. Best regards, Christophe Le 2017-09-14 11:04, Michael Kay a écrit : Some more precise terminology might help. Clark notation is . . . Read full entry »


Re: Another way to present XML data

Posted 9/14/2017 10:09:18 AM

I totally agree with all what you say. Sorry for having been too assertive.And I never said that mixed content was an edge case. I just say that it's not the case I address in my proposal.Jean-FrançoisDe: "yamahito" <yamahito@gmail.com>À: xml-dev@l.. . . . Read full entry »


Re: A XSD regex to allow a QName in Clark form

Posted 9/14/2017 10:04:26 AM

Some more precise terminology might help.Clark notation is described here:http://www.jclark.com/xml/xmlns.htmand uses the notation "{uri}local" for a name that is in a namespace. That page doesn't define a corresponding notation for a name in no namespace, but it would be wise to accept either "loc . . . Read full entry »


Re: A XSD regex to allow a QName in Clark form

Posted 9/14/2017 10:01:25 AM

It's the one I've tried, without success. ... Best, Tom. Le 2017-09-14 09:56, yamahito a écrit : Try <xs:pattern value="Q?\{[^\}]+\}[^:\{\}]+"/> ? On Thu, 14 Sep 2017 at 7:55 am, <cmarchand@oxiane.com> wrote: Hi ! I'm not . . . Read full entry »


A XSD regex to allow a QName in Clark form

Posted 9/14/2017 8:54:51 AM

Hi ! I'm not a regex killer, especially when regex flavour is not the one I use on my linux box... In a schema, I need a simple type that allows a QName, written either "prefix:localName" or in ClarkeForm "Q{nsUri}localName", or in the-last-one-I-cant-remember-the-name &quo . . . Read full entry »


Re: Another way to present XML data

Posted 9/14/2017 8:52:25 AM

> As David alludes, this shows the lie of JSON being more human readable (at least as a general rule).It's true that JSON is more human readable than XML for tree-structured data.Not recognizing that will just help JSON getting more users.I think the true strength of XML lies in its DOM.My . . . Read full entry »


Re: A XSD regex to allow a QName in Clark form

Posted 9/14/2017 7:56:12 AM

Try<xs:pattern value="Q?\{[^\}]+\}[^:\{\}]+"/>?On Thu, 14 Sep 2017 at 7:55 am, <cmarchand@oxiane.com> wrote:Hi ! I'm not a regex killer, especially when regex flavour is not the one I use on my linux box... In a schema, I need a simp . . . Read full entry »


Re: Another way to present XML data

Posted 9/14/2017 7:52:52 AM

> It's true that JSON is more human readable than XML for tree-structured data.With respect, that is an opinion presented as a fact without any evidence: you have every right to feel that way, but no right to expect everyone to agree with you.XML is, for me, primarily a markup language, as i . . . Read full entry »


Re: Another way to present XML data

Posted 9/13/2017 8:39:37 PM

> p {u underlined ;i italic}As David alludes, this shows the lie of JSON being more human readable (at least as a general rule).> Sebastian was shocked that I would expect different results to be passed into the application depending on whether a DTD/Schema as used or notThis surprises me: su . . . Read full entry »


Re: Another way to present XML data

Posted 9/13/2017 7:55:05 PM

Maybe use a stylesheet?On Wed, Sep 13, 2017 at 7:31 PM, yamahito <yamahito@gmail.com> wrote:The case I often find processors screwing up is:<p><u>underlined</u> <i>italic</i></p>Note the significant whitespa . . . Read full entry »


Re: Another way to present XML data

Posted 9/13/2017 5:42:55 PM

On 13 September 2017 11:32:10 yamahito <yamahito@gmail.com> wrote: > The case I often find processors screwing up is: > > <p><u>underlined</u> <i>italic</i></p> > > Note the significant whitesp . . . Read full entry »


Re: Another way to present XML data

Posted 9/13/2017 2:53:01 PM

> The case I often find processors screwing up is...sml.tcl passes that test easily :-)C:\JFL\Temp>"echo.exe" "<p><u>underlined</u> <i>italic</i></p>"<p><u>underlined</u> <i>italic</i></p>C:\JFL\Temp>"echo.exe" "<p& . . . Read full entry »


Re: Another way to present XML data

Posted 9/13/2017 2:16:44 PM

sml.tcl passes that test easily :-) C:\JFL\Temp>"echo.exe" "<p><u>underlined</u> <i>italic</i></p>" <p><u>underlined</u> <i>italic</i></p> C:\JFL\Temp>"echo.exe" "<p><u>und . . . Read full entry »


Re: What does it mean to lexically distinguish significant and

Posted 9/13/2017 12:45:17 PM

What I meant by the phrase is that when you see <a> <b/> </a> there is nothing within the document itself to tell you whether the whitespace is significant; you typically need external information (e.g. a schema or DTD, or just outside knowledge) to know. One can envisage oth . . . Read full entry »


Re: What does it mean to lexically distinguish significantand

Posted 9/13/2017 12:43:33 PM

It means that you can't tell from xml syntax as specified whether <x><a>z</a><b>z</b></x> means the same as <x> <a>z</a> <b>z</b> </x> you could assume it's always significant (which would never allow you to re-indent o . . . Read full entry »


Re: Another way to present XML data

Posted 9/13/2017 11:52:46 AM

For background on whitespace and mixed content in text encodings such as TEI, see https://wiki.tei-c.org/index.php/XML_Whitespace. -- On 9/13/2017 11:42 AM, Peter Flynn wrote: On 13 Sep . . . Read full entry »


What does it mean to lexically distinguish significant andinsignificant

Posted 9/13/2017 11:33:45 AM

Michael Kay wrote: > significant and insignificant whitespace > can't be lexically distinguished. What does that mean? What does it mean to "lexically distinguish" significant and insignificant whitespace? /Roger . . . Read full entry »


Re: Another way to present XML data

Posted 9/13/2017 9:31:12 AM

The case I often find processors screwing up is:<p><u>underlined</u> <i>italic</i></p>Note the significant whitespace between the <u/> and <i/>On Tue, 12 Sep 2017 at 21:45 Michael Kay <mike@saxonica.com> wrote:On 12 Sep 2 . . . Read full entry »


Re: Another way to present XML data

Posted 9/12/2017 10:14:39 PM

As I already answered to Michael Kay, this is HTML.My conversion script will work with XHTML (The initial X is important), but this is not the intended use case.It will really be useful with XML-based languages and databases, that usually do not use mixed data and tags like HTML.Google's KML is an . . . Read full entry »


Re: Another way to present XML data

Posted 9/12/2017 9:45:38 PM

On 12 Sep 2017, at 21:14, jf.larvoire@free.fr wrote:As I already answered to Michael Kay, this is HTML.No, this is XML.Google's KML is an excellent example, as are XSLT, SOAP, SVG, etc...Of those three examples, two use mixed content:XSLT:<xsl:template match="ci . . . Read full entry »


Re: Another way to present XML data

Posted 9/12/2017 8:56:47 PM

Maybe something like this : <p>This is a <b>bold</b> text with <u>underlined <i>italic</i> content</u> in.</p> Best, Christophe Le 12/09/2017 à 18:32, jf.lar . . . Read full entry »


Re: Another way to present XML data

Posted 9/12/2017 8:06:26 PM

The benefit is that the transformation is generic, and will work the same way with any XML file, without changing anything to its DOM structure.In your case the DOM changes, and you'll have trouble if attributes have the same name as inner elements, etc.Jean-FrançoisDe: "Ihe Onwuka" <ihe . . . Read full entry »


Re: Another way to present XML data

Posted 9/12/2017 8:00:26 PM

I see.What you call mixed content is basically what you have in HTML files.My script will convert XHTML reversibly, including with lots of complex mixed contents cases. (I've tested it successfully with the XML specification itself :-) )But it will not convert plain HTML reversibly.Also my SML form . . . Read full entry »


Re: Another way to present XML data

Posted 9/12/2017 6:32:29 PM

No, white spaces are significant, and are preserved by my conversion script.I don't really know what you mean by mixed contents.Please show me an example of mixed content that is not converted correctly.Jean-FrançoisDe: "Michael Kay" <mike@saxonica.com> . . . Read full entry »


Re: Another way to present XML data

Posted 9/12/2017 6:02:03 PM

I haven't tried the conversion tool, I've only been looking in the spec.Mixed content is essentially an element node that has both element and text node children.You convert <formats>    <format name="XML"> <author>W3C</author>toformats {    format n . . . Read full entry »


Re: Another way to present XML data

Posted 9/12/2017 4:49:14 PM

I actually came across this proposal a couple of months ago when trying to do something similar myself - before I found it I had in fact reinvented a lot of this, with minor variations.The thing I was finding most difficult was mixed content, and I don't think SML has really thought that through ei . . . Read full entry »


Another way to present XML data

Posted 9/12/2017 4:31:28 PM

Following last month's thread about the relative merits of XML and JSON, I think there's a way to get the advantages of both:Instead of creating yet another data format incompatible with XML, it's actually possible to transform _reversibly_ XML into something that is as human-friendly as JSON.This . . . Read full entry »


Re: Another way to present XML data

Posted 9/12/2017 1:58:04 PM

What value (or readability) does this offer over and above a scheme that simply transformed elements designated as atomic to attributes.<formats>    <format name="XML"             author="W3C"            standardized="2008"     advantage="Can define forma . . . Read full entry »


[ANN] Release of XMLmind XML Editor 7.5

Posted 9/7/2017 11:24:08 AM

Release of XMLmind XML Editor 7.5 XMLmind XHTML Editor (and of course its superset: XMLmind XML Editor) can now be used to turn a set of HTML pages into a self-contained ebook (EPUB, Web Help, PDF, DOCX, etc). More information in "Creating an ebook out of a set of HTML pages"[1]. Thi . . . Read full entry »


[ANN] New Open Source XMLmind Ebook Compiler

Posted 8/31/2017 10:41:11 AM

XMLmind Ebook Compiler (ebookc for short) is a free, open source tool which can turn a set of HTML pages into a self-contained ebook. Supported output formats are: EPUB, Web Help, PDF, RTF, WML, DOCX (MS-Word) and ODT (OpenOffice/LibreOffice). Ebookc features: - Topic-oriented like DITA and Do . . . Read full entry »


Re: Modern talking

Posted 8/30/2017 5:58:46 PM

Dear Reichardt, XQuery is different from XSLT. Of course everything depends on your specific needs/tasks, but probably you could solve most of them with, for example, BaseX XQuery: it provides extensions to the W3C recommendations, which make it a general-purpose programming language. Best, Gius . . . Read full entry »


Re: Modern talking

Posted 8/30/2017 5:53:28 AM

Liam: "Forest", this is the most beautiful name, the most meaningful one, I can imagine for what is now called XQuery. (I suggest to leave out the "Fast".)Incredible.Hans-Jürgen Liam R. E. Quin <liam@w3.org> schrieb am 17:23 Dienstag, 29.August 2017: On Tue, . . . Read full entry »


Re: Modern talking

Posted 8/29/2017 7:04:42 PM

I don't have a stake in XQuery but as a practioner working not just with markup yet still with enough XSLT experience I've found XML-specific programming languages generally limiting in that problem domains I'm using them for would often benefit from the kind of infrastructure and mindshare that ge . . . Read full entry »


Re: Modern talking

Posted 8/29/2017 4:06:26 PM

On Tue, Aug 29, 2017 at 1:04 PM, u123724 <u123724@gmail.com> wrote:I don't have a stake in XQuery but as a practioner working not just with markup yet still with enough XSLT experience I've found XML-specific programming languages generally limi . . . Read full entry »


Re: Modern talking

Posted 8/29/2017 12:19:56 PM

Hi Michael,I understand that. And I take it as an invitation for everyone to be more active and as an opportunity to thank all the people who contributed to the creation of such an amazing resource.In general, as an XQuery teacher within a university, I feel there is much potential for XQuery to ga . . . Read full entry »


Re: Modern talking

Posted 8/29/2017 11:22:13 AM

On Tue, 2017-08-29 at 12:19 +0200, Giuseppe Celano wrote: > > And yes, XQuery is tied to XML, but the problem here is, in my > experience, not XML, but the huge amount of misinformation > circulating about it (stemming from ignorance of it), misuse of it, > and laziness: if one pers . . . Read full entry »


Re: Modern talking

Posted 8/29/2017 7:49:09 AM

Hi, > But if you're going to aim for the skies in terms of a unified information model, then it has to be something RDF-like rather than something XML-like. XML is just too littered with arbitrary quirks. I've always felt that XQuery was too closely tied to XML to have aspirations to become som . . . Read full entry »


Re: XPath +/- etc not first class functions

Posted 8/28/2017 11:40:42 PM

> On 28 Aug 2017, at 21:57, Dimitre Novatchev <dnovatchev@gmail.com> wrote: > > On Mon, Aug 28, 2017 at 1:47 PM, Michael Kay <mike@saxonica.com> wrote: >> Yes: perha . . . Read full entry »


Re: XPath +/- etc not first class functions

Posted 8/28/2017 10:15:50 PM

Hi,  perhaps there is an implementation where op:numeric-add is an actual function Best, Benito  Am 28.08.2017 um 21:37 schrieb Dimitre Novatchev: Add() and Subtract() have been part of FXSL (http://fxsl.sour . . . Read full entry »


Re: Modern talking

Posted 8/28/2017 9:50:17 PM

Care should be taken to avoid speaking of completely different things, using similar words. Writing ..."But if you're going to aim for the skies in terms of a unified information model, then..."your words "unified information model" have nothing to do with what I call a "unified view of information . . . Read full entry »


Re: XPath +/- etc not first class functions

Posted 8/28/2017 9:47:30 PM

Yes: perhaps this could be the shortest EXPath spec ever. Just define a binding of the op prefix to the namespace http://expath.org/ns/operators and you're done. Michael Kay Saxonica > On 28 Aug 2017, at 21:15, Benito van der Zander <benito@benib&# . . . Read full entry »


Re: Modern talking

Posted 8/28/2017 7:19:36 PM

On 28 Aug 2017, at 06:38, Hans-Juergen Rennau <hrennau@yahoo.de> wrote:Thank you very much for these points concerning public interest and the danger of immature decisions.Valid as they are, I think the heart of the problem lies elsewhere: it is the lack of vision. For my . . . Read full entry »


Re: Modern talking

Posted 8/28/2017 7:09:46 PM

> On 28 Aug 2017, at 16:15, Giuseppe Celano <celano@informatik.uni-leipzig.de> wrote: > > I think that another XQuery Update Facility would be welcome (I hope the 3.0 draft will be soon a recommendation). > It won't, I . . . Read full entry »


Re: Modern talking

Posted 8/28/2017 6:47:24 PM

On Mon, Aug 28, 2017 at 5:50 PM, Hans-Juergen Rennau <hrennau@yahoo.de> wrote: Ironically, I take a much more pragmatic view than you: I couldn't care less about those 19 primitive types, for example, but I do care about the possibility to apply . . . Read full entry »


Re: Modern talking

Posted 8/28/2017 5:15:03 PM

I really hope that XQuery can continue to be extended because it has a clean data model and makes working on/querying texts simply immediate. Besides file and OS functions, I think that another XQuery Update Facility would be welcome (I hope the 3.0 draft will be soon a recommendation).Best,Giusepp . . . Read full entry »


Re: XPath +/- etc not first class functions

Posted 8/28/2017 4:38:59 PM

> Two problems with that: > (a) it would need syntax extensions rather than just a function library, and Yes, and this can be dealt with in a new version of XPath > (b) operators are polymorphic in a way that functions aren't (which is why we have the long names). Wasn't the new xs:nu . . . Read full entry »



PURCHASE STYLUS STUDIO ONLINE TODAY!!

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

Buy Stylus Studio Now

Learn XQuery in 10 Minutes!

Say goodbye to 10-minute abs, and say Hello to "Learn XQuery in Ten Minutes!", the world's fastest and easiest XQuery primer, now available for free!

Ask Someone You Know

Does your company use Stylus Studio? Do your competitors? Engineers from over 100,000 leading companies use Stylus Studio, and now you can ask someone from your own organization about their experiences using Stylus Studio.

 
Free Stylus Studio XML Training:
W3C Member