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
/
STRUCTUREDDATAFULL.XCT
< prev
next >
Wrap
Extensible Markup Language
|
2010-03-29
|
8KB
|
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:param name="NodeList"></xsl:param><xsl:param name="ChoiceGroupType"></xsl:param><xsl:variable name="fAttribute" select="xd:aj_getPropByName('fAttribute')"></xsl:variable><xsl:variable name="fSimpleContent" select="xd:aj_getPropByName('fIsSimpleContent')"></xsl:variable><xsl:variable name="fXHTMLContent" select="xd:aj_getPropByName('fXHTMLContent')"></xsl:variable><xsl:variable name="fLeafNode" select="xd:aj_getPropByName('fIsLeafNode')"></xsl:variable><xsl:variable name="componentToInsert" select="xd:aj_getPropByName('componentToInsert')"></xsl:variable><xsl:variable name="contextNode" 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="RecContainer" select="xd:aj_getPropByName('contextNodeRecControl')"></xsl:variable><xsl:variable name="fInsertRecBlock" select="xd:aj_getPropByName('fInsertRecBlock')"></xsl:variable><xsl:variable name="fRecurseOnSiblings" select="xd:aj_getPropByName('fRecurseOnSiblings')"></xsl:variable><xsl:variable name="fDirLTR" select="xd:aj_getPropByName('fDirLTR')"></xsl:variable><xsl:template match="* | @*"><xsl:if test="$XPath"><DIV CLASS="xdSection xdRepeating" TITLE="" TABINDEX="0" xd:aj_tabIndex="-1" xd:aj_indocui_tabIndex="0" xd:aj_uniqueid="{xd:aj_getNodeID($contextNode)}" xd:aj_type="1"><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:xctname"><xsl:choose><xsl:when test="$ChoiceGroupType='1'">choiceterm</xsl:when><xsl:when test="$ChoiceGroupType='2'">choicetermrepeating</xsl:when><xsl:otherwise>Section</xsl:otherwise></xsl:choose></xsl:attribute><xsl:attribute name="STYLE"><xsl:if test="$fInsertRecBlock and not($ChoiceGroupType='1' or $ChoiceGroupType='2')">background-color:#d4d0c8;color:white;</xsl:if>border: 0pt; margin-bottom: 0px;<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:attribute name="xd:aj_nodematch"><xsl:choose><xsl:when test="$RelativeXPath = '.'"><xsl:choose><xsl:when test="$fAttribute"><xsl:value-of select="concat('@',name())"></xsl:value-of></xsl:when><xsl:otherwise><xsl:value-of select="name()"></xsl:value-of></xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise><xsl:value-of select="name($contextNode)"></xsl:value-of></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:choose><xsl:when test="$fInsertRecBlock"><xsl:choose><xsl:when test="$ChoiceGroupType='1' or $ChoiceGroupType='2'"><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><div><xsl:choose><xsl:when test="$ChoiceGroupType='1'"><xsl:value-of disable-output-escaping="yes" select="xd:aj_getXHTMLforComponent('recsectionfull', ., $NodeList, '.')"></xsl:value-of></xsl:when><xsl:otherwise><xsl:value-of disable-output-escaping="yes" select="xd:aj_getXHTMLforComponent('repeatingrecsectionfull', ., $NodeList, '.')"></xsl:value-of></xsl:otherwise></xsl:choose></div><div> </div></xsl:when><xsl:otherwise><xsl:attribute name="xd:CtrlId"><xsl:value-of select="xd:aj_getPropByName('ctrlIdRecControl')"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:aj_mode"><xsl:value-of select="xd:aj_getPropByName('modeRecControl')"></xsl:value-of></xsl:attribute><xsl:attribute name="xd:aj_recursive">1</xsl:attribute><xsl:attribute name="disabled">disabled</xsl:attribute><!-- _locID_text="RecursiveUIText" _locComment="{StringCategory=TXT}" -->Recursive Section (user can insert this section within itself)</xsl:otherwise></xsl:choose></xsl:when><xsl:otherwise><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:if test="$fSimpleContent"></xsl:if><xsl:if test="$fXHTMLContent"></xsl:if><xsl:if test="$fLeafNode"></xsl:if><xsl:if test="$fRecurseOnSiblings"></xsl:if><xsl:choose><xsl:when test="$componentToInsert != '' and not($componentToInsert = 'sectionfull' and $RelativeXPath = '.') and not($fRecurseOnSiblings)"><xsl:apply-templates select="." mode="Choice"><xsl:with-param name="ComponentName" select="$componentToInsert"></xsl:with-param><xsl:with-param name="XPath" select="$RelativeXPath"></xsl:with-param></xsl:apply-templates></xsl:when><xsl:when test="$fAttribute"><xsl:apply-templates select="." mode="Build"><xsl:with-param name="ComponentXPath" select="'.'"></xsl:with-param></xsl:apply-templates></xsl:when><xsl:otherwise><xsl:if test="not($fRecurseOnSiblings)"><xsl:for-each select="@*[name() != 'xsi:type']"><xsl:if test="xd:aj_nodeCanBeRecursivelyApplied(.)"><xsl:apply-templates select="." mode="Build"></xsl:apply-templates></xsl:if></xsl:for-each></xsl:if><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:when test="$fSimpleContent or $fXHTMLContent or $fLeafNode"><DIV><xsl:value-of disable-output-escaping="yes" select="xd:aj_getXHTMLforXMLNode(., '.', $NodeList)"></xsl:value-of></DIV></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></xsl:otherwise></xsl:choose><DIV> </DIV><DIV> </DIV><DIV> </DIV></xsl:otherwise></xsl:choose></DIV></xsl:if></xsl:template><xsl:template match="@*" mode="Build"><xsl:param name="ComponentXPath"></xsl:param><DIV><xsl:value-of disable-output-escaping="yes" select="xd:aj_getXHTMLforXMLNode(., $ComponentXPath, $NodeList)"></xsl:value-of></DIV></xsl:template><xsl:template match="@* | *" mode="Choice"><xsl:param name="ComponentName"></xsl:param><xsl:param name="XPath"></xsl:param><xsl:if test="$ComponentName != 'digsig'"><DIV><xsl:value-of disable-output-escaping="yes" select="xd:aj_getXHTMLforComponent($ComponentName, ., $NodeList, $XPath)"></xsl:value-of></DIV></xsl:if></xsl:template><xsl:template match="*" mode="Build"><xsl:param name="ComponentXPath"></xsl:param><xsl:variable name="strSnifferSuggestion" select="xd:aj_getSuggestionForNode(., $NodeList)"></xsl:variable><xsl:if test="not($fRecurseOnSiblings)"><xsl:if test="@*[name() != 'xsi:type'] and not(xd:aj_ComponentHandlesAttrRecursion($strSnifferSuggestion))"><xsl:for-each select="@*[name() != 'xsi:type']"><xsl:apply-templates select="." mode="Build"></xsl:apply-templates></xsl:for-each></xsl:if></xsl:if><xsl:if test="not($strSnifferSuggestion = 'digsig')"><DIV><xsl:variable name="nColumnCount" select="count(descendant::* | @*[name() != 'xsi:type'] | */@*[name() != 'xsi:type'])"></xsl:variable><xsl:choose><xsl:when test="$strSnifferSuggestion = 'repeatingtable' and $nColumnCount > 5"><xsl:value-of disable-output-escaping="yes" select="xd:aj_getXHTMLforComponent('repeatingsectionfull', ., $NodeList, string($ComponentXPath))"></xsl:value-of></xsl:when><xsl:otherwise><xsl:value-of disable-output-escaping="yes" select="xd:aj_getXHTMLforComponent($strSnifferSuggestion, ., $NodeList, string($ComponentXPath))"></xsl:value-of></xsl:otherwise></xsl:choose></DIV></xsl:if></xsl:template></xsl:stylesheet>