[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

limiting your apply-templates

Subject: limiting your apply-templates
From: "Keller, Matt" <Keller.Matt@xxxxxxxxxxxxx>
Date: Mon, 18 Aug 2003 13:40:02 -0500
keller template
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.