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

Re: for-each issue

Subject: Re: for-each issue
From: XSL-List Owner <xsl-list-owner@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 27 Mar 2008 12:06:13 -0400
Re:  for-each issue
You are not making it easy for list participants to understand your question. You will improve the chances that you will receive prompt and helpful responses by:

  - asking specific enough questions that answers are possible. Describe
    what you are trying to do, how you approached it, what happened, and
    why you don't like the result you got

  - supplying small samples of files that illustrate your question or
    problem. For example, an XML file, an XSLT stylesheet, the result
    you got, and the result you want - all in miniature (and remembering
    that everything posted to XSL-List is archived in public)

The tiny fragments you are putting in your messages are not sufficient for people to run. I suggest that you make a very small XML file and a very small XSLT stylesheet that, when run, show the problem. If you send those, with a mock-up of the results you want from that sample XML file, it will be far easier for people to answer your question. (Also, it is not uncommon for people to answer their own questions in the process of creating small demonstrations of the problem.)

-- Tommie




At 8:43 AM -0700 3/27/08, Z W wrote:
David
Thanks for responding.
I'm new to XSLT
I'm still weak with XPath

Could you help explain why with this below, I get 0
count(document($currentJTL_cifo)/testResults/*[@label =
current()/@label][attribute::label='Client Init'])" />
while
count(document($currentJTL_cifota)/testResults/*[attribute::label='Client
Init'])" />
gives me the answer I want.

The input xml structure is this:
<?xml version="1.0" encoding="UTF-8"?>
<testResults version="1.2">

<sampleResult timeStamp="1205507229423" dataType="text"
threadName="Ni" label="Client Init" time="2133" responseMessage="OK"
responseCode="200" success="true"/>
<sampleResult timeStamp="1205507229265" dataType="text"
threadName="Mo" label="Client Init" time="2345" responseMessage="OK"
responseCode="200" success="true"/>
</testResults>



On Thu, Mar 27, 2008 at 8:17 AM, David Carlisle <davidc@xxxxxxxxx> wrote:

> <xsl:template name="cur_time_duration_cifo"> since you don't show that we can's comment on it.


<xsl:with-param name="value"/>



that sets the parameter to the empty string so when you go <xsl:value-of select="$value"/> you get nothing.

perhaps you intended

<xsl:with-param name="value" select="$value"/>

 but given no source document or indication of what transform you are
 intending, it is hard to guess.

David


--

======================================================================
B. Tommie Usdin                        mailto:btusdin@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                           Phone: 301/315-9631
Suite 207                                    Direct Line: 301/315-9634
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in XML and SGML
======================================================================

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.