Subject: [xsl] Display count function output as letter value instead of number value From: Sharon_Harris@xxxxxxxxxxxxxxxxxxxx Date: Mon, 18 Aug 2008 08:53:22 -0400 |
I would like to output a letter instead of a number when performing a count for a specific element. For example, the code snippet: <xsl:template match="//SelfStudy" mode="toc"> <fo:block xsl:use-attribute-sets="TOC1"> <xsl:text>Self Study </xsl:text> <xsl:value-of select=" count(preceding::SelfStudy)+1"/> <xsl:text> - </xsl:text> <xsl:value-of select="../../CuMetadata/Title "/> <fo:block xsl:use-attribute-sets="TOCLeaderSpacing"> <fo:leader xsl:use-attribute-sets="MediumLeader"/> </fo:block> </fo:block> <xsl:apply-templates select=" SelfStudyContent/SelfStudyOverview/Body | SelfStudyReuse/SelfStudyReference | SelfStudyReuse/SelfStudyConcept | SelfStudyReuse/SelfStudyConcept/CuInline/ContentUnit/CuContent/Concept/ConceptBody/subcontent/subheading | SelfStudyReuse/SelfStudyGWT | SelfStudyReuse/SelfStudyGWT/CuInline/ContentUnit/CuContent/GuidedWalkThrough/Instructions/ConceptReview/ConceptReviewTitle | SelfStudyReuseSelfStudyGWT/CuInline/ContentUnit/CuContent/GuidedWalkThrough/Instructions/SubInstruction/gwtSubHeading " mode="toc"/> </xsl:template> would produce the following: SelfStudy 1 - Title SelfStudy 2 - Title SelfStudy 3 - Title ... However, I would like it to output as follows: SelfStudy A - Title SelfStudy B - Title SelfStudy C - Title How do I get the count to output as a letter value instead of a number value? Thanks for your help! Sharon _______________________________ Sharon Goldner Harris Knowledge Management Evangelist Ultimate Software Group 704-660-6482 Confidentiality Note: This e-mail message and any attachments to it are intended only for the named recipients and may contain legally privileged and/or confidential information. If you are not one of the intended recipients, do not duplicate or forward this e-mail message.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL help, Jonas Mellin | Thread | Re: [xsl] Display count function ou, Andrew Welch |
Re: [xsl] copy of specific elements, Florent Georges | Date | Re: [xsl] Display count function ou, Andrew Welch |
Month |