<feed xmlns="http://www.w3.org/2005/Atom" xmlns:foaf="http://xmlns.com/foaf/0.1/"><title>norman.walsh.name: Comments on /2004/01/09/bourbon</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2004/01/09/bourbon"/><id>http://norman.walsh.name/2004/01/09/bourbon/comments.atom</id><updated>2012-02-13T05:02:29.157801Z</updated><entry><title>Comment 1 on /2004/01/09/bourbon</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2004/01/09/bourbon#comment0001"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0001</id><published>2004-01-12T08:51:11Z</published><updated>2004-01-12T08:51:11Z</updated><author><name>Tobi </name></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>This is great news! Putting DBX in a namespace and requiring a version attribute on the root element is a very good thing. Software will be able to find out which language the document (or fragment) is written in; a validator can for example apply a schema if it knows the language (if there were a suggestion for a schema it wouldn&amp;apos;t have to know the language ...).</p>
<p>This is how it works here:
(Does your feedback code somehow support code listings? In order to prevent endless lines I inserted additional newlines for now; being able to use pre would be better.)</p>
<p>4_ng_bourbon.dbx:</p>
<p>&amp;lt;?xml version="1.0"?&amp;gt;</p>
<p>&amp;lt;section xmlns="http://docbook.org/docbook-ng" version="5.0"&amp;gt;</p>
<p>&amp;lt;title&amp;gt;foo&amp;lt;/title&amp;gt;</p>
<p>&amp;lt;simpara&amp;gt;bar&amp;lt;/simpara&amp;gt;</p>
<p>&amp;lt;/section&amp;gt;</p>
<p>in
language_list.xml:</p>
<p>&amp;lt;language&amp;gt;</p>
<p>&amp;lt;identity&amp;gt;
namespace-uri(/*)=&amp;apos;http://docbook.org/docbook-ng&amp;apos;
and
/*/@version=&amp;apos;5.0&amp;apos;
  &amp;lt;/identity&amp;gt;</p>
<p>&amp;lt;local-schema&amp;gt;
/home/tobi/bulk/xml/schemas/docbook/4_ng/bourbon/docbook.rng
  &amp;lt;/local-schema&amp;gt;</p>
<p>&amp;lt;/language&amp;gt;</p>
<p>validation:</p>
<p>tobi ~/data/run/xval/_tests $ xval 4_ng_bourbon.dbx</p>
<p>[xval] validating against
/home/tobi/bulk/xml/schemas/docbook/4_ng/bourbon/docbook.rng</p>
<p>[xval] jing:</p>
<p>[xval] xmllint:</p>
<p>4_ng_bourbon.dbx validates</p>
<p>Tobi</p>
<p>P.S.
Link "DocBook NG"
http://norman.walsh.name/2004/01/09/http://docbook.org/docbook-ng/
should be
http://docbook.org/docbook-ng/</p>
  </div></content></entry><entry><title>Comment 2 on /2004/01/09/bourbon</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2004/01/09/bourbon#comment0002"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0002</id><published>2004-01-15T13:11:49Z</published><updated>2004-01-15T13:11:49Z</updated><author><name>Jirka Kosek</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>I'm just curious why you used URL instead of URN for namespace indentifier. I know that technically are both versions same, but I tend to prefer URNs for namespaces as they emphasise "virtual and immaterial" matter of namespaces.</p>
  </div></content></entry></feed>

