W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > June 2014

Keeping XMLLiterals unchanged when going through RDFa

From: Reto Gmür <reto@apache.org>
Date: Wed, 4 Jun 2014 12:25:30 +0200
Message-ID: <CALvhUEXs=gCp-A-E2uU0MrqBtcVVdnnd+ErjMYkEa98pq=u_pA@mail.gmail.com>
To: W3C <public-rdfa-wg@w3.org>

I'm writing a browser based editor to edit graphs rendered as RDFa/HTML.

I encountered the problem that the round-trip via browser changes the value
of the XMLLiterals, e.g. a <br/> becomes <br /> (in firefox) or a <br> (in
chrome). There seems to be no way to the client library to get the exact
original version as the js has only access to the DOM not to the literal
source. This of course makes it impossible to update the content using e.g.

I though one work around would be to pass the original version in a content
attribute. This way the client could read out the exact literal before the
editing starts and use this version when sending back the DELETE/INSERT

Unfortunately I noticed that the content node is ignored if the datatype is
set to rdf:XMLLiteral.

Is there any way to encode an arbitrary XMLLiteral in RDFa so that it
remains identical character-by-character when encoding as RDFa and decoding

Received on Wednesday, 4 June 2014 10:25:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:05:35 UTC