cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivelin Ivanov" <ive...@apache.org>
Subject Re: XMLForm stylesheet change suggestion
Date Tue, 17 Sep 2002 03:41:11 GMT

Thanks for reminding me that this is an outstanding bug.

I have applied a patch and closed it. It is a little different than yours,
but it achieves the same effect.

Please do a diff and let me know if you think the patch won't work.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9716


Best,

Ivelin


----- Original Message -----
From: <pwcml@blackbearsolutions.com>
To: <cocoon-users@xml.apache.org>
Sent: Monday, September 16, 2002 9:46 PM
Subject: XMLForm stylesheet change suggestion


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>



---------------------------------------------------------------------
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