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+)>


Gerhard






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