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
/
APPEND.XCT
< prev
next >
Wrap
Extensible Markup Language
|
2010-03-29
|
4KB
|
1 lines
<?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:template match="* | @*"><xsl:if test="$XPath"><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="componentName" select="xd:aj_getPropByName('componentName')"></xsl:variable><xsl:variable name="fDirLTR" select="xd:aj_getPropByName('fDirLTR')"></xsl:variable><DIV 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">margin-bottom: 6px;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><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:for-each select="*"><xsl:if test="xd:aj_nodeCanBeRecursivelyApplied(.)"><xsl:apply-templates select="." mode="Build"><xsl:with-param name="RepetitiveContainer" select="$RepetitiveContainer"></xsl:with-param><xsl:with-param name="Position" select="position()"></xsl:with-param></xsl:apply-templates></xsl:if></xsl:for-each></DIV></xsl:if></xsl:template><xsl:template match="*" mode="Build"><xsl:param name="ComponentXPath"></xsl:param><xsl:param name="RepetitiveContainer"></xsl:param><xsl:param name="Position"></xsl:param><xsl:variable name="ControlNumber" select="xd:aj_setAppendOnlyControlNum($Position)"></xsl:variable><xsl:choose><xsl:when test="$Position = 1"><xsl:value-of disable-output-escaping="yes" select="xd:aj_getXHTMLforComponent('expressionbox', ., $RepetitiveContainer, string($ComponentXPath))"></xsl:value-of></xsl:when><xsl:when test="$Position = 2"><xsl:value-of disable-output-escaping="yes" select="xd:aj_getXHTMLforComponent('expressionbox', ., $RepetitiveContainer, string($ComponentXPath))"></xsl:value-of><xsl:variable name="ControlNumberPlusOne" select="xd:aj_setAppendOnlyControlNum($Position + 1)"></xsl:variable><xsl:value-of disable-output-escaping="yes" select="xd:aj_getXHTMLforComponent('expressionbox', ., $RepetitiveContainer, string($ComponentXPath))"></xsl:value-of></xsl:when><xsl:otherwise><xsl:variable name="strSnifferSuggestion" select="xd:aj_getSuggestionForNode(., $RepetitiveContainer)"></xsl:variable><xsl:variable name="strControlType"><xsl:choose><xsl:when test="$strSnifferSuggestion = 'richtext'">richtext</xsl:when><xsl:otherwise>expressionbox</xsl:otherwise></xsl:choose></xsl:variable><xsl:variable name="ControlNumberPlusOne" select="xd:aj_setAppendOnlyControlNum($Position + 1)"></xsl:variable><DIV><xsl:value-of disable-output-escaping="yes" select="xd:aj_getXHTMLforComponent(string($strControlType), ., $RepetitiveContainer, string($ComponentXPath))"></xsl:value-of></DIV></xsl:otherwise></xsl:choose></xsl:template></xsl:stylesheet>