Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-613

Cannot pass value to stylesheet parameter if parameter name is namespace-qualified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.10
    • CurrentCVS
    • XalanC
    • None
    • winxp/ix86

    Description

      Passing a value to a top-level parameter of a stylesheet works only if the parameter name is non-qualified.
      Otherwise, xalan fails with an "invalid qname" exception.
      Using the example in the binary distribution, try the following:

      > UseStylesheetParam.exe prefix:name 'value'

      UseStylesheetParam Error:
      InvalidQNameException: The name '

      {0}

      ' is not a valid QName. (, line -1, column -1)

      I did not find any API to set a parameter that takes the namespace URI of the parameter name as an input in addition to the local name.

      Attachments

        1. patch.diff
          1 kB
          David N Bertoni
        2. patch.diff
          44 kB
          David N Bertoni
        3. patch.diff
          18 kB
          David N Bertoni
        4. XalanParamHolder.hpp
          2 kB
          David N Bertoni

        Activity

          People

            dbertoni David N Bertoni
            aleguenn@free.fr Alain Le Guennec
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: