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

Xalan will not transform with non-prefixed namespace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Incomplete
    • 2.4Dx
    • None
    • None
    • Operating System: Windows XP
      Platform: PC
    • 11528

    Description

      If i have an XML file with the following namespace declaration...

      <?xml version="1.0"?>
      <Order xmlns="urn:schemas-basda-org:2000:purchaseOrder:xdr:3.01">
      <OrderHead>
      <Schema>
      <Version>3.01</Version>
      </Schema>
      </OrderHead>
      </Order>

      Xalan will not process/transform, using the following style sheet

      However, if I alter the namespace to...

      <Order xmlns:MYNAMESPACE="urn:schemas-basda-org:2000:purchaseOrder:xdr:3.01">
      <OrderHead>
      <Schema>
      <Version>3.01</Version>
      </Schema>
      </OrderHead>
      </Order>

      It does work!

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--test.xml
          0.3 kB
          rob anderson
        2. ASF.LICENSE.NOT.GRANTED--test.xsl
          0.8 kB
          rob anderson
        3. ASF.LICENSE.NOT.GRANTED--test.xsl
          0.8 kB
          rob anderson
        4. ASF.LICENSE.NOT.GRANTED--testbad.xml
          0.3 kB
          rob anderson

        Activity

          People

            Unassigned Unassigned
            roba@bml.uk.com rob anderson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: