home *** CD-ROM | disk | FTP | other *** search
/ ftp.tcs3.com / ftp.tcs3.com.tar / ftp.tcs3.com / DRIVERS / Audio / Office2010 / InfoPath.en-us / InfLR.cab / IPDSINTL.DLL_1033 / HTML / HORIZONTALRC.XCT < prev    next >
Extensible Markup Language  |  2010-03-29  |  8KB  |  1 lines

  1. ∩╗┐<?xml version="1.0" encoding="UTF-8"?><!-- _lcid="1033" _version="" --><!-- _LocalBinding --><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003"><xsl:output method="html"></xsl:output><xsl:param name="XPath"></xsl:param><xsl:param name="NodeList"></xsl:param><xsl:param name="IsSecondaryDS"></xsl:param><xsl:param name="DefaultFontSize"></xsl:param><xsl:variable name="fIsSimpleContent" select="xd:aj_getPropByName('fIsSimpleContent')"></xsl:variable><xsl:variable name="fXHTMLContent" select="xd:aj_getPropByName('fXHTMLContent')"></xsl:variable><xsl:variable name="fIsLeafNode" select="xd:aj_getPropByName('fIsLeafNode')"></xsl:variable><xsl:variable name="fLabelAutoGeneration" select="xd:aj_getPropByName('labelAutoGeneration')"></xsl:variable><xsl:variable name="fAutoCMEMode" select="xd:aj_getPropByName('fAutoCMEMode')"></xsl:variable><xsl:variable name="dataColumns" select="xd:aj_getDataTableColumn(0)"></xsl:variable><xsl:template match="*"><xsl:if test="$XPath"><TABLE CLASS="xdLayout" BORDER="0"><xsl:attribute name="STYLE">width:<xsl:choose><xsl:when test="xd:aj_getPropByName('fTopLevelControl')"><xsl:value-of select="xd:aj_getPropByName('ViewWidth')"></xsl:value-of>;</xsl:when><xsl:otherwise>100%;</xsl:otherwise></xsl:choose></xsl:attribute><COLGROUP><COL STYLE="width:50%;"></COL><COL STYLE="width:50%;"></COL></COLGROUP><TBODY VALIGN="top"><TR><TD STYLE="margin:0px;padding:0px"><xsl:call-template name="BuildTableHeader"></xsl:call-template></TD><TD STYLE="margin:0px;padding:0px"><xsl:call-template name="BuildTableBody"></xsl:call-template></TD></TR></TBODY></TABLE></xsl:if></xsl:template><xsl:template name="BuildTableHeader"><TABLE CLASS="xdRepeatingTable" STYLE="width:100%; margin-top:2pt;" BORDER="1"><TBODY><xsl:choose><xsl:when test="$dataColumns"><xsl:call-template name="BuildTableSectionFromSpecified"><xsl:with-param name="fGenerateTarget" select="'label'"></xsl:with-param></xsl:call-template></xsl:when><xsl:otherwise><xsl:call-template name="BuildTableSectionFromDefault"><xsl:with-param name="fGenerateTarget" select="'label'"></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></TBODY></TABLE></xsl:template><xsl:template name="BuildTableRows"><TABLE CLASS="xdRepeatingTable" BORDER="1"><COLGROUP><COL STYLE="width:145px;"></COL></COLGROUP><TBODY><xsl:choose><xsl:when test="$dataColumns"><xsl:call-template name="BuildTableSectionFromSpecified"><xsl:with-param name="fGenerateTarget" select="'control'"></xsl:with-param></xsl:call-template></xsl:when><xsl:otherwise><xsl:call-template name="BuildTableSectionFromDefault"><xsl:with-param name="fGenerateTarget" select="'control'"></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></TBODY></TABLE></xsl:template><xsl:template name="BuildTableBody"><xsl:variable name="RepetitiveContainer" select="xd:aj_getPropByName('contextNode')"></xsl:variable><xsl:variable name="RelativeXPath" select="xd:aj_getPropByName('RelativeXPath')"></xsl:variable><xsl:variable name="ContextXPath" select="xd:aj_getPropByName('ContextXPath')"></xsl:variable><xsl:variable name="fDirLTR" select="xd:aj_getPropByName('fDirLTR')"></xsl:variable><SPAN CLASS="xdRepeatingSection xdRepeating" TITLE="" TABINDEX="0" xd:aj_tabIndex="-1" xd:aj_indocui_tabIndex="0" xd:xctname="RepeatingSection" xd:aj_type="1" xd:aj_nodematch="{name($RepetitiveContainer)}" xd:aj_uniqueid="{xd:aj_getNodeID($RepetitiveContainer)}"><xsl:attribute name="align"><xsl:choose><xsl:when test="$fDirLTR">left</xsl:when><xsl:otherwise>right</xsl:otherwise></xsl:choose></xsl:attribute><xsl:attribute name="xd:aj_node"><xsl:choose><xsl:when test="$RelativeXPath = '.'"><xsl:value-of select="$XPath"></xsl:value-of></xsl:when><xsl:otherwise><xsl:value-of select="$ContextXPath"></xsl:value-of></xsl:otherwise></xsl:choose></xsl:attribute><xsl:attribute name="STYLE"><xsl:text>display:inline-block;vertical-align:top;margin-</xsl:text><xsl:choose><xsl:when test="$fDirLTR">right</xsl:when><xsl:otherwise>left</xsl:otherwise></xsl:choose><xsl:text>:-1pt; margin-top:2pt; padding:0px; border:0px;</xsl:text><xsl:text>width:145px;</xsl:text></xsl:attribute><xsl:if test="not($IsSecondaryDS)"><xsl:attribute name="xd:aj_indocui_text"><!-- _locID_tags="DefaultRepeatingPlaceholderText" _locComment="The following text needs to be localized." -->Insert item</xsl:attribute></xsl:if><xsl:attribute name="xd:CtrlId"><xsl:value-of select="xd:aj_getComponentID()"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:aj_mode"><xsl:value-of select="xd:aj_getTemplateMode()"></xsl:value-of></xsl:attribute><xsl:if test="$fIsSimpleContent"></xsl:if><xsl:if test="$fXHTMLContent"></xsl:if><xsl:if test="$fIsLeafNode"></xsl:if><xsl:call-template name="BuildTableRows"></xsl:call-template></SPAN></xsl:template><xsl:template name="BuildTableSectionFromDefault"><xsl:param name="fGenerateTarget"></xsl:param><xsl:apply-templates select="@*[name() != 'xsi:type']" mode="Build"><xsl:with-param name="fGenerateTarget" select="$fGenerateTarget"></xsl:with-param></xsl:apply-templates><xsl:if test="$fIsSimpleContent or $fXHTMLContent or $fIsLeafNode"><xsl:apply-templates select="." mode="Build"><xsl:with-param name="fGenerateTarget" select="$fGenerateTarget"></xsl:with-param></xsl:apply-templates></xsl:if><xsl:apply-templates select="*" mode="Build"><xsl:with-param name="fGenerateTarget" select="$fGenerateTarget"></xsl:with-param></xsl:apply-templates></xsl:template><xsl:template name="BuildTableSectionFromSpecified"><xsl:param name="fGenerateTarget"></xsl:param><xsl:param name="iColumn" select="0"></xsl:param><xsl:variable name="column" select="xd:aj_getDataTableColumn($iColumn)"></xsl:variable><xsl:if test="$column"><xsl:apply-templates select="$column" mode="Build"><xsl:with-param name="fGenerateTarget" select="$fGenerateTarget"></xsl:with-param></xsl:apply-templates><xsl:call-template name="BuildTableSectionFromSpecified"><xsl:with-param name="fGenerateTarget" select="$fGenerateTarget"></xsl:with-param><xsl:with-param name="iColumn" select="$iColumn+1"></xsl:with-param></xsl:call-template></xsl:if></xsl:template><xsl:template match="* | @*" mode="Build"><xsl:param name="fGenerateTarget"></xsl:param><xsl:variable name="strSnifferSuggestion" select="xd:aj_getSuggestionForNode(., $NodeList)"></xsl:variable><xsl:if test="$strSnifferSuggestion != 'digsig'"><xsl:if test="$strSnifferSuggestion='plaintext' or $strSnifferSuggestion='checkbox' or $strSnifferSuggestion='dropdown' or $strSnifferSuggestion='dtpicker'"><TR><xsl:attribute name="STYLE"><xsl:text>min-height:</xsl:text><xsl:value-of select="$DefaultFontSize * 2"></xsl:value-of><xsl:text>pt;</xsl:text></xsl:attribute><xsl:choose><xsl:when test="$fGenerateTarget='label'"><TD STYLE="vertical-align:middle"><xsl:call-template name="BuildLabel"><xsl:with-param name="componentName" select="$strSnifferSuggestion"></xsl:with-param></xsl:call-template></TD></xsl:when><xsl:when test="$fGenerateTarget='control'"><TD><DIV><xsl:value-of disable-output-escaping="yes" select="xd:aj_getXHTMLforComponent($strSnifferSuggestion, ., $NodeList, '')"></xsl:value-of></DIV></TD></xsl:when></xsl:choose></TR></xsl:if></xsl:if></xsl:template><xsl:template name="BuildLabel"><xsl:param name="componentName"></xsl:param><DIV><xsl:choose><xsl:when test="$fLabelAutoGeneration and not($fAutoCMEMode)"><xsl:value-of disable-output-escaping="yes" select="xd:aj_getLabelHTML($componentName, .)"></xsl:value-of></xsl:when><xsl:otherwise>┬á</xsl:otherwise></xsl:choose></DIV></xsl:template></xsl:stylesheet>