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
/
SHAREPOINTFILEATTACHMENT.XCT
< prev
next >
Wrap
Extensible Markup Language
|
2010-03-29
|
3KB
|
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:variable name="scriptingID1" select="xd:aj_getComponentID()"></xsl:variable><xsl:variable name="scriptingID2" select="xd:aj_getComponentID()"></xsl:variable><xsl:param name="NodeList"></xsl:param><xsl:variable name="fRepetitive" select="xd:aj_getPropByName('fRepetitive')"></xsl:variable><xsl:variable name="fTopLevelControl" select="xd:aj_getPropByName('fTopLevelControl')"></xsl:variable><xsl:variable name="ViewWidth" select="xd:aj_getPropByName('ViewWidth')"></xsl:variable><xsl:template match="* | @*"><xsl:if test="$XPath"><xsl:choose><xsl:when test="$fRepetitive"><xsl:call-template name="BoundList"><xsl:with-param name="ItemsList" select="$NodeList"></xsl:with-param><xsl:with-param name="ItemXPath" select="$XPath"></xsl:with-param></xsl:call-template></xsl:when><xsl:otherwise><xsl:call-template name="BoundList"><xsl:with-param name="ItemsList" select="*"></xsl:with-param><xsl:with-param name="ItemXPath" select="concat($XPath,'/',name(*[1]))"></xsl:with-param></xsl:call-template></xsl:otherwise></xsl:choose></xsl:if></xsl:template><xsl:template name="BoundList"><xsl:param name="ItemsList"></xsl:param><xsl:param name="ItemXPath"></xsl:param><SPAN TITLE="" CLASS="xdSharePointFileAttachment" STYLE="width:130px;overflow:visible;text-align:left;" xd:xctname="SharePointFileAttachment" xd:CtrlId="{$scriptingID1}" xd:aj_uniqueid="{xd:aj_getNodeID($ItemsList[1])}" xd:aj_bound0="xd:inline" xd:disableEditing="yes" xd:aj_node="{$XPath}" xd:aj_type="0"><xsl:attribute name="xd:aj_node_value"><xsl:value-of select="$XPath"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:binding"><xsl:value-of select="$XPath"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:aj_node_msoinline"><xsl:value-of select="$XPath"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:aj_uniqueid_msoinline"><xsl:value-of select="xd:aj_getNodeID(.)"></xsl:value-of></xsl:attribute><xsl:attribute name="STYLE"><xsl:choose><xsl:when test="$fTopLevelControl">width:<xsl:value-of select="$ViewWidth"></xsl:value-of>;</xsl:when><xsl:otherwise>width:100%;</xsl:otherwise></xsl:choose></xsl:attribute><DIV><DIV TITLE="" CLASS="xdAttachItem" xd:aj_bound0="xd:inline" xd:aj_type="3" xd:xctname="SharePointAttachItem" xd:aj_node="{$ItemXPath}" xd:disableEditing="yes"><xsl:attribute name="xd:aj_node_value"><xsl:value-of select="$ItemXPath"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:aj_node_msoinline"><xsl:value-of select="$ItemXPath"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:aj_uniqueid_msoinline"><xsl:value-of select="xd:aj_getNodeID($ItemsList[1])"></xsl:value-of></xsl:attribute><A xd:aj_node_innerhtml="xdXDocument:GetNamedNodeProperty(., 'FileAttachURL', '')" xd:aj_bound1="innerhtml" xd:disableEditing="yes"><xsl:attribute name="xd:aj_type">0</xsl:attribute><xsl:attribute name="xd:aj_attrtype_innerhtml">text</xsl:attribute><xsl:attribute name="xd:aj_uniqueid_innerhtml"><xsl:value-of select="xd:aj_getNodeID($ItemsList[1])"></xsl:value-of></xsl:attribute></A></DIV></DIV></SPAN></xsl:template></xsl:stylesheet>