|
From: Richard C. <ri...@cy...> - 2006-04-02 17:14:59
|
Onno,
You're right, the xml namespace declaration doesn't have to be there,
and removing it is probably the right thing. I *think* that you
simply have to remove line 335 of /api/constants.php, which is the
middle line of these:
$default_prefixes = array(
XML_NAMESPACE_PREFIX => XML_NAMESPACE_URI,
RDF_NAMESPACE_PREFIX => RDF_NAMESPACE_URI,
This should remove the declaration from the CONSTRUCT output. I
haven't tested if it causes any breakage elsewhere. Can you please
let us know if it works for you?
Thanks,
Richard
On 2 Apr 2006, at 17:46, Onno Paap wrote:
> When using SPARQL netapi, when outputting an entire model or
> outputting a CONSTRUCT query the output starts with:
> <rdf:RDF
> xml:base="http://www.15926.org/2006/02/dm#
> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema #"
> xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
> xmlns:owl="http://www.w3.org/2002/07/owl #"
> xmlns:xml="http://www.w3.org/XML/1998/namespace"
> xmlns:dc=http://purl.org/dc/elements/1.1/
> ... etc
>
> This works fine in Firefox, but in Internet Explorer an error
> message comes up:
>
> ----------------------------------------------------------------------
> ----------
> The XML page cannot be displayed
> Cannot view XML input using XSL style sheet. Please correct the
> error and then click the Refresh button, or try again later.
> The namespace prefix is not allowed to start with the reserved
> string "xml". Error processing resource ' http://localhost/be...
> xmlns:xml="http://www.w3.org/XML/1998/namespace"
> ---^
> ----------------------------------------------------------------------
> -----------
> The xml: namespace is not required to be declared (I think). It is
> not part of the model's namespaces stored in the RAP namespaces
> table, neither does it come up anywhere in the SPARQL sources. I am
> not able to solve it quickly.
>
> Onno Paap
>
>
|