[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|