Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 9th, 2003, 07:17 PM
Registered User
 
Join Date: Nov 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default the counter is not incremented

hi,
 The below template doesnt increment the count it always displays <form name = "0">

<xsl:template match="mml:mo[.='(']">
       <xsl:variable name="moWithParen" select="count(preceding::mo[text() = '('])"/>
                <prompt><goto next = "{$moWithParen}"/></prompt>
                <prompt>&lt;/form&gt;</prompt>

                <xsl:text>
            &lt;prompt&gt;
            &lt;form name = "</xsl:text><xsl:value-of select="$moWithParen"/><xsl:text>"&gt;
            &lt;/prompt&gt;</xsl:text>
       </xsl:template>

kindly help is appreciated
Thank you
gs

 
Old November 9th, 2003, 11:28 PM
Authorized User
 
Join Date: Jun 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to rushman
Default

Look man, why don't you post an example complete with a test XML document, your stylesheet and what you want as an output. It'll be easier to help you.

Dijkstra's law on Programming and Inertia:

If you don't know what your program is supposed to do, don't try to write it.
 
Old November 10th, 2003, 11:54 AM
Authorized User
 
Join Date: Oct 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

gs,

see my reply to your other thread, http://p2p.wrox.com/topic.asp?TOPIC_ID=6237, "how to output non-well formed string"

...sam






Similar Threads
Thread Thread Starter Forum Replies Last Post
Has anyone got a visitor counter ? gb012993 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 February 5th, 2008 04:01 AM
Problem w/ session var being incremented on reload Storm ASP.NET 1.0 and 1.1 Basics 0 October 13th, 2004 01:42 AM
Counter tp194 Javascript 1 September 2nd, 2004 08:02 AM
counter Adam H-W Classic ASP Basics 15 August 15th, 2003 11:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.