- From: Dan Connolly <connolly@w3.org>
- Date: 23 Jun 2003 11:05:07 -0500
- To: Karl Dubost <karl@w3.org>
- Cc: www-archive+n3bugs@w3.org, Sandro Hawke <sandro@w3.org>
On Mon, 2003-06-23 at 10:29, Karl Dubost wrote: > Hi, > > I have tried a simple transformation and I wonder if it's a cwm > problem or if I can't do what I'm trying to do. > > Let say in a RSS feed we have this item. > > <item rdf:about="http://www.la-grange.net/2003/06/21.html#standard"> > <title>Carnet : Rencontre Standard Web</title> > <description><![CDATA[<p xmlns="http://www.w3.org/1999/xhtml">Dommage, je > ne serais en France que du <a href="/karl#ailleurs" shape="rect">26 > juillet au 9 > août</a>. Vous pouvez pas renouveler l'expérience quand je serais là.</p>]]> > </description> > <link>http://standblog.com/index.php?p=93112877&c=1</link> > <dc:subject>Web, standard</dc:subject> > <dc:date>2003-06-21</dc:date> > </item> > > I have applied cwm -rdf feed.rdf -n3 > foo.n3 > and so I got > > :standard a rss:item; > dc:date "2003-06-21"; > dc:subject "Web, standard"; > rss:description """<p xmlns="http://www.w3.org/1999/xhtml">Dommage, je > ne serais en France que du <a href="/karl#ailleurs" shape="rect">26 > juillet au 9 > ao\u00FBt</a>. Vous pouvez pas renouveler l'exp\u00E9rience quand je > serais l\u > 00E0.</p>"""; > rss:link "http://standblog.com/index.php?p=93112877&c=1"; > rss:title "Carnet : Rencontre Standard Web" . > > > > I have applied again the transformation > cwm -n3 foo.n3 -rdf > foo.rdf > > and I got > > <rss:item rdf:about="http://www.la-grange.net/2003/06/21.html#standard"> > <dc:date>2003-06-21</dc:date> > <dc:subject>Web, standard</dc:subject> > <rss:description><p > xmlns="http://www.w3.org/1999/xhtml">Dommage > , je ne serais en France que du <a href="/karl#ailleurs" > shape="rect">26 > juillet au 9 août</a>. Vous pouvez pas renouveler l'expérience quand > je serais là.</p></rss:description> > <rss:link>http://standblog.com/index.php?p=93112877&c=1</rss:link> > <rss:title>Carnet : Rencontre Standard Web</rss:title> > </rss:item> > > The problem is that I don't have anymore the <p> in their original form. Er... it's the same information as in the original file, no? You wouldn't expect XSLT to preserve CDATA sections, would you? > > Why I have tried that, because I thought of using n3 to manage > content for a Web site. > > :entry0001 a rss:item; > dc:date "2003-06-21"; > rss:description """ > <p>here all kind of text</p> > <p>HTML markup</p> > <p>to be able to insert all kind of things.</p> > """; > rss:link "http://www.example.org/2003/06/23.html"; > rss:title "Entry of the day" . > > but if n3 to RDF is not going well, it seems to be going fine. > I will not be able to do RDF -> > XHTML afteward. Why not? does your RDF->XHTML conversion rely on CDATA sections somehow? > Any ideas. -- Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Monday, 23 June 2003 12:04:34 UTC