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 / TWOCOLUMNLAYOUT.XCT < prev    next >
Extensible Markup Language  |  2010-03-29  |  5KB  |  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:variable name="fDirLTR" select="xd:aj_getPropByName('fDirLTR')"></xsl:variable><xsl:variable name="fColumnEmphasis" select="xd:aj_getPropByName('fColumnEmphasis')"></xsl:variable><xsl:variable name="fLabelControlStacked" select="xd:aj_getPropByName('fLayoutLabelControlStacked')"></xsl:variable><xsl:variable name="fCellsSplitEqually" select="xd:aj_getPropByName('fLayoutCellsSplitEqually')"></xsl:variable><xsl:variable name="fHeadingPresent" select="xd:aj_getPropByName('fLayoutHeadingPresent')"></xsl:variable><xsl:variable name="fSubheadingPresent" select="xd:aj_getPropByName('fLayoutSubheadingPresent')"></xsl:variable><xsl:template match="/"><div></div><table class="xdFormLayout xdTableStyleTwoCol"><xsl:attribute name="STYLE"><xsl:choose><xsl:when test="xd:aj_getPropByName('fTopLevelControl')">width:<xsl:value-of select="xd:aj_getPropByName('ViewWidth')"></xsl:value-of>;</xsl:when><xsl:otherwise>width:100%;</xsl:otherwise></xsl:choose></xsl:attribute><tbody valign="top"><xsl:choose><xsl:when test="$fHeadingPresent"><tr><xsl:attribute name="class"><xsl:choose><xsl:when test="$fLabelControlStacked">xdHeadingRow</xsl:when><xsl:when test="$fColumnEmphasis">xdHeadingRowEmphasis</xsl:when><xsl:when test="$fCellsSplitEqually">xdHeadingRow</xsl:when><xsl:otherwise>xdHeadingRowEmphasis</xsl:otherwise></xsl:choose></xsl:attribute><td xd:layoutText="Click to add heading" colspan="2"><!-- _locID@xd:layoutText="Ghosted_text_content1"  _locComment="{StringCategory=TXT}" --><xsl:attribute name="class"><xsl:choose><xsl:when test="$fLabelControlStacked">xdHeadingCell</xsl:when><xsl:when test="$fColumnEmphasis">xdHeadingCellEmphasis</xsl:when><xsl:when test="$fCellsSplitEqually">xdHeadingCell</xsl:when><xsl:otherwise>xdHeadingCellEmphasis</xsl:otherwise></xsl:choose></xsl:attribute><h2></h2></td></tr></xsl:when></xsl:choose><xsl:choose><xsl:when test="$fSubheadingPresent"><tr><xsl:attribute name="class"><xsl:choose><xsl:when test="$fLabelControlStacked">xdSubheadingRow</xsl:when><xsl:when test="$fColumnEmphasis">xdSubheadingRowEmphasis</xsl:when><xsl:when test="$fCellsSplitEqually">xdSubheadingRow</xsl:when><xsl:otherwise>xdSubheadingRowEmphasis</xsl:otherwise></xsl:choose></xsl:attribute><td xd:layoutText="Click to add subheading" colspan="2"><!-- _locID@xd:layoutText="Ghosted_text_content2"  _locComment="{StringCategory=TXT}" --><xsl:attribute name="class"><xsl:choose><xsl:when test="$fLabelControlStacked">xdSubheadingCell</xsl:when><xsl:when test="$fColumnEmphasis">xdSubheadingCellEmphasis</xsl:when><xsl:when test="$fCellsSplitEqually">xdSubheadingCell</xsl:when><xsl:otherwise>xdSubheadingCellEmphasis</xsl:otherwise></xsl:choose></xsl:attribute><h3></h3></td></tr></xsl:when></xsl:choose><xsl:call-template name="BuildRows"></xsl:call-template><xsl:call-template name="BuildRows"></xsl:call-template><xsl:call-template name="BuildRows"></xsl:call-template></tbody></table></xsl:template><xsl:template name="BuildRows"><tr><xsl:attribute name="class"><xsl:choose><xsl:when test="$fLabelControlStacked">xdTableLabelControlStackedRow</xsl:when><xsl:when test="$fColumnEmphasis">xdTableEmphasisRow</xsl:when><xsl:when test="$fCellsSplitEqually">xdTableRow</xsl:when><xsl:otherwise>xdTableOffsetRow</xsl:otherwise></xsl:choose></xsl:attribute><td valign="top"><xsl:attribute name="class"><xsl:choose><xsl:when test="$fLabelControlStacked">xdTableLabelControlStackedCellLabel</xsl:when><xsl:when test="$fColumnEmphasis">xdTableEmphasisCellLabel</xsl:when><xsl:when test="$fCellsSplitEqually">xdTableCellLabel</xsl:when><xsl:otherwise>xdTableOffsetCellLabel</xsl:otherwise></xsl:choose></xsl:attribute><xsl:attribute name="xd:layoutText"><xsl:choose><xsl:when test="$fLabelControlStacked"><!-- _locID_text="Ghosted_text_content3"  _locComment="{StringCategory=TXT}" -->Add label and control</xsl:when><xsl:otherwise><!-- _locID_text="Ghosted_text_content4"  _locComment="{StringCategory=TXT}" -->Add label</xsl:otherwise></xsl:choose></xsl:attribute><xsl:attribute name="Width"><xsl:choose><xsl:when test="$fCellsSplitEqually">50%</xsl:when><xsl:otherwise>26%</xsl:otherwise></xsl:choose></xsl:attribute><xsl:if test="not($fLabelControlStacked)"><h4></h4></xsl:if></td><td valign="top"><xsl:attribute name="class"><xsl:choose><xsl:when test="$fLabelControlStacked">xdTableLabelControlStackedCellComponent</xsl:when><xsl:when test="$fColumnEmphasis">xdTableEmphasisCellComponent</xsl:when><xsl:when test="$fCellsSplitEqually">xdTableCellComponent</xsl:when><xsl:otherwise>xdTableOffsetCellComponent</xsl:otherwise></xsl:choose></xsl:attribute><xsl:attribute name="Width"><xsl:choose><xsl:when test="$fCellsSplitEqually">50%</xsl:when><xsl:otherwise>74%</xsl:otherwise></xsl:choose></xsl:attribute><xsl:attribute name="xd:layoutText"><xsl:choose><xsl:when test="$fLabelControlStacked"><!-- _locID_text="Ghosted_text_content6"  _locComment="{StringCategory=TXT}" -->Add label and control</xsl:when><xsl:otherwise><!-- _locID_text="Ghosted_text_content7"  _locComment="{StringCategory=TXT}" -->Add control</xsl:otherwise></xsl:choose></xsl:attribute></td></tr></xsl:template></xsl:stylesheet>