utf-x
  1. utf-x
  2. UTF_X-40

utf-x does not work with Saxon 8 on Windows

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.0.7 alpha
    • Fix Version/s: 0.0.8
    • Component/s: framework
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: All

    • Issuezilla Id:
      40

      Description

      Xalan fails to correctly import import the stylesheet from the wrapper when
      running under Windows. Possibly '/' vs '\' issue.

        Activity

        Hide
        jacekrad added a comment -

        ooops. I meant Saxon 8.

        Show
        jacekrad added a comment - ooops. I meant Saxon 8.
        Hide
        jacekrad added a comment -

        comment after some innititial investigation... :
        The exception occurs when trying to create a transformer in
        TestFileSuiteAssembler. Saxon 8 seems to have a problem with the URI in the
        href attribute of the xsl:import element set in the wrapper stylesheet. This
        URI does not explicitly set path separators '/' or '\' and is created using
        java.io.File.getParentFile().... which one would think should be language
        neutral. Saxon 8 on Windows is the only XSLT Processor/OS combination where
        this exception occurs so one would susspect some inconsistency between Saxon 8
        and Xalan with regards to dealing with xsl:import ... or a just a nasty bug in
        Saxon 8. Saxon 8 is a XSLT 2.0 processor where Xalan uses XLST 1.0 and there
        may be difference in the specs regarding the handling of xsl:import. Check XSLT
        1.0 and 2.0 specs.

        The approach would be to add some code in TestFiileSuideAssembler that
        serialises the DOM Document containing the wrapper stylesheet to see what
        exactly is passed to the Transformer. Serialised stylesheet should be checked
        against both of the specs.

        google search on XTSE0165 may prove useful

        Stack trace fragment:
        ---------------------
        samples:
        <javax.xml.transform.TransformerConfigurationException: Failed to compile
        stylesheet. 1 erro
        r detected.>
        [java] XTSE0165: net.sf.saxon.trans.DynamicError: Invalid relative URI
        [java] <2006-06-07 23:37:18,265> <ERROR> <main> <Could not create a file
        suite from D:\home\jacek\eclipse_workspace\utf-x\samples\address_bo
        ok\test\address_book_fo_test.xml>
        [java]

        {D:\home\jacek\eclipse_workspac...}

        : Illegal character in opaque
        part at index 2:
        [java] utfx.framework.MalformedStylesheetException:
        javax.xml.transform.TransformerConfigurationException: Failed to compile
        stylesheet. 1 e
        rror detected.

        Show
        jacekrad added a comment - comment after some innititial investigation... : The exception occurs when trying to create a transformer in TestFileSuiteAssembler. Saxon 8 seems to have a problem with the URI in the href attribute of the xsl:import element set in the wrapper stylesheet. This URI does not explicitly set path separators '/' or '\' and is created using java.io.File.getParentFile().... which one would think should be language neutral. Saxon 8 on Windows is the only XSLT Processor/OS combination where this exception occurs so one would susspect some inconsistency between Saxon 8 and Xalan with regards to dealing with xsl:import ... or a just a nasty bug in Saxon 8. Saxon 8 is a XSLT 2.0 processor where Xalan uses XLST 1.0 and there may be difference in the specs regarding the handling of xsl:import. Check XSLT 1.0 and 2.0 specs. The approach would be to add some code in TestFiileSuideAssembler that serialises the DOM Document containing the wrapper stylesheet to see what exactly is passed to the Transformer. Serialised stylesheet should be checked against both of the specs. google search on XTSE0165 may prove useful Stack trace fragment: --------------------- samples: <javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 1 erro r detected.> [java] XTSE0165: net.sf.saxon.trans.DynamicError: Invalid relative URI [java] <2006-06-07 23:37:18,265> <ERROR> <main> <Could not create a file suite from D:\home\jacek\eclipse_workspace\utf-x\samples\address_bo ok\test\address_book_fo_test.xml> [java] {D:\home\jacek\eclipse_workspac...} : Illegal character in opaque part at index 2: [java] utfx.framework.MalformedStylesheetException: javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 1 e rror detected.
        Hide
        jacekrad added a comment -

        further note:
        there is a newer release of saxon than the one used in utf-x

        Show
        jacekrad added a comment - further note: there is a newer release of saxon than the one used in utf-x
        Hide
        jacekrad added a comment -

        Sridhanya, please change status to STARTUS if you are working on the issue

        Show
        jacekrad added a comment - Sridhanya, please change status to STARTUS if you are working on the issue

          People

          • Assignee:
            sridhanya
            Reporter:
            jacekrad
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: