Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-1006

truouble resolving "//" xpath expression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Incomplete
    • 2.3Dx
    • None
    • None
    • Operating System: Windows NT/2K
      Platform: PC
    • 9089

    Description

      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.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--bugzilla9089.xml
          0.4 kB
          Joe Kesselman
        2. ASF.LICENSE.NOT.GRANTED--bugzilla9089.xsl
          0.6 kB
          Joe Kesselman

        Activity

          People

            Unassigned Unassigned
            calenmartin@yahoo.com calen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: