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

Re: strangeness with <xsl:variable>

Subject: Re: strangeness with <xsl:variable>
From: Mike Hostetler <mikeh@xxxxxxxxxxxx>
Date: Wed, 20 Dec 2000 12:39:00 -0800 (PST)
xsl var
You know, after sending the regular message, I figured it
out . . . 

1.) use <xsl:text>sect-</xsl:text><xsl:number/>, which I
haven't done throughout the whole transform.  It's a wonder
that this didn't bit me before.

2.) This makes the <xsl:variable><xsl:choose> structure
look like this:

<xsl:variable name="link">
  <xsl:choose> 
    <xsl:when
test="parent::introduction"><xsl:text>sect-intro</xsl:text><xsl:number
format="1" level="single" count="section"/> 
    </xsl:when> 
    <xsl:when
test="parent::chapter"><xsl:text>sect-</xsl:text><xsl:number
format="I.1.1" level="multiple" count="//part | chapter
|section"/> 
    </xsl:when> 
    <xsl:otherwise><xsl:text>sect-</xsl:text><xsl:number
format="I.A.1" level="multiple" count="//part |
appendix|section"/> 
    </xsl:otherwise> 
  </xsl:choose> 
</xsl:variable>

I don't know if I like it, but at least it's better.  I
still don't know a good reason why it has to be this way.

Mike


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

 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.