![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: select another node in contains statement. select another node in contains statement.To: NULL Date: 3/7/2008 5:55:00 PM Dear sir, I have below XML file, I am using "contains" to search XML file. besides a keyword search, I also need an exact match on one special column. I have below XSLT which I am using "Content/agenda/startdatum" to search this special column data. However it does not work out. mine:comparedate is Script function which works fine. Any one can point out what went wrong below XSLT? Thanks in advanced. -----------------------XSLT-------------------------------- <xsl:apply-templates mode="search" select="Items/Item/Data[contains(translate(.,$UC,$lc), $Keyword) and mine:comparedate(string(Content/agenda/startdatum), string($StartDate))]"> </xsl:apply-templates> --------------------end XSLT ----------------------------- -------------------XML file ----------------------------- <Items> <Item> <Data> <Type>Normal</Type> <Content> <agenda> <titel>agenda 44444</titel> <startdatum>2008-03-07T09:55:00</startdatum> <aanvangstijd>gfdgfdg</aanvangstijd> <locatie>gfdgfdgdf</locatie> </agenda> </Content> <Metadata> <Metadata> <doelgroep>meta3</doelgroep> </Metadata> </Metadata> </Data> </Item> ...... </Items> ---------------- end XML ---------------------------- | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
