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

[no subject]

[no subject]
  Thatswhy I've added  <LEVEL> above that.

So I assume you wantto indent by the LEVEL number.

  This is what I'm thinking
 
  For each level
    write<td>
  Loop level
  Add NAME

I don't understand this part at all (XSLT never writes tags such as an
unmatched <td> and td elements are only used in tables which your output
isn't using?

Perhaps you want

    <B CLASS="hi">
  <xsl:for-each select="(//*)[position()&lt;=current()/LEVEL">&#160;</xsl:for-each>
  <xsl:value-of select="NAME"/>
  </B><br/>

which adds LEVEL nbsp before the NAME.

Or better just do


    <div CLASS="hi{LEVEL}">
  <xsl:value-of select="NAME"/>
  </div>

and arrange in your css that

div.hi1
div.hi2
div.hi3

etc have a suitable left margin specified.



David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.