ivelin 2002/09/28 12:43:34 Modified: src/webapp/samples/xmlform/stylesheets wizard2html.xsl Log: added support for xforms HINT and HELP tags, by Simon Price <[EMAIL PROTECTED]> and Konstantin Piroumian <[EMAIL PROTECTED]> Revision Changes Path 1.6 +27 -20 xml-cocoon2/src/webapp/samples/xmlform/stylesheets/wizard2html.xsl Index: wizard2html.xsl =================================================================== RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/xmlform/stylesheets/wizard2html.xsl,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- wizard2html.xsl 17 Sep 2002 04:03:41 -0000 1.5 +++ wizard2html.xsl 28 Sep 2002 19:43:34 -0000 1.6 @@ -7,7 +7,8 @@ parts of a page orthogonal to the xmlform. author: Ivelin Ivanov, [EMAIL PROTECTED], May 2002 - original Author: Konstantin Piroumian, [EMAIL PROTECTED], 21-Feb-2002 + author: Konstantin Piroumian <[EMAIL PROTECTED]>, September 2002 + author: Simon Price <[EMAIL PROTECTED]>, September 2002 --> @@ -26,12 +27,14 @@ <![CDATA[ H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : white;} - B{color : white;background-color : yellow;} + B{color : white;background-color : blue;} HR{color : #0086b2;} input { background-color: #FFFFFF; color: #000099; border: 1px solid #0000FF; } table { background-color: #EEEEEE; color: #000099; font-size: x-small; border: 2px solid brown;} select { background-color: #FFFFFF; color: #000099 } + .caption { line-height: 195% } .error { color: #FF0000; } + .help { color: #0000FF; font-style: italic; } .invalid { color: #FF0000; border: 2px solid #FF0000; } .info { color: #0000FF; border: 1px solid #0000FF; } .repeat { border: 0px inset #999999;border: 1px inset #999999; width: 100%; } @@ -154,26 +157,30 @@ <xsl:template match="xf:*"> <tr> - <td align="left"> - <xsl:value-of select="xf:caption" /> - </td> - <td align="left"> - <table class="plaintable"> - <tr> - <td align="left"> - <xsl:copy-of select="." /> - </td> - <xsl:if test="xf:violation"> - <td align="left" class="{xf:violation[1]/@class}" width="100%"> - <xsl:for-each select="xf:violation"> - * <xsl:value-of select="." /> - <br/> - </xsl:for-each> + <td align="left" valign="top"> + <p class="caption"><xsl:value-of select="xf:caption" /></p> + </td> + <td align="left"> + <table class="plaintable"> + <tr> + <td align="left"> + <xsl:copy-of select="." /> </td> + <xsl:if test="xf:violation"> + <td align="left" class="{xf:violation[1]/@class}" width="100%"> + <xsl:for-each select="xf:violation"> + * <xsl:value-of select="." /> + <br/> + </xsl:for-each> + </td> + </xsl:if> + </tr> + </table> + <xsl:if test="xf:help"> + <div class="help"><xsl:value-of select="xf:help" /></div> + <br /> </xsl:if> - </tr> - </table> - </td> + </td> </tr> </xsl:template>
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]