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

Re: newbie How to use "xsl:counter"

Subject: Re: newbie How to use "xsl:counter"
From: John Robert Gardner <jrgardn@xxxxxxxxx>
Date: Wed, 10 May 2000 16:09:46 -0400 (EDT)
xsl counter
Okay, with trepidation, I suggest the questions, why "<", ">" in your
xmlnx declarations?  remove them from inside the quotes and see how it
behaves, I'm also curious why there is not "match=" on your first
template.  Don't you mean to match "/" ?

It's also not clear the context node for your "match="text()"" - cf. the
preceding absence of a mtach= statement.

=-=-=-=-=-=-=-=-=-==-=-=-=
John Robert Gardner, Ph.D.
XML Engineer
Emory University
------------------------------------------------------------
http://vedavid.org/diss/
"If there is something you're thinking of doing, or wish you could do,
begin it.  In boldness there is mystery and power . . . . "  -Goethe

On Wed, 10 May 2000, Brian Mulder wrote:

> Hi list,
> 
> count.xsl:
> 
> <xsl:stylesheet xmlns:xsl="<http://www.w3.org/TR/WD-xsl>"
> xmlns:HTML="<http://www.w3.org/Profiles/XHTML-transitional>">
> <xsl:template><xsl:apply-templates/></xsl:template>
> <xsl:template match="text()"><xsl:value-of/></xsl:template>
> <xsl:template match="/">
> <HTML>
> <HEAD>
> <TITLE><xsl:value-of select="parts/tablename/name"/></TITLE>
> </HEAD>
> <BODY>
> </BODY>
> </HTML>
> </xsl:template>
> <xsl:template match="book">
> <xsl:counter-reset name="chaps" />
> <xsl:apply-templates />
> </xsl:template>
> 
> <xsl:template match="book/chapter">
> <xsl:text>Chapter </xsl:text>
> <xsl:counter name="chaps" />
> <xsl:counter-increment name="chaps" />
> <xsl:text>:</xsl:text>
> <xsl:apply-templates />
> </xsl:template>
> 
> </xsl:stylesheet>
> 
> it's giving errors about "can't use xsl:text", if i take the first
> appearance out
> of the xsl sheet then it complains about the next line i startt with "xsl:"
> 
> so it has something to do with a node within a parent that's not matching
> gonna pull my hair out for this. it costed me already more then lotsa hours.
> 
> anyway thanks for the thoughts
> 
> Brian Mulder
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.