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

listing elements & sub-elements in a seqence - skiping

Subject: listing elements & sub-elements in a seqence - skiping elemts if sub-elemts are present
From: Karl <call14@xxxxxxxxx>
Date: Mon, 24 Jul 2006 15:20:45 +0100 (BST)
skiping
The problem is I have various <section> elemts, with some having
<subsection>'s. So, I need to create a sequence order/pagebreak at
<subsection>'s SKIPING 'section', if <subsection>'s are available
under section. Otherwise pagebreak at <section>. 

e.g.
<section/>  will become  1.Section title in list + creat pg 1
<section/>  ..
<section/>  will become list num 3.Section title & pg 3

<section>  ** [No pagebreaks/pagenums SINCE IT HAS <subsection> Pg 4
moved to subsection
 <subsection/>  So, this become 4. Subsection title (pg 4) 
 <subsection/>  
 <subsection/>  will become 6. Subsection title (pg 6)
<section>

<section/> will become 7.Section title (pg 7)

<section>
 <subsection/>   will become 8. Subsection title (pg 8)
<section>

and so on...

so, looks like if i write something like
<for-each - //section[with no subsection] | //section/subsection..>
and then using position(), will i get the correct order>. 

1) Whether the above code is correct or not, pls can forward me the
syntax code equivalent to <for-each - //section[with no subsection] |
//section/subsection..>

2) If the above is not correct, pls can you suggest some effective
solution? 

Thanks in adv.
karl


		
___________________________________________________________ 
Try the all-new Yahoo! Mail. "The New Version is radically easier to use"  The Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html

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.