Uploaded image for project: 'Website'
  1. Website
  2. WEBSITE-25

TXT to MODX is Level case-sensitivity problem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • MOD validator
    • None

      Not sure where should I report bugs like this... But anyway if I have this line:

        1. Installation Level: Easy
          It gets converted to:
          <installation>
          <level>Easy</level>
          ...
          And in XSL file there is a case-sensitive mechanism to show a level of installation.
          <xsl:if test="mod:level='easy'">Easy</xsl:if>

      The converter should lowercase the level and the XSL should also be changed like this:
      REPLACE:
      <dt>Installation Level:</dt>
      <dd>
      <xsl:if test="mod:level='easy'">Easy</xsl:if>
      <xsl:if test="mod:level='intermediate'">Intermediate</xsl:if>
      <xsl:if test="mod:level='hard'">Hard</xsl:if>
      </dd>
      WITH:
      <dt>Installation Level:</dt>
      <dd>
      <xsl:choose>
      <xsl:when test="mod:level='easy'">Easy</xsl:when>
      <xsl:when test="mod:level='intermediate'">Intermediate</xsl:when>
      <xsl:when test="mod:level='hard'">Hard</xsl:when>
      <xsl:otherwise><xsl:value-of select="mod:level" /></xsl:otherwise>
      </xsl:choose>
      </dd>

            wGEric Eric Faerber [X] (Inactive)
            Nux Nux
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: