Subject: Re: [xsl] strangeness with <xsl:variable> From: Mike Hostetler <mikeh@xxxxxxxxxxxx> Date: Wed, 20 Dec 2000 12:39:00 -0800 (PST) |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] strangeness with <xsl:var, David Carlisle | Thread | Re: [xsl] strangeness with <xsl:var, Jeni Tennison |
Re: [xsl] Text Following <br/>, Dimitre Novatchev | Date | RE: [xsl] strangeness with <xsl:var, Devlin, Kurt |
Month |