Inasmuch as software has moved on since 2008 when I wrote about When Ant is subsidiary to <oXygen/>, I now run XSpec from <oXygen/> using the Ant bundled with recent <oXygen/>. (more…)
Archive for the ‘XML’ Category
XSpec, Ant, and <oXygen/>
Tuesday, February 2nd, 20101.5 talks at XML Prague 2010
Friday, January 8th, 2010Inasmuch as I was fortunate to again be selected to present or co-present two talks, I will be at XML Prague again this year. Going to a technical XML conference, in Prague, in the Spring, again, will be good; presenting the same number of talks as last year is just a bonus.
The talks are:
- Arrow to Octopus: What XSL 2.0 means for implementers and users — Discusses the changes that will have to take place under the hood of any XSL formatter that supports XSL 2.0 and what those additional capabilities can bring to your stylesheets.
- Real time, all the time, ragtime XML — An update on the capabilities of Xcruciate.
1.5 @ Prague
Wednesday, February 4th, 2009I will have the pleasure of speaking twice at XML Prague 2009, once on my own and once as a co-presenter:
- Testing XSLT — An update and expansion of my previous talk on testing XSLT presented in less time. How can that be? Simple, really: put more in the conference paper, direct attendees to the paper, and spend more of the presentation doing demonstrations.
- Imagining, building and using an XSLT virtual machine — The why and what of the open source Xcruciate XML-based server. Or the why, what, and Howe of Xcruciate, since I’m the second presenter with Mark Howe of Cyberporte, who provides the ideas behind Xcruciate and its related projects.
xs3p is not the secret sauce
Monday, January 26th, 2009I used to think that the open source xs3p schema documentation generator stylesheet from the now-defunct http://titanium.dstc.edu.au/ was the secret sauce behind the remarkably similar graphical XML schema representations of both <oXygen/> and XML Spy. I was wrong: a modified version of xs3p is bundled with <oXygen/> and is used when generating printed documentation, and xs3p may still be included in XML Spy (though it’s unlikely since its currently not listed on their third-party licenses page), but even in its titanium days, it didn’t do any graphical representations of a schema.
Does anybody know of an open source toolkit that can produce that sort of graphical representation?
Entmoot of markup
Monday, May 26th, 2008Balisage is the Entmoot of markup. The 2008 schedule is available at http://www.balisage.net/At-A-Glance.html.
When Ant is subsidiary to <oXygen/>
Friday, May 16th, 2008The
This example is from the <oXygen/> “project” that I used for organising the exercises for my “Testing XSLT” tutorial at XTech 2008. (more…)
BOM in UTF-8: good, bad, or ugly?
Wednesday, October 3rd, 2007The usefulness or otherwise of U+FEFF (ZERO WIDTH NON-BREAKING SPACE and BYTE ORDER MARK) in UTF-8 has been subject to reinterpretation over the years. It wasn’t mentioned in the original XML 1.0 Recommendation but was added later, rather like how its use was added to the Unicode Standard.
In the Unicode Standard 2.0, there was no mention of U+FEFF with UTF-8, either in the section on the BOM or in the appendix defining UTF-8.
In the Unicode Standard 3.0, section 13.6, “Specials”, includes:
Although there are never any questions of byte-order with UTF-8 text, this sequence can serve as signature for UTF-8 encoded text where the character set is unmarked.
In the Unicode Standard 5.0, section 3.10, “Unicode Encoding Schemes”, includes:
While there is obviously no need for a byte order signature when using UTF-8, there are occasions when processes convert UTF-16 or UTF-32 data containing a byte order mark into UTF-8. When represented in UTF-8, the byte order mark turns into the byte sequence <EF BB BF>. Its usage at the beginning of a UTF-8 data stream is neither required nor recommended by the Unicode Standard, but its presence does not affect conformance to the UTF-8 encoding scheme. Identification of the <EF BB BF> byte sequence at the beginning of a data stream can, however, be taken as a near-certain indication that the data stream is using the UTF-8 encoding scheme.
So in the Unicode Standard it’s gone from irrelevant to useful to “Oh, if you must”.
(BTW, in other reinterpretations, “Unicode Encoding Scheme” results from splitting the meaning of “UTF”, and the use of U+FEFF to indicate non-breaking is deprecated these days.)
The Unicode FAQ both lists its use as a signature and says to avoid its use where “byte oriented protocols expect ASCII characters at the beginning of a file“. However, I don’t think that XML necessarily counts as one such byte oriented protocol.
Windows drive names with Cygwin xsltproc & xmllint
Monday, September 24th, 2007Cygwin may be the only way to stay sane while using Windows, but it has its own Unix-like notion for drive names, e.g., “/cygdrive/c/” instead of “c:“. Which is fine, except when you want to use both Java XML tools, which understand only the “c:” form, and Cygwin tools, which tend to understand only the “/cygdrive/c/” form.
The Cygwin xsltproc and xmllint complain when you use them with files containing Windows drive names in system identifiers, so the second time it happened, I wrote a simple XML catalog file to map the Windows drive names to the Cygwin paths.
Put this as the contents of /etc/xml/catalog (not catalog.xml!) and the Cygwin xsltproc, etc., will handle Windows drive names:
<?xml version="1.0"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<rewriteSystem
systemIdStartString="file:///C:/"
rewritePrefix="file:///cygdrive/c/"/>
</catalog>
You will have to add a suitable rewriteSystem for each additional drive that you use.
…a linear syntax for unranked, ordered and labeled trees.
Thursday, April 5th, 2007It’s often interesting to see people’s sound-bite definitions of XML. The following, from Section 2.2 of the Static Validation of XSLT Master’s thesis by Mads Kristian Østerby Olesen, isn’t as forthright as Richard Gabriel’s but is interesting for assuming that you know about trees (in the computer sense) even if you don’t know XML:
XML is just a linear syntax for unranked, ordered and labeled trees.
XML—…fundamental Lisp data structures reinterpreted by people with bad taste brainwashed by inflexibility
Tuesday, August 15th, 2006I was most impressed by this characterisation of XML in “The Art of Lisp & Writing” by Richard Gabriel (http://www.dreamsongs.com/ArtOfLisp.html):
XML—which amounts to some fundamental Lisp data structures reinterpreted by people with bad taste brainwashed by inflexibility.