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

Re: COUNT IN THE SAME STYLESHEET

Subject: Re: COUNT IN THE SAME STYLESHEET
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Sun, 01 Dec 2002 22:46:00 +0100
Re:  COUNT IN THE SAME STYLESHEET
adrianori@xxxxxxxx wrote:
if i write a piece of code as:

<xsl:number count="ms:node-set($cont)/PC/NOME"/>
...
it says: that there havde to be a NODE TEST and no a variable or a
funcction!

Well, according to the spec the count attribute must have a match pattern as value. Try something like: <xsl:number value="count(ms:node-set($cont)/PC/NOME)"/>

<xsl:value-of select"$cont">
it stamp
also ibm9 obm10 and the element "tag" go out!
why this?

That's because xsl:value-of inserts the text content of the selected node set into the result tree. You'll probably want to use <xsl:copy-of select"$cont"/> instead. Get a good XSLT book and look up details about this topic there.

J.Pietschmann


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.