|

 | [back to Using XML data islands in Domino Designer]
The XSL page
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<xsl:template match="atfunc">
<H1><xsl:value-of select="atfunc_name"/></H1>
</xsl:template>
<!-- BEGIN TABLE -->
<xsl:template match="usecontext">
<!--This line sets the table border to 1 pixel, inset, black-->
<TABLE STYLE="border:1px inset black">
<!--The first row of the table. The font of the text in this row is set 7 point, boldface, Verdana, and the background color of the row to light grey.-->
<TR STYLE="font-size:7pt; background-color: lightgrey; font-family:Verdana; font-weight:bold">
<!--This is the text that will appear spanning the first two cells of the first row of the table. -->
<TD COLSPAN="2">Works in formulas on...?</TD>
<!--The end of the first row in the table.-->
</TR>
<!--The subsequent rows of the table. The font is set to Verdana, 7 point. The cell padding is set to 0 pixels and 0 pixels.-->
<TR STYLE="font-family:Verdana; font-size:7pt; padding:0px 0px">
<xsl:for-each select="use_smicon">
<TD>SmartIcon:
<xsl:choose>
<xsl:when test=".[. = 'no']" ><FONT COLOR="RED"><B><xsl:value-of select="."/></B></FONT></xsl:when>
<xsl:otherwise><FONT COLOR="gray"><B><xsl:value-of select="."/></B></FONT></xsl:otherwise>
</xsl:choose>
</TD>
</xsl:for-each>
<xsl:for-each select="use_button">
<TD>Button:
<xsl:choose>
<xsl:when test=".[. = 'no']" ><FONT COLOR="RED"><B><xsl:value-of select="."/></B></FONT></xsl:when>
<xsl:otherwise><FONT COLOR="gray"><B><xsl:value-of select="."/></B></FONT></xsl:otherwise>
</xsl:choose>
</TD>
</xsl:for-each>
<xsl:for-each select="use_sel_form">
<TD>Selection formula:
<xsl:choose>
<xsl:when test=".[. = 'no']" ><FONT COLOR="RED"><B><xsl:value-of select="."/></B></FONT></xsl:when>
<xsl:otherwise><FONT COLOR="gray"><B><xsl:value-of select="."/></B></FONT></xsl:otherwise>
</xsl:choose>
</TD>
</xsl:for-each>
<xsl:for-each select="use_col_form">
<TD>View column:
<xsl:choose>
<xsl:when test=".[. = 'no']" ><FONT COLOR="RED"><B><xsl:value-of select="."/></B></FONT></xsl:when>
<xsl:otherwise><FONT COLOR="gray"><B><xsl:value-of select="."/></B></FONT></xsl:otherwise>
</xsl:choose>
</TD>
</xsl:for-each>
<xsl:for-each select="use_agent_man">
<TD>Agent (manual):
<xsl:choose>
<xsl:when test=".[. = 'no']" ><FONT COLOR="RED"><B><xsl:value-of select="."/></B></FONT></xsl:when>
<xsl:otherwise><FONT COLOR="gray"><B><xsl:value-of select="."/></B></FONT></xsl:otherwise>
</xsl:choose>
</TD>
</xsl:for-each>
<xsl:for-each select="use_agent_mail">
<TD>Agent (mail):
<xsl:choose>
<xsl:when test=".[. = 'no']" ><FONT COLOR="RED"><B><xsl:value-of select="."/></B></FONT></xsl:when>
<xsl:otherwise><FONT COLOR="gray"><B><xsl:value-of select="."/></B></FONT></xsl:otherwise>
</xsl:choose>
</TD>
</xsl:for-each>
<!--This line ends this row of the table. -->
</TR>
<TR STYLE="font-family:Verdana; font-size:7pt; padding:0px 3px">
<xsl:for-each select="use_agent_sched">
<TD>Agent (scheduled):
<xsl:choose>
<xsl:when test=".[. = 'no']" ><FONT COLOR="RED"><B><xsl:value-of select="."/></B></FONT></xsl:when>
<xsl:otherwise><FONT COLOR="gray"><B><xsl:value-of select="."/></B></FONT></xsl:otherwise>
</xsl:choose>
</TD>
</xsl:for-each>
<xsl:for-each select="use_hidewhen">
<TD>Hide-when property:
<xsl:choose>
<xsl:when test=".[. = 'no']" ><FONT COLOR="RED"><B><xsl:value-of select="."/></B></FONT></xsl:when>
<xsl:otherwise><FONT COLOR="gray"><B><xsl:value-of select="."/></B></FONT></xsl:otherwise>
</xsl:choose>
</TD>
</xsl:for-each>
<xsl:for-each select="use_section">
<TD>Section:
<xsl:choose>
<xsl:when test=".[. = 'no']" ><FONT COLOR="RED"><B><xsl:value-of select="."/></B></FONT></xsl:when>
<xsl:otherwise><FONT COLOR="gray"><B><xsl:value-of select="."/></B></FONT></xsl:otherwise>
</xsl:choose>
</TD>
</xsl:for-each>
<xsl:for-each select="use_window">
<TD>Window title:
<xsl:choose>
<xsl:when test=".[. = 'no']" ><FONT COLOR="RED"><B><xsl:value-of select="."/></B></FONT></xsl:when>
<xsl:otherwise><FONT COLOR="gray"><B><xsl:value-of select="."/></B></FONT></xsl:otherwise>
</xsl:choose>
</TD>
</xsl:for-each>
<xsl:for-each select="use_hot_act">
<TD>Action hotspot:
<xsl:choose>
<xsl:when test=".[. = 'no']" ><FONT COLOR="RED"><B><xsl:value-of select="."/></B></FONT></xsl:when>
<xsl:otherwise><FONT COLOR="gray"><B><xsl:value-of select="."/></B></FONT></xsl:otherwise>
</xsl:choose>
</TD>
</xsl:for-each>
<xsl:for-each select="use_hot_pop">
<TD>Popup hotspot:
<xsl:choose>
<xsl:when test=".[. = 'no']" ><FONT COLOR="RED"><B><xsl:value-of select="."/></B></FONT></xsl:when>
<xsl:otherwise><FONT COLOR="gray"><B><xsl:value-of select="."/></B></FONT></xsl:otherwise>
</xsl:choose>
</TD>
</xsl:for-each>
</TR>
<TR STYLE="font-family:Verdana; font-size:7pt; padding:0px 3px">
<xsl:for-each select="use_field">
<TD>Field:
<xsl:choose>
<xsl:when test=".[. = 'no']" ><FONT COLOR="RED"><B><xsl:value-of select="."/></B></FONT></xsl:when>
<xsl:otherwise><FONT COLOR="gray"><B><xsl:value-of select="."/></B></FONT></xsl:otherwise>
</xsl:choose>
</TD>
</xsl:for-each>
<xsl:for-each select="use_form_form">
<TD>Form:
<xsl:choose>
<xsl:when test=".[. = 'no']" ><FONT COLOR="RED"><B><xsl:value-of select="."/></B></FONT></xsl:when>
<xsl:otherwise><FONT COLOR="gray"><B><xsl:value-of select="."/></B></FONT></xsl:otherwise>
</xsl:choose>
</TD>
</xsl:for-each>
<xsl:for-each select="use_form_act">
<TD>Form action:
<xsl:choose>
<xsl:when test=".[. = 'no']" ><FONT COLOR="RED"><B><xsl:value-of select="."/></B></FONT></xsl:when>
<xsl:otherwise><FONT COLOR="gray"><B><xsl:value-of select="."/></B></FONT></xsl:otherwise>
</xsl:choose>
</TD>
</xsl:for-each>
<xsl:for-each select="use_view_act">
<TD>View action:
<xsl:choose>
<xsl:when test=".[. = 'no']" ><FONT COLOR="RED"><B><xsl:value-of select="."/></B></FONT></xsl:when>
<xsl:otherwise><FONT COLOR="gray"><B><xsl:value-of select="."/></B></FONT></xsl:otherwise>
</xsl:choose>
</TD>
</xsl:for-each>
<xsl:for-each select="use_navig">
<TD>Navigator:
<xsl:choose>
<xsl:when test=".[. = 'no']" ><FONT COLOR="RED"><B><xsl:value-of select="."/></B></FONT></xsl:when>
<xsl:otherwise><FONT COLOR="gray"><B><xsl:value-of select="."/></B></FONT></xsl:otherwise>
</xsl:choose>
</TD>
</xsl:for-each>
<xsl:for-each select="use_layout">
<TD>Layout region:
<xsl:choose>
<xsl:when test=".[. = 'no']" ><FONT COLOR="RED"><B><xsl:value-of select="."/></B></FONT></xsl:when>
<xsl:otherwise><FONT COLOR="gray"><B><xsl:value-of select="."/></B></FONT></xsl:otherwise>
</xsl:choose>
</TD>
</xsl:for-each>
</TR>
</TABLE>
</xsl:template>
<!-- END TABLE -->
</xsl:stylesheet>
[back to Using XML data islands in Domino Designer]
 |
 |  |
|