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 / CHOICEGROUP.XCT < prev    next >
Extensible Markup Language  |  2010-03-29  |  3KB  |  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="fRepeatingComponent"></xsl:param><xsl:variable name="viewContextNode" select="xd:aj_getPropByName('viewContextNode')"></xsl:variable><xsl:variable name="fRecurseOnSiblings" select="xd:aj_getPropByName('fRecurseOnSiblings')"></xsl:variable><xsl:template match="* | @*"><DIV CLASS="xdSection xdRepeating" TABINDEX="0"><xsl:attribute name="xd:aj_uniqueid"><xsl:choose><xsl:when test="$fRecurseOnSiblings"><xsl:value-of select="xd:aj_getNodeID(..)"></xsl:value-of></xsl:when><xsl:otherwise><xsl:value-of select="xd:aj_getNodeID(.)"></xsl:value-of></xsl:otherwise></xsl:choose></xsl:attribute><xsl:attribute name="xd:aj_mode"><xsl:value-of select="xd:aj_getTemplateMode()"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:xctname"><xsl:choose><xsl:when test="$fRepeatingComponent">choicegrouprepeating</xsl:when><xsl:otherwise>choicegroup</xsl:otherwise></xsl:choose></xsl:attribute><xsl:attribute name="STYLE">margin-bottom: 6px;<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><xsl:choose><xsl:when test="$fRecurseOnSiblings"><xsl:for-each select="preceding-sibling::* | . | following-sibling::*"><xsl:if test="xd:aj_nodeCanBeRecursivelyApplied(.)"><xsl:apply-templates select="." mode="Build"></xsl:apply-templates></xsl:if></xsl:for-each></xsl:when><xsl:otherwise><xsl:for-each select="*"><xsl:if test="xd:aj_nodeCanBeRecursivelyApplied(.)"><xsl:apply-templates select="." mode="Build"></xsl:apply-templates></xsl:if></xsl:for-each></xsl:otherwise></xsl:choose><DIV>┬á</DIV></DIV></xsl:template><xsl:template match="*" mode="Build"><xsl:variable name="strSnifferSuggestion" select="xd:aj_getSuggestionForNode(., $NodeList)"></xsl:variable><xsl:if test="not($strSnifferSuggestion = 'digsig')"><DIV><xsl:choose><xsl:when test="$strSnifferSuggestion = 'repeatingtable'"><xsl:value-of disable-output-escaping="yes" select="xd:aj_getXHTMLforComponent('repeatingsectionfull', ., $viewContextNode, '')"></xsl:value-of></xsl:when><xsl:otherwise><xsl:value-of disable-output-escaping="yes" select="xd:aj_getXHTMLforComponent($strSnifferSuggestion, ., $viewContextNode, '')"></xsl:value-of></xsl:otherwise></xsl:choose></DIV></xsl:if></xsl:template></xsl:stylesheet>