Thanks Dave - that solved my problem related to the namespace! However I now 
have another problem related to the other declarations 

xsi:schemaLocation and xmlns:xs

The error is this: 
Error Line Number:2 column number:152 system 
id:http://dasmi.bioinf.mpi-inf.mpg.de/das/sanger-core/interaction?interactor=10526
 unexpected attribute "xsi:schemaLocation"
the relavent xml from the above url is this|:


<DASINT xmlns="http://dasmi.de"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://dasmi.de/ http://dasmi.de/dasint.xsd";>
  <INTERACTOR intId="10985entrez gene/locuslink" shortLabel="GCN1L1" 
dbSource="entrez gene/locuslink" dbSourceCvId="MI:0477" dbVersion="" 
dbAccessionId="10985" dbCoordSys="Entrez,Gene_ID">
    <DETAIL property="species" value="9606" />
The relavant relaxng is currently this:

<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0";
    xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0";
    datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"; 
ns="http://dasmi.de"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  
xsi:schemaLocation="http://dasmi.de/ http://dasmi.de/dasint.xsd";>
    <define name="DASINT">
        <element name="DASINT" >
           

Any examples as to how to get around these declarations and not through errors 
would be good? I've tried putting the declarations in the DASINT element of the 
relaxng but I can't get this to work either.




________________________________
From: Dave Pawson <[email protected]>
To: [email protected]
Sent: Tuesday, January 6, 2009 2:11:37 PM
Subject: Re: [rng-users] URI ignoring?


2009/1/6 Jonathan Warren <jonathan.warren@ ymail.com>:
> Bumping this as I got no reply. Is it a stupid question or was it just
> because it was a couple of days before Christmas?

http://books. xmlschemata. org/relaxng/ relax-CHP- 11-SECT-3. html may help 
Jonathan.

But Christmas could have been the reason :-)

regards

-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson. co.uk
    


      

Reply via email to