From: Richard C. <ri...@cy...> - 2006-11-27 10:03:05
|
Hi, On 27 Nov 2006, at 09:09, AJ Chen wrote: > When firefox opens a rdf file generated by rdfapi, it automatically > parses it as xml file. The result is unreadable. This is what Firefox does with all XML files. > So, I want Firefox to open rdf file as is, showing content within > xml structure. Any suggestion how to do that? Select "View Source" from the menu. > Maybe something can be added to the top of rdf file, which will > prevent it from parsing by xml parser. You could do that, but then it wouldn't be an RDF file any more, and therefore most RDF tools would not recognize it. (As a better solution, you could use an XML processing instruction to associate a CSS or XSLT stylesheet with the RDF document, see [1].) RDF files are not meant to be displayed to a human. It doesn't really matter if it's parsed as XML, or if the raw XML is displayed, Non- geeks will not be able to understand either of those. Look at how links to RSS and Atom feeds are usually handled, they are hidden away behind [RSS] buttons or <link> elements in the HTML head, human readers will usually not see it, and RSS clients know where to look for it. I think the same approach should be used for RDF. Yours, Richard [1] http://www.w3.org/TR/xml-stylesheet/ > Or configure firefox not to parse rdf file. But I can't find a way > to add rdf file type to firefox download manager. > Thanks, > -- > AJ Chen, PhD > Palo Alto, CA > http://web2express.org > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV________________________________ > _______________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |