Re: Antw: A question about the gda-xml-query



> 
> >>> Vivien Malerba <malerba gears linuxave net> 04.09.2000  11.23 Uhr >>>
> > > 
> > > >>> Carlos Perello Marin <carlos hispalinux es> 04.09.2000  03.10 Uhr >>>
> > > >
> > > >Hello Vivien. I have a question for you:
> > > >
> > > >
> > > >	Why you don't use the gda-xml-query's ID to identify a query
> > > >	when you load it from a file?. I mean, Why you don't permit that
> > > >	two, three, four, ... queries be located at the same xml file?
> > > >	
> > > >	I'm preparing the report engine to store a report and in the
> > > >	same file an ilimited number of queries which will be used
> > > >	inside the report, then i need differenciate the queries when i
> > > >	load them from the file (as do libglade with the different
> > > >	windows we put on a XML file with Glade).  
> > > >
> > >
> > > IMO, we could introduce a new toplevel node querylist:
> > >
> > > <!ELEMENT querylist (query+)>
> > >
> > > and identify each query by it's attribute 'id'.
> > >
> >
> > We don't need to. We should find out how to validate several <query> elements
> > which are in the same file, or to validate a <query> element which is part of
> > a larger XML structure (as for example in the report).
> 
> I'm not sure if I understand you right, but I think the solution is very easy:
> 
> You can have, for example a gda-xml-querylist DTD, where you write:
> 
> <!ENTITY % query SYSTEM "/some/path/to/gda-xml-query.dtd">
> %query;
> 
> <!ELEMENT querylist (query+)>
> 
> 

I agree with you here. If we need to put several queries in the same file, then
we need to use another DTD to describe the root element not as a query but
as a list of queries (element <!ELEMENT querylist (query+)>). 

My worry was about a XML document for which the root element is not <query> but
something else (like for example a report) which contains <query> elements. 
The question was:
How in that case specify that for the <query> element the relevant DTD is
gda-xml-query.dtd? I think it is the right solution you have here. 

Forgive me about my ignorance of XML/DTD.

Anyway, I'm back in the game and will try to give a gda-xml-query library 
soon, now that the DTD has stabilized.

There is just one more thing to take care: the DB links and how to implement
them in the DTD.



> Gerhard
> 
> 

Cheers,

Vivien




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]