Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - newbie reducing table columns [Thread Next] Re: newbie reducing table columnsTo: NULL Date: 4/10/2007 2:15:00 PM sean nakasone wrote: > I want to reduce the number of columns by specifying only a subset of > columns. Is there a way to do something like this: > > (this is pseudo-code) > if columnHeader == "Phone Number" > include this column > if columnHeader == "Address" > including this column > ... How is the column name marked up in the XML document you have? You need to show us the relevant parts of the input XML if you need help writing XSLT/XPath processing that XML. Generally you can use predicates in XPath expressions and XSLT match patterns to filter out nodes e.g. <xsl:template match="ADORecordset/Schema/Field[@Name = 'Phone Number' or @Name = 'Address']"> -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
