Subject: Re: [xsl] problem with proper numbering From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 02 Oct 2001 12:04:57 -0400 |
Good luck, Wendell
Hi everybody, I have a XML document I want to translate into a WML document, which should include a table of contents linking to the other pages. So I would like to transform "slidesets" and "slides" into "cards". The problem I have is concerned with the numbering of the "cards".
a clipping of my code:
<!--TABLE OF CONTENTS WITH LINKS TO OTHER CARDS-->
<xsl:for-each select="slideset"> <card> <xsl:attribute name="id"><xsl:number value="position()" format="a"/> </xsl:attribute> <xsl:attribute name="title"><xsl:value-of select="title"/></xsl:attribute> <p><b><xsl:text>slideset </xsl:text><xsl:value-of select="title" /></b></p>
<xsl:for-each select="./slide"> <p><a> <xsl:attribute name="href"> <xsl:text>#</xsl:text><xsl:number value="position()" format="a"/> </xsl:attribute> <xsl:value-of select="./title"/> </a></p> </xsl:for-each> </card> </xsl:for-each>
<!--OTHER CARDS--> <xsl:for-each select="slideset/slide"> <card> <xsl:attribute name="id"><xsl:number value="position()" format="a"/></xsl:attribute> <xsl:apply-templates/> </card> </xsl:for-each>
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] problem with proper numbering, Andreas Putscher | Thread | [xsl] How to get character entities, jdgarrett |
Re: [xsl] table type output in text, Paul Tyson | Date | Re: [xsl] assistance with msxml, David Carlisle |
Month |