- From: cdr <_@whats-your.name>
- Date: Sun, 16 Sep 2007 18:20:43 -0400
- To: semantic-web@w3.org
> public-rdf-in-xhtml-tf@w3.org thanks - had searched for 'rdfa' in the w3 lists list.. after i can put together some test case's i'll subscribe > > But if you have well-formed markup, or just plain literals, it should be > trivial to round-trip it. > > Do you have a specific use case in mind that we're not handling well? the use case is click-to-edit a triple in the document. you need the exact contents you had before, the typical markup one supplies in a blog-post input textarea. eg: """ Hello "Dolly", isn't it <nice> out today? <i>Why yes it is...</i> the <span style='color:blue'>sky</span> is mesmerizing """ we'll throw this in a <span property="sioc:content"></span>. but sending this HTML to a browser then trying to get it back with innerHTML is not going to work - it's going to throw away the <nice> element, or maybe add a / inside it, and nuke some \ns or switch the single quotes on the span to double or vice-versa, and all of this is going to vary slightly by agent. if sending perfectly formed XML as MIME application/xhtml+xml solves this innerHTML roundtrip issue in all the mainstream browsers (sans ie) i'll definitely switch (adding a sanitization/tidy step on the input field) as it shaves ~50% off the page bandwidth. will have to do some tests.. is there some standard for (de|enc)oding the content attribute? none of the examples i see even contain quotes in their literals. its also important here to preserve datatypes of literals, so that the right editing widgets are used for numbers, dates, etc. does the RDFa spec limit itself to strings? i'd idealy like to standardize a way to commicate 'the literals in the content attributes of this documents are RDFa and are encoded in JSON then encoded in URLencoding' or similar. but that soudns kinda crazy - maybe i should stop trying to use RDFa for everything.. once again, my infamiliarity with XML means maybe theres a way to avoid urlencoding entirely.. i dont feel the existing how-tos address this stuff.. carmen
Received on Sunday, 16 September 2007 22:20:57 UTC