[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] limiting your apply-templates
First of all, my XML looks like this: <Output> <Contracts> <Contract> <ContractId>P12345</ContractId> <ContractName></ContractName> <SbuId></SbuId> <BusUnitURL></BusUnitURL> </Contract> <Contract> <ContractId>P12346</ContractId> <ContractName></ContractName> <SbuId></SbuId> <BusUnitURL></BusUnitURL> </Contract> <Contract> <ContractId>Q92478</ContractId> <ContractName></ContractName> <SbuId></SbuId> <BusUnitURL></BusUnitURL> </Contract> This XML is used by an app that runs on Websphere 3.5. Currently, I apply a template that ignores contracts that start with Q. It looks like this: <xsl:apply-templates mode="contractList_tab2" select="/Output/Contracts/Contract[not(substring(ContractId,1,1)='Q' or substring(ContractId,1,1)='q')]" /> However, we are in the process of upgrading to Websphere 5.0. In that environment, my template does not appear to block the Q contracts any longer. Is there another approach I can take in the XSL to block those contracts? Thanks, Matt XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|