![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Match an attribute value in a set of possible values >Thread Next - Re: Match an attribute value in a set of possible values Re: Match an attribute value in a set of possible valuesTo: NULL Date: 9/1/2006 7:14:00 AM Martin Honnen wrote: > patrin wrote: > > > <xsl:template match="child[test[@id='1']]"/> > > Well an or is possible in XPath 1.0 > > <xsl:template match="child[test[@id='1' or @id = '3']]"/> > > > -- > > Martin Honnen > http://JavaScript.FAQTs.com/ Thanks for the quick replay, but the list of ids to match is dynamyc and I know it only from Java code, where it is stored into a String arrray: String[] idsToRemove = {1,3,...}; and I would like to pass it to the Transformer, invoking the method: setParameter("idsToRemove", idsToRemove); so that the XSLT should remove all the child elements whose test subelement has an id with any of the values contained in the idsToRemove array. Is it possible to do this with XSLT 1.0 ? or can you suggest an alternative way to solve the problem ? Thanks again for your help Regards, Patrizio | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
