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 / HYPERLINKBOX.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="IsSecondaryDS"></xsl:param><xsl:variable name="scriptingID" select="xd:aj_getComponentID()"></xsl:variable><xsl:variable name="attributeXPath" select="xd:aj_getPropByName('attributeXPath')"></xsl:variable><xsl:variable name="fInsideAnyTable" select="xd:aj_getPropByName('fInsideAnyTable')"></xsl:variable><xsl:template match="*|@*"><span CLASS="xdHyperlinkBox xdBehavior_Formatting xdHyperlinkBoxClickable" xd:xctname="HyperlinkBox" xd:CtrlId="{$scriptingID}" xd:aj_bound0="href" xd:aj_bound1="displaytext" xd:aj_tabIndex="0" TABINDEX="-1"><xsl:attribute name="STYLE"><xsl:if test="$fInsideAnyTable">width:100%;</xsl:if><xsl:value-of select="xd:aj_getDefaultFontFaceFontSizeStyle()"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:aj_promptText"><xsl:value-of select="xd:aj_getHyperlinkBoxControlAltText()"></xsl:value-of></xsl:attribute><xsl:if test="$IsSecondaryDS"><xsl:attribute name="xd:disableEditing">yes</xsl:attribute></xsl:if><xsl:if test="$XPath"><xsl:attribute name="xd:aj_type">0</xsl:attribute><xsl:attribute name="xd:aj_attrtype_href">text</xsl:attribute><xsl:attribute name="xd:aj_uniqueid_href"><xsl:value-of select="xd:aj_getNodeID(.)"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:aj_node_href"><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:boundProp">href</xsl:attribute><xsl:attribute name="tabStop">true</xsl:attribute><xsl:if test="$attributeXPath"><xsl:attribute name="xd:aj_type_secondary">0</xsl:attribute><xsl:attribute name="xd:aj_attrtype_displaytext">text</xsl:attribute><xsl:attribute name="xd:aj_uniqueid_displaytext"><xsl:value-of select="xd:aj_getNodeID(attribute::*[1])"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:boundPropSecondary">displaytext</xsl:attribute><xsl:attribute name="xd:binding_secondary"><xsl:value-of select="$attributeXPath"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:aj_node_displaytext"><xsl:value-of select="$attributeXPath"></xsl:value-of></xsl:attribute></xsl:if><button class="xdHyperlinkBoxButtonClickable"><img style="vertical-align:bottom" src="res://infopath.exe/hyperlinkbox.png"></img></button><span style="width:5px;"></span><xsl:choose><xsl:when test="string-length(.)!=0"><a class="hyperlinkAnchor"><xsl:attribute name="title"><xsl:value-of select="."></xsl:value-of></xsl:attribute><xsl:attribute name="href"><xsl:value-of select="."></xsl:value-of></xsl:attribute><xsl:choose><xsl:when test="$attributeXPath and string-length(normalize-space(attribute::*[1]))!=0"><xsl:value-of select="substring(normalize-space(attribute::*[1]), 0, 256)"></xsl:value-of></xsl:when><xsl:otherwise><xsl:value-of select="substring(normalize-space(.), 0, 256)"></xsl:value-of></xsl:otherwise></xsl:choose></a></xsl:when><xsl:otherwise><xsl:value-of select="xd:aj_getHyperlinkBoxControlAltText()"></xsl:value-of></xsl:otherwise></xsl:choose></xsl:if></span></xsl:template></xsl:stylesheet>