Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5804

xpath with an namespace:attribute not working in XPathEntityProcessor

    XMLWordPrintableJSON

Details

    Description

      I would like to use attributes originaly with namespaces. E.g. i have two main tags:

      <dc:contributor xml:lang="cz">John Doe</dc:contributor>
      <dc:contributor lang="en">Mark Tester</dc:contributor>

      Field definition, where I remove namespaces, is
      <field column="attr_myTest" xpath="/metadata/contributor/@lang"/>

      The result of the extraction is (extracted only one attribute):
      "attr_myTest": ["en"]
      but the expected result should be extracted all two attributes:
      "attr_myTest": ["cz", "en"]

      I would like to ask you to implement a patch to be able to use attributes with namespaces in original XML. For tag names removing namespaces works fine. Thanks a lot!

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              machj Jan Mach
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 3h
                  3h
                  Remaining:
                  Remaining Estimate - 3h
                  3h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified