Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      9

      Description

      WebDAV allows to some degree to contain unknown XML content inside of WebDAV
      XML entities. For example, <prop> may contain not only WebDAV properties, but
      also any other fancy content. This is called "extension points".

      The problem is that this unknown content might already be prefixed, but webdav-
      interop adds another prefix to it (because the fancy content has the same token
      name, but is using a different prefix).

      Solution: The prefix must only get added to elements which do not have a
      prefix currently. The XSL that would do this is contained in
      optimized_prefix.xsl, which was deleted hastily...

        Activity

        Hide
        daniel_manzke added a comment -

        Until there is no solution for the prefix.xsl, the deleted version will be
        restored

        Show
        daniel_manzke added a comment - Until there is no solution for the prefix.xsl, the deleted version will be restored
        Hide
        mkarg added a comment -

        Created an attachment (id=4)
        Proposed solution to double-prefixed-problem

        Show
        mkarg added a comment - Created an attachment (id=4) Proposed solution to double-prefixed-problem
        Hide
        mkarg added a comment -

        Attached proposed solution:

        Complete rewrite of prefix.xsl combining best of both, former prefix.xsl and
        optimized_prefix.xsl.

        This code not only solves this bug, but also seems to be the best optimized
        code possible with XSLT 1.0:

        • Fixes this item, i. e. no more double-prefixed results.
        • Shortest possible output by merging prefixes of the same namespace URI into a
          single d: prefix and stripping unnecessary whitespace.
        • Fastest possible compilation time due to it's shortness.
        • Fastest possible execution time by absolute simplicity (just one general rule
          directly bypassing the complete element including all children and attributes
          in a single XSLT command; one exceptional rule prefixing all DAV:-
          namespaced elements not being prefixed already).
        • Well readable and best-as-possible to understand due to just two rules, dense
          and sensible filter rules, and smart formatting.

        This code was tested successfully with Windows Vista Business in both, CLI and
        FileExplorer way.

        Show
        mkarg added a comment - Attached proposed solution: Complete rewrite of prefix.xsl combining best of both, former prefix.xsl and optimized_prefix.xsl. This code not only solves this bug, but also seems to be the best optimized code possible with XSLT 1.0: Fixes this item, i. e. no more double-prefixed results. Shortest possible output by merging prefixes of the same namespace URI into a single d: prefix and stripping unnecessary whitespace. Fastest possible compilation time due to it's shortness. Fastest possible execution time by absolute simplicity (just one general rule directly bypassing the complete element including all children and attributes in a single XSLT command; one exceptional rule prefixing all DAV:- namespaced elements not being prefixed already). Well readable and best-as-possible to understand due to just two rules, dense and sensible filter rules, and smart formatting. This code was tested successfully with Windows Vista Business in both, CLI and FileExplorer way.

          People

          • Assignee:
            webdav-interop-issues
            Reporter:
            mkarg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: