|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








