Uploaded image for project: 'Forrest'
  1. Forrest
  2. FOR-824

HowTo DTD 2.0 <a> elements not transformed correctly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.7, 0.8
    • Fix Version/s: 0.7, 0.8
    • Component/s: Skins (general issues)
    • Labels:
      None
    • Other Info:
      Patch available

      Description

      The v0.7 howto2document.xsl in $FORREST_HOME/main/webapp/resources/stylesheets does not process a HowTo DTD 2.0 <a> section correctly. Transformation to document v1.3 should transform <a> to <link>

        Activity

        Hide
        masover Steve Masover added a comment -
        howto2document.xsl should include this template, as does docv20todocv13.xsl:

          <xsl:template match="a">
            <link>
              <xsl:apply-templates select="@*"/>
              <xsl:apply-templates select="node()"/>
            </link>
          </xsl:template>
        Show
        masover Steve Masover added a comment - howto2document.xsl should include this template, as does docv20todocv13.xsl:   <xsl:template match="a">     <link>       <xsl:apply-templates select="@*"/>       <xsl:apply-templates select="node()"/>     </link>   </xsl:template>
        Hide
        masover Steve Masover added a comment -
        The howto-v20 in forrest v 0.6 continued to allow fork, link, and jump elements; though document-v2.0 in v 0.6 had changed to use <a> elements with appropriate class attributes, e.g.: <a class="fork" ...>. In forrest v 0.7, howto-v20 dtd was made to conform to the <a> element link style of document-v2.0 (though the howto dtd version number was not changed). it appears that the stylesheet howto2document.xsl was not updated to reflect this change prior to release of forrest 0.7.
        Show
        masover Steve Masover added a comment - The howto-v20 in forrest v 0.6 continued to allow fork, link, and jump elements; though document-v2.0 in v 0.6 had changed to use <a> elements with appropriate class attributes, e.g.: <a class="fork" ...>. In forrest v 0.7, howto-v20 dtd was made to conform to the <a> element link style of document-v2.0 (though the howto dtd version number was not changed). it appears that the stylesheet howto2document.xsl was not updated to reflect this change prior to release of forrest 0.7.
        Hide
        crossley David Crossley added a comment -
        We use the howto-v20 for the Forrest website and its <a> elements are transformed properly.

        Perhaps you are trying to fix some other issue. Please describe your problem, preferably on the mailing list.

        The howto2document.xsl does not need to handle the <a> elements. They are dealt with later in the processing by docv20todocv13.xsl which converts to Forrest's internal format (currently document-v13 later will be xhtml2).

        Would you please explain what you mean by "howto dtd version number was not changed".
        Show
        crossley David Crossley added a comment - We use the howto-v20 for the Forrest website and its <a> elements are transformed properly. Perhaps you are trying to fix some other issue. Please describe your problem, preferably on the mailing list. The howto2document.xsl does not need to handle the <a> elements. They are dealt with later in the processing by docv20todocv13.xsl which converts to Forrest's internal format (currently document-v13 later will be xhtml2). Would you please explain what you mean by "howto dtd version number was not changed".
        Hide
        crossley David Crossley added a comment -
        Show
        crossley David Crossley added a comment - See discussion in http://marc.theaimsgroup.com/?t=114185209100002
        Hide
        crossley David Crossley added a comment -
        Thanks Steve. I added a fix to both 0.8-dev trunk and to 0.7 branch, to transform howto-v20 to the current internal format document-v13.
        Show
        crossley David Crossley added a comment - Thanks Steve. I added a fix to both 0.8-dev trunk and to 0.7 branch, to transform howto-v20 to the current internal format document-v13.

          People

          • Assignee:
            crossley David Crossley
            Reporter:
            masover Steve Masover
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development