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

Re: RDFa in SKOS Reference

From: Diego Berrueta <diego.berrueta@fundacionctic.org>
Date: Thu, 18 Dec 2008 08:57:41 +0100
To: Alistair Miles <alistair.miles@zoo.ox.ac.uk>
Cc: Sean Bechhofer <sean.bechhofer@manchester.ac.uk>, Ben Adida <ben@adida.net>, Shane McCarron <shane@aptest.com>, Ed Summers <ehs@pobox.com>, SWD Working SWD <public-swd-wg@w3.org>
Message-Id: <1229587061.6771.1.camel@duncan.lan>

Hi Alistair,

Amaya 11 has been just released, and it includes support for RDFa [1]. I
haven't tested it, though.

Best,

Diego.

[1] http://www.w3.org/QA/2008/12/amaya_also_for_rdfa.html


El lun, 15-12-2008 a las 12:07 +0000, Alistair Miles escribió:
> 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
> >
> >
> >
> >
> 
Received on Thursday, 18 December 2008 07:58:31 UTC

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