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

RE: Conditional processing of nodes

Subject: RE: Conditional processing of nodes
From: cknell@xxxxxxxxxx
Date: Mon, 02 Feb 2004 16:49:22 -0500
xpathdirectorygenerator
<xsl:template match="contents[preceding-sibling::audience[internal]]">
 <!-- Your code here -->
</xsl:template
--
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Markus Vaterlaus <mvaterlaus@xxxxxx>
Sent:     Mon, 2 Feb 2004 22:09:19 +0100
To:       xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:   Conditional processing of nodes

Hi all,

I'm quite struck with a XSL problem: I have a big file which is generated out of about 300 small files using cocoon's XPathDirectoryGenerator. Each of the small files has the same structure:

<entry>
 <audience>
   <clients/>
   <internal/>
 </audience>
 <contents>
   <head>
    <headnode1>abc</headnode1>
    <headnode2>abc</headnode2>
   <head>
   <body>
    <language1>
      <para>blaaaa</para>
      <para>blaaaa</para>
    </language1>
    <language2>
      <para>blaaaa</para>
      <para>blaaaa</para>
    </language2>
 </contents>
<entry>

The big file looks like this:

<dir:directory>
  ...
   <entry>
    ...
   </entry>
   <entry>
    ...
   </entry>
   <entry>
    ...
   </entry>
  ...
</dir:directory>

Now I'm looking for solution which processes <contents> (and its subnodes) of an entry if the node <internal/> exists. I thought, it could be done with <xsl:if test="expression"> ... </...> but I failed. Can anybody give me a hint?

Thanks

Markus


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





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.