Details

    • Urgency:
      Normal

      Description

      In an effort to use the sourcetypeaction mechanism in the sitemap to intelligently prcess input files, I noticed that RDF/XML formats require extra processing for their action type to be determined. Obviously because neither doctype nor processing instruction events are likely to appear in RDF/XML formats and the only way to choose an action should be base on the namespace. The namespace of the root element doesn't help either in this case, as an RDF file might or not start with the rdf:RDF root element, therefore checking only the root element doesn't necessarily imply the actual format of the file.

        Activity

        Hide
        sindoc Sina K. Heshmati added a comment -
        As a workaround, I'd suggest to add handle RDF files a bit differently, that is continue parsing until the namespace of the current element event is different from that of RDF. Note that, this solution has worked so far for the SKOS plugin and it's also likely to work for FOAF and DOAP plugins but it certainly could be extended to cover more special cases.

        Please feel free to share your thought on this issue.
        Show
        sindoc Sina K. Heshmati added a comment - As a workaround, I'd suggest to add handle RDF files a bit differently, that is continue parsing until the namespace of the current element event is different from that of RDF. Note that, this solution has worked so far for the SKOS plugin and it's also likely to work for FOAF and DOAP plugins but it certainly could be extended to cover more special cases. Please feel free to share your thought on this issue.
        Hide
        sindoc Sina K. Heshmati added a comment -
        I forgot to make a patch from $FORREST_HOME, so just in case, here [1] is another one.

        [1] http://sina.khakbaz.com/2007/patches/sourcetypeaction-rdf.patch
        Show
        sindoc Sina K. Heshmati added a comment - I forgot to make a patch from $FORREST_HOME, so just in case, here [1] is another one. [1] http://sina.khakbaz.com/2007/patches/sourcetypeaction-rdf.patch
        Hide
        ipv6guru Gavin added a comment -
        Patch has been applied.
        Show
        ipv6guru Gavin added a comment - Patch has been applied.
        Hide
        ipv6guru Gavin added a comment -
        David has applied this.
        Show
        ipv6guru Gavin added a comment - David has applied this.

          People

          • Assignee:
            Unassigned
            Reporter:
            sindoc Sina K. Heshmati
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development