cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pw...@blackbearsolutions.com
Subject XMLForm stylesheet change suggestion
Date Tue, 17 Sep 2002 02:46:07 GMT
I have a change for the file wizard2html.xsl which will remove the caption 
that appears on the side of the page.  If someone would tell me the proper 
way to submit this information in the future, I would be happy to comply.

original code:
         <xsl:for-each select="*[name() != 'xf:submit']">
          <xsl:choose>
            <xsl:when test="name() = 'error'"/>
            <xsl:when test="xf:*">
                <xsl:apply-templates select="."/>
            </xsl:when>
            <xsl:otherwise>
                <xsl:copy-of select="."/>
            </xsl:otherwise>
           </xsl:choose>
         </xsl:for-each>


modified code:
         <xsl:for-each select="*[name() != 'xf:submit']">
          <xsl:choose>
            <xsl:when test="name() = 'error'"/>
<!-- start new code -->
            <xsl:when test="name() = 'xf:caption'">
              <xsl:if test="count(parent::node()/xf:caption) > 1">
                <xsl:if test="parent::node()/xf:caption[1]  != .">
                  <tr>
                    <td align="center" colspan="3">
                      <xsl:value-of select="."/>
                    </td>
                  </tr>
                  <tr>
                    <td colspan="3">
                    </td>
                  </tr>
                </xsl:if>
              </xsl:if>
            </xsl:when>
<!-- end new code -->
            <xsl:when test="xf:*">
                <xsl:apply-templates select="."/>
            </xsl:when>
            <xsl:otherwise>
                <xsl:copy-of select="."/>
            </xsl:otherwise>
           </xsl:choose>
         </xsl:for-each>
        <tr>
          <td align="center" colspan="3">
            <xsl:for-each select="*[name() = 'xf:submit']">
              <xsl:copy-of select="." />
              <xsl:text> </xsl:text>
            </xsl:for-each>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message