Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: another XSLT problem >Thread Next - Re: another XSLT problem Re: another XSLT problemTo: NULL Date: 8/31/2005 3:58:00 PM Your last suggestion also works, Peter, and you are my hero. Thanks! The problem is fixed and it saves me a tedious maintenance chore. If you're interested, I had to add in yet another check to make it all work, and the final gnarly XPath looks like this: <xsl:variable name="wri" select="count(items/item[(not(@doc = 'no') and @iname != starts-with(@iname,'dr')) and (not(@doc = 'no') and @iname != starts-with(@iname,'hr')) and (not(@doc = 'no') and @iname != starts-with(@iname,'usr')) and (not(@doc = 'no') and @iname != starts-with(@iname,'szr')) and (not(@doc = 'no') and @iname != starts-with(@iname,'ulr')) and (not(@doc = 'no') and @iname != starts-with(@iname,'ipr')) and (not(@doc = 'no') and @iname != starts-with(@iname,'br')) and (not(@doc = 'no') and @iname != starts-with(@iname,'ucr'))])"/> Weirdly, "not(@doc = no)" worked when "@doc != 'no'" did not. But I'm happy. Mark | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
