This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Result Tree 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]