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

XSLT filter syntax advice?

Subject: XSLT filter syntax advice?
From: Doug Meade <dougyitbos@xxxxxxxxx>
Date: Wed, 25 Nov 2009 23:04:16 -0500
 XSLT filter syntax advice?
Hey folks -

I'm trying to use XSLT to transform the following XML into HTML...

<Catalog>
    <Category>
    <Name>Category A</Name>
        <Item>
        <Id>Item 1a</Id>
        <Rank>1</Rank>
        <Title><![CDATA[The Title of Item 1a]]></Title>
        <Description><![CDATA[a great description of item 1a]]></Description>
        </Item>
        <Item>
        <Id>Item 2a</Id>
        <Rank>2</Rank>
        <Title><![CDATA[The Title of Item 2a]]></Title>
        <Description><![CDATA[a great description of item 2a]]></Description>
        </Item>
    </Category>
    <Category>
    <Name>Category B</Name>
        <Item>
        <Id>Item 1b</Id>
        <Rank>5</Rank>
        <Title><![CDATA[The Title of Item 1b]]></Title>
        <Description><![CDATA[a great description of item 1b]]></Description>
        </Item>
        <Item>
        <Id>Item 2b</Id>
        <Rank>10</Rank>
        <Title><![CDATA[The Title of Item 2b]]></Title>
        <Description><![CDATA[a great description of item 2b]]></Description>
        </Item>
    </Category>
</Catalog>

I'm getting hung up on the XSLT syntax that will display all the
"Items" for a particular Category. I can list the categories - or the
Items, but listing the items in a particular category is not working
so well.

I assume I need to pass the category as a parameter, but still not
getting it quite right.

Thanks!
Doug

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-2011 All Rights Reserved.