Infopath入门到精通系列-6 Infopath xsl文件解析校验
Posted 分享牛
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Infopath入门到精通系列-6 Infopath xsl文件解析校验相关的知识,希望对你有一定的参考价值。
1、Infopath 介绍
Infopath工具保存后默认生成xsn格式的文件。
将上图中的文件后缀名修改为全国面上广告申请.zip 并进行解压。如下图所示:
效果图如下:
2、Infopath xsl文件内容
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2021-08-11T07:06:00" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:xdExtension="http://schemas.microsoft.com/office/infopath/2003/xslt/extension" xmlns:xdXDocument="http://schemas.microsoft.com/office/infopath/2003/xslt/xDocument" xmlns:xdSolution="http://schemas.microsoft.com/office/infopath/2003/xslt/solution" xmlns:xdFormatting="http://schemas.microsoft.com/office/infopath/2003/xslt/formatting" xmlns:xdImage="http://schemas.microsoft.com/office/infopath/2003/xslt/xImage" xmlns:xdUtil="http://schemas.microsoft.com/office/infopath/2003/xslt/Util" xmlns:xdMath="http://schemas.microsoft.com/office/infopath/2003/xslt/Math" xmlns:xdDate="http://schemas.microsoft.com/office/infopath/2003/xslt/Date" xmlns:sig="http://www.w3.org/2000/09/xmldsig#" xmlns:xdSignatureProperties="http://schemas.microsoft.com/office/infopath/2003/SignatureProperties" xmlns:ipApp="http://schemas.microsoft.com/office/infopath/2006/XPathExtension/ipApp" xmlns:xdEnvironment="http://schemas.microsoft.com/office/infopath/2006/xslt/environment" xmlns:xdUser="http://schemas.microsoft.com/office/infopath/2006/xslt/User" xmlns:xdServerInfo="http://schemas.microsoft.com/office/infopath/2009/xslt/ServerInfo">
<td style="BORDER-TOP: #000000 1pt solid; BORDER-RIGHT: #000000 1pt solid; VERTICAL-ALIGN: middle; BORDER-BOTTOM: #000000 1pt solid; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; PADDING-LEFT: 1px; BORDER-LEFT: #000000 1pt solid; PADDING-RIGHT: 1px">
<div align="center">
<font size="2" face="微软雅黑"><span title="" class="xdTextBox" hideFocus="1" xd:xctname="PlainText" xd:CtrlId="CTRL21" xd:binding="my:费用类型" tabIndex="0" style="WIDTH: 100%">
<xsl:value-of select="my:费用类型"/>
</span>
</font>
</div>
</td>
<td style="BORDER-TOP: #000000 1pt solid; BORDER-RIGHT: #000000 1pt solid; VERTICAL-ALIGN: middle; BORDER-BOTTOM: #000000 1pt solid; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; PADDING-LEFT: 1px; BORDER-LEFT: #000000 1pt solid; PADDING-RIGHT: 1px">
<div align="center">
<font size="2" face="微软雅黑"><span title="" class="xdTextBox" hideFocus="1" xd:xctname="PlainText" xd:CtrlId="CTRL22" xd:binding="my:媒体大类" tabIndex="0" style="WIDTH: 100%">
<xsl:value-of select="my:媒体大类"/>
</span>
</font>
</div>
</td>
<td style="BORDER-TOP: #000000 1pt solid; BORDER-RIGHT: #000000 1pt solid; VERTICAL-ALIGN: middle; BORDER-BOTTOM: #000000 1pt solid; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; PADDING-LEFT: 1px; BORDER-LEFT: #000000 1pt solid; PADDING-RIGHT: 1px">
<div align="center">
<font size="2" face="微软雅黑"><span title="" class="xdTextBox" hideFocus="1" xd:xctname="PlainText" xd:CtrlId="CTRL23" xd:binding="my:媒体小类" tabIndex="0" style="WIDTH: 100%">
<xsl:value-of select="my:媒体小类"/>
</span>
</font>
</div>
</td>
<td style="BORDER-TOP: #000000 1pt solid; BORDER-RIGHT: #000000 1pt solid; VERTICAL-ALIGN: middle; BORDER-BOTTOM: #000000 1pt solid; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; PADDING-LEFT: 1px; BORDER-LEFT: #000000 1pt solid; PADDING-RIGHT: 1px">
<div align="center">
<font size="2" face="微软雅黑"><span title="" class="xdTextBox" hideFocus="1" xd:xctname="PlainText" xd:CtrlId="CTRL24" xd:binding="my:活动形式" tabIndex="0" style="WIDTH: 100%">
<xsl:value-of select="my:活动形式"/>
</span>
</font>
</div>
</td>
<td style="BORDER-TOP: #000000 1pt solid; BORDER-RIGHT: #000000 1pt solid; VERTICAL-ALIGN: middle; BORDER-BOTTOM: #000000 1pt solid; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; PADDING-LEFT: 1px; BORDER-LEFT: #000000 1pt solid; PADDING-RIGHT: 1px">
<div align="center">
<font size="2" face="微软雅黑"><span title="" class="xdTextBox" hideFocus="1" xd:xctname="PlainText" xd:CtrlId="CTRL25" xd:binding="my:推广品牌id" tabIndex="0" style="WIDTH: 100%">
<xsl:value-of select="my:推广品牌id"/>
</span>
</font>
</div>
</td>
<td style="BORDER-TOP: #000000 1pt solid; BORDER-RIGHT: #000000 1pt solid; VERTICAL-ALIGN: middle; BORDER-BOTTOM: #000000 1pt solid; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; PADDING-LEFT: 1px; BORDER-LEFT: #000000 1pt solid; PADDING-RIGHT: 1px">
<div align="center">
<font size="2" face="微软雅黑"><span title="" class="xdTextBox" hideFocus="1" xd:xctname="PlainText" xd:CtrlId="CTRL26" xd:binding="my:推广品牌" tabIndex="0" style="WIDTH: 100%">
<xsl:value-of select="my:推广品牌"/>
</span>
</font>
</div>
</td>
<td style="BORDER-TOP: #000000 1pt solid; BORDER-RIGHT: #000000 1pt solid; VERTICAL-ALIGN: middle; BORDER-BOTTOM: #000000 1pt solid; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; PADDING-LEFT: 1px; BORDER-LEFT: #000000 1pt solid; PADDING-RIGHT: 1px">
<div align="center">
<font size="2" face="微软雅黑"><span title="" class="xdTextBox" hideFocus="1" xd:xctname="PlainText" xd:CtrlId="CTRL27" xd:binding="my:数量" tabIndex="0" style="WIDTH: 100%">
<xsl:value-of select="my:数量"/>
</span>
</font>
</div>
</td>
<td style="BORDER-TOP: #000000 1pt solid; BORDER-RIGHT: #000000 1pt solid; VERTICAL-ALIGN: middle; BORDER-BOTTOM: #000000 1pt solid; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; PADDING-LEFT: 1px; BORDER-LEFT: #000000 1pt solid; PADDING-RIGHT: 1px">
<div align="center">
<font size="2" face="微软雅黑"><span title="" class="xdTextBox" hideFocus="1" xd:xctname="PlainText" xd:CtrlId="CTRL28" xd:binding="my:单位" tabIndex="0" style="WIDTH: 100%">
<xsl:value-of select="my:单位"/>
</span>
</font>
</div>
</td>
<td style="BORDER-TOP: #000000 1pt solid; BORDER-RIGHT: #000000 1pt solid; VERTICAL-ALIGN: middle; BORDER-BOTTOM: #000000 1pt solid; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; PADDING-LEFT: 1px; BORDER-LEFT: #000000 1pt solid; PADDING-RIGHT: 1px">
<div align="center">
<font size="2" face="微软雅黑"><span title="" class="xdTextBox" hideFocus="1" xd:xctname="PlainText" xd:CtrlId="CTRL29" xd:binding="my:申请金额" tabIndex="0" style="WIDTH: 100%">
<xsl:value-of select="my:申请金额"/>
</span>
</font>
</div>
</td>
<td style="BORDER-TOP: #000000 1pt solid; BORDER-RIGHT: #000000 1pt solid; VERTICAL-ALIGN: middle; BORDER-BOTTOM: #000000 1pt solid; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; PADDING-LEFT: 1px; BORDER-LEFT: #000000 1pt solid; PADDING-RIGHT: 1px">
<div align="center">
<font size<以上是关于Infopath入门到精通系列-6 Infopath xsl文件解析校验的主要内容,如果未能解决你的问题,请参考以下文章
Infopath入门到精通系列-2 Infopath 文件内容查看
Infopath入门到精通系列-4 Infopath myschema.xsd文件 解析
Infopath入门到精通系列-3 Infopath manifest.xsf文件 解析