W3C home > Mailing lists > Public > public-swd-wg@w3.org > December 2008

Re: RDFa in SKOS Reference

From: Alistair Miles <alistair.miles@zoo.ox.ac.uk>
Date: Mon, 15 Dec 2008 12:07:58 +0000
To: Sean Bechhofer <sean.bechhofer@manchester.ac.uk>, Diego Berrueta <diego.berrueta@fundacionctic.org>, Ben Adida <ben@adida.net>, Shane McCarron <shane@aptest.com>, Ed Summers <ehs@pobox.com>
Cc: SWD Working SWD <public-swd-wg@w3.org>
Message-ID: <20081215120758.GB25400@skiathos>

Please help!

The XHTML + RDFa doctype now in the SKOS Reference Editors' draft is
causing me a real headache.

First, amaya (9.55), the editor I normally use for w3 tech reports,
crashes when it tries to load the document with XHTML + RDFa doctype.

Amaya has no problem if the doctype is reverted to XHTML 1.0
transitional, but then it strips out all the RDFa attributes it
doesn't recognise.

Second, OxygenXML (which I use as an alternative to amaya) cannot
validate the document for a number of reasons.

If I leave the doctype as is and try to validate against the DTD then
I get validation errors for each of the xmlns:... attributes. This is
not Oxygen's fault, as described well at
http://www.oxygenxml.com/forum/topic2603.html. That link also has a
couple of workarounds, but I had problems with both.

If I try the workaround where you add implied attribute definitions to
the DTD doctype, e.g.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
    "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"[   
    <!ATTLIST html xmlns:foaf CDATA #IMPLIED>
    <!ATTLIST html xmlns:dc CDATA #IMPLIED>
    ]>
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:foaf="http://xmlns.com/foaf/0.1/"
    xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="en">

then Oxygen validates fine, but the W3C validator no longer recognises
the doctype correctly, but tries to validate as XHTML 1.0
transitional.

If I try to associate an XML schema, e.g.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
       "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/1999/xhtml http://www.w3.org/MarkUp/SCHEMA/xhtml-rdfa-1.xsd"
xmlns:con="http://www.w3.org/2000/10/swap/pim/contact#"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:rec="http://www.w3.org/2001/02pd/rec54#"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:mat="http://www.w3.org/2002/05/matrix/vocab#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:doc="http://www.w3.org/2000/10/swap/pim/doc#"
xmlns:org="http://www.w3.org/2001/04/roadmap/org#">
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  <title>SKOS Simple Knowledge Organisation System Reference, Editors' Draft
  1 October 2008 $Revision: 1.38 $</title>
  <meta name="generator" content="Amaya 9.54, see http://www.w3.org/Amaya/" />
  <link href="extras.css" rel="stylesheet" type="text/css" />
  <link href="http://www.w3.org/StyleSheets/TR/base" rel="stylesheet"
  type="text/css" />
  <script type="text/javascript" src="extras.js"></script>
</head>

then the script tag at the end of the head section causes the
following validation error:

[Xerces] cvc-complex-type.3.2.2: Attribute 'xml:space' is not allowed to appear in element 'script'.

I found a suggestion this is something to do with saxon, but If I try
validating using LIBXML instead of SaxonSA then I get:

[LIBXML]  parser error : Entity 'mdash' not defined

which I gather is a bug in libxml.

This is a mess!

I need to get some work done, so I'm going to use a text editor, and
rely on the W3C markup validation service to report any errors. Any
other suggestions warmly welcomed.

Alistair

On Thu, Nov 20, 2008 at 10:18:27AM +0000, Sean Bechhofer wrote:
>
>
> I've added some basic RDFa markup to the Reference working Draft:
>
> http://www.w3.org/2006/07/SWD/SKOS/reference/20081001/
>
> Editors, title, abstract, date, references. Comments welcome.
>
> 	Sean
>
> --
> Sean Bechhofer
> School of Computer Science
> University of Manchester
> sean.bechhofer@manchester.ac.uk
> http://www.cs.manchester.ac.uk/people/bechhofer
>
>
>
>

-- 
Alistair Miles
Senior Computing Officer
Image Bioinformatics Research Group
Department of Zoology
The Tinbergen Building
University of Oxford
South Parks Road
Oxford
OX1 3PS
United Kingdom
Web: http://purl.org/net/aliman
Email: alistair.miles@zoo.ox.ac.uk
Tel: +44 (0)1865 281993
Received on Monday, 15 December 2008 12:08:40 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:07:55 UTC