DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9089>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9089

truouble resolving "//" xpath expression

           Summary: truouble resolving "//" xpath expression
           Product: XalanJ2
           Version: 2.3Dx
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.transformer
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi!  This did nothing:

    <xsl:value-of select="./ItemId//text()"/>

  But this found the node:

    <xsl:value-of select=".//globalTradeItemNumber/text()"/>

  Below is the reference element:

  <lineItems lineItemNumber="1">
    <ItemId>
      <globalTradeItemNumber>411</globalTradeItemNumber>
    </ItemId>
    <requestedQuantity ordered="5" freeGoods="2">7</requestedQuantity>
    <netPrice reference="fff" currency="fff" number="vvv">
      <monetaryAmount>5.65</monetaryAmount>
    </netPrice>
    <canceIifNotDeliveredBy>
      <date>2/21/2000</date>
      <time>1:00</time>
    </canceIifNotDeliveredBy>
  </lineItems>

  I'm no expert, but I have found the Jaxen XPath engine reliable.  I don't 
mean to give you advice, but perhaps it might be a good engine to use for 
resolving XPath expressions.

Reply via email to