xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Result Tree Fragment Problem


Subject: [xsl] Result Tree Fragment Problem
From: Kumar.Shailendra@xxxxxxxxxxxxxxxxx
Date: Mon, 2 Jul 2001 17:00:28 -0400 (EDT)

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
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor