|
From: Richard C. <ri...@cy...> - 2005-05-31 21:24:30
|
Hi Christian,
Am 30.05.2005 um 22:21 schrieb Christian Boulanger (Bibliograph
Development):
>>> There is saveAs() to save it to a file, writeAsHtml() to get it
>>> hmtlentitized, and writeAsHtmlTable to have a table. What if I
>>> only need the XML string to output it later with header("Content-
>>> Type: text/xml")? Did I miss something here?
>>
>> $model->writeRdfToString() might do what you want.
>
> In the documentation, it says that $model->writeRdfToString()
> "Writes the RDF serialization of the MemModel as HTML table".
Hm. Looks like a copy & paste error in the documentation. It's the
same in various other Model subclasses.
> I have tried it but got a "method not defined" error on a ResModel.
> Have to try again.
There's a bug in the ResModel implementation of writeRdfToString():
$this->model-writeRdfToString();
That should read:
$this->model->writeRdfToString();
I guess you could just fix it in your local copy of RAP, the file is
ResModel.php in the /api/resModel directory.
>> Note that RDF/XML has its own MIME type, application/rdf+xml, and
>> using that is usually more appropriate than text/xml.
>>
> Thanks for the hint- the problem is that I want to load the RDF
> into Mozilla widgets, and - at least according to the Mozilla
> manual, the correct mimetype is not yet accepted.
Ah, OK.
Best,
Richard
>
> Best.
>
> Christian
>
>
|