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

Result Tree Fragment Problem

Subject: Result Tree Fragment Problem
From: Kumar.Shailendra@xxxxxxxxxxxxxxxxx
Date: Mon, 2 Jul 2001 17:00:28 -0400 (EDT)
fragment problem
Hi All,

I have got a Result Tree Fragment which I convert to nodeset using
xalan2.0 extension function. The structure of the nodeset is

<Product xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
          <ProductIdentifier>
            <Type>cusip</Type>
            <Id>9903S</Id>
            <Date>2001-01-19</Date>
            <ClientAccount>FIRPR</ClientAccount>
          </ProductIdentifier>
          <PriceAttributes>
            <Date>2001-01-19</Date>
            <CurrencyCode>EUR</CurrencyCode>
            <ClientPrice method="NYFIRMPR">19.000000</ClientPrice>
            <Close>91.000000</Close>
            <PRC_SOURCE_CD>08</PRC_SOURCE_CD>
            <CurrencyCusip>999850126</CurrencyCusip>
          </PriceAttributes>
        </Product><Product
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
          <ProductIdentifier>
            <Type>cusip</Type>
            <Id>9902RN</Id>
            <Date>2001-01-19</Date>
            <ClientAccount>FIMPR</ClientAccount>
          </ProductIdentifier>
          <PriceAttributes>
            <Date>2001-01-19</Date>
            <CurrencyCode>EUR</CurrencyCode>
            <ClientPrice method="FMPR">13.360000</ClientPrice>
            <Close>11.360</Close>
            <PRC_SOURCE_CD>08</PRC_SOURCE_CD>
            <CurrencyCusip>999850126</CurrencyCusip>
          </PriceAttributes>
        </Product>


Now the problem is How do I get the second "Product" node in the nodeset?
I tried something like this
$mynodeset/child::*[local-name()='Product']/self::node()[position()=2]
where $mynodeset references the nodeset.
But it does not return anything.

Am I doing something wrong?

I will be very thankful for any help, to solve this problem.

Regards,
Kumar



 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.