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

Conditionally showing a record

Subject: Conditionally showing a record
From: Mike Urban <murban@xxxxxxxxxxxxx>
Date: Fri, 7 Apr 2000 02:13:05 -0500
mike urban xml download
Here is an example (simplified version) of my XML docuemnt.
<Example>
    <Record>
        <Order>
            <Line>10</Line>
            <Item>100</Item>
            <Price>10.00</Price>
        </Order>
    </Record>
    <Record>
        <Order>
            <Line>11</Line>
            <Item>200</Item>
            <Price>20.00</Price>
        </Order>
    </Record>
    <Record>
        <Order>
            <Line>20</Line>
            <Item>300</Item>
            <Price>30.00</Price>
        </Order>
    </Record>
    <Record>
        <Order>
            <Line>22</Line>
            <Item>400</Item>
            <Price>40.00</Price>
        </Order>
    </Record>
</Example>
 
In my XSL I want to only show the Records when the element Line is evenly divisiable by 10.  So, my ending result would be.
 
Line        Item       Price
10          100        $10.00
20          300        $30.00
 
Total                  $40.00
 
Then I would like to tale the lines that wer not divisiable by 10 and combine them into one line with a total on the element Price.
 
Other Total            $60.00
 
 
Thank you in advance for any assistance.
 
Mike Urban
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.