From: Onno P. <onn...@gm...> - 2006-04-02 18:39:14
|
Dear Richard, This solution works perfectly. I hope you will put it in the CVS. Thank you! Onno Paap On 4/2/06, Richard Cyganiak <ri...@cy...> wrote: > > 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 =3D array( > XML_NAMESPACE_PREFIX =3D> XML_NAMESPACE_URI, > RDF_NAMESPACE_PREFIX =3D> 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=3D"http://www.15926.org/2006/02/dm# > > xmlns:rdf=3D"http://www.w3.org/1999/02/22-rdf-syntax-ns#" > > xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema #" > > xmlns:rdfs=3D"http://www.w3.org/2000/01/rdf-schema#" > > xmlns:owl=3D"http://www.w3.org/2002/07/owl #" > > xmlns:xml=3D"http://www.w3.org/XML/1998/namespace" > > xmlns:dc=3Dhttp://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=3D"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 > > > > > > -- Onno Paap Fluor corporation +31 23 5432116 (work) +31 6 21625149 (mobile) |