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

Re: XSLQUERRY

Subject: Re: XSLQUERRY
From: "cutlass" <cutlass@xxxxxxxxxxx>
Date: Wed, 27 Feb 2002 12:45:53 -0000
schedule xsl transform
----- Original Message -----
From: "XSL Developer" <vsd18@xxxxxxxxxxxxxx>


>
> dear xsl members,
> i have a problem. here it goes..
> xml structure:
>
> <root>
> <schedule category="title" type = "title2">
> title2
> </schedule>
> <schedule category="title" type = " title1">
> title1
> </schedule>
> <schedule category="title" type = "title3">
> episode
> </schedule>
> <schedule category="description" type="desc1">
> desc1
> </schedule>
> </root>

this should  do the trick, though i havent tested.

xml file
----------------------------------------
<?xml version="1.0" ?>
<root>

<schedule category="title" type="title2">
title2
</schedule>

<schedule category="title" type="title1">
title1
</schedule>

<schedule category="title" type="title3">
episode
</schedule>

<schedule category="description" type="desc1">
desc1
</schedule>

</root>

xsl file
----------------------------------------
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="root">
   <xsl:for-each select="schedule[@category='title' and @type='title1'] ">

   <xsl:value-of select="."/>

   </xsl:for-each>
</xsl:template>

</xsl:stylesheet>


> and i want to get the text where category = title and type =
> title1

btw, i would avoid stating something like XSLQuery, in a subject line, as it
could be misconstrued to be XMLQuery, a completely different thing

chow, jim fuller


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • XSLQUERRY
    • XSL Developer - Wed, 27 Feb 2002 06:43:53 -0500 (EST)
      • Joerg Heinicke - Wed, 27 Feb 2002 07:26:17 -0500 (EST)
      • cutlass - Wed, 27 Feb 2002 07:48:44 -0500 (EST) <=
      • <Possible follow-ups>
      • Jeff Beadle - Wed, 27 Feb 2002 07:58:32 -0500 (EST)

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.