Re: question about match conditions in triple
Axel Hecht <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.rdf |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
hsd wrote: > Hi, > > I'm going create application with table of some information. I need add > some functionality to filter specific data. > > For example I have some rdf like this: > > <RDF:Description RDF:about="http://www.dbroom.com/locations/13" > ROOMS:Location="Domek" > ROOMS:Desc="fdfs"> > <ROOMS:Price NC:parseType="Integer">20</ROOMS:Price> > <ROOMS:NumRooms NC:parseType="Integer">4</ROOMS:NumRooms> > </RDF:Description> > <RDF:Description RDF:about="http://www.dbroom.com/locations/53" > ROOMS:Location="Domek" > ROOMS:Desc=""> > <ROOMS:Price NC:parseType="Integer">12</ROOMS:Price> > <ROOMS:NumRooms NC:parseType="Integer">23</ROOMS:NumRooms> > </RDF:Description> > <RDF:Description RDF:about="http://www.dbroom.com/locations/2" > ROOMS:Location="Bielsko" > ROOMS:Desc="Takie se miejsce"> > <ROOMS:Price NC:parseType="Integer">4</ROOMS:Price> > <ROOMS:NumRooms NC:parseType="Integer">12</ROOMS:NumRooms> > </RDF:Description> > > if user set filter to Location="Do" I want show in table only two rows > witch match to this filter: > > <RDF:Description RDF:about="http://www.dbroom.com/locations/13" > ROOMS:Location="Domek" > ROOMS:Desc="fdfs"> > <ROOMS:Price NC:parseType="Integer">20</ROOMS:Price> > <ROOMS:NumRooms NC:parseType="Integer">4</ROOMS:NumRooms> > </RDF:Description> > <RDF:Description RDF:about="http://www.dbroom.com/locations/53" > ROOMS:Location="Domek" > ROOMS:Desc=""> > <ROOMS:Price NC:parseType="Integer">12</ROOMS:Price> > <ROOMS:NumRooms NC:parseType="Integer">23</ROOMS:NumRooms> > </RDF:Description> > > First my idea is create second rdf file in memory and I filter self this > original rdf in java-script. This rdf in memory will be set as > datasource in my list in xul. > But maybe is more easy way to resolve this problem ? > I will wait for other proposition. > > Regards Hsd Complex conditions like "starts-with" are not implemented in xul templates, that is, you have to do that yourself. Sorry. Axel