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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] simple XPath question, Michael Kay | Thread | RE: [xsl] Result Tree Fragment Prob, Michael Kay |
RE: [xsl] given @id="1.2.3" .... -1, Chris Bayes | Date | [xsl] Retrieving XML document's nam, John Putman |
Month |