如何创建本地化表单? [英] How to create a localized form ?
本文介绍了如何创建本地化表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好!
我是法国人,我正在使用法语版的OLSB。我想在公共网站上用英语创建一个表单。
现在,我成功创建了表单(字段,"谢谢"消息......)。请参见 http://olsb2.web.officelive.com/en_contact.aspx 。不幸的是,提交按钮仍然是法语。我试图自定义xlst代码,但我没有这样做。
下面是xlst代码(我添加了一小部分代码,下面用黄色粗体表示)
< xsl: stylesheet xmlns: xsl = " ; HTTP://www.w3.org/1999/XSL / Transform" xmlns: ol = " http://www.officelive.com" < font style ="color:red"> version = " 1.0" > |
< xsl:output method = " html" /> |
< xsl:template match = " /" > |
< table border = " 0" cellpadding = " 0" cellspacing = " 0" ; > |
< xsl:for-each 选择 = < font style ="color:blue">" // Schema / Field" > |
< tr valign = " top" > |
< td style = " padding-top:5px; padding-bottom:5px;" > |
< xsl:value-of 选择 = " @ DisplayName" /> |
< xsl:if test = " @ Required ='TRUE'" > |
< span style = " color:#FF0000; font-size:14px;" >& #160; * < / span > < / xsl:if > |
< br /> |
< ol:input > < font style ="font-size:11px"> |
< xsl:attribute name = " id" > |
< xsl:value-of 选择 = " @ Name" /> |
< / xsl:attribute > |
< xsl:attribute name = " title" > |
< xsl:value-of 选择 = < font style ="color:blue">" @ DisplayName" /> |
< / xsl:attribute > |
< / ol:input > |
< / td > |
< / tr > |
< tr valign = " top" > |
< td > |
< ol:validator > |
< xsl:attribute name = " id" > |
< xsl:value-of 选择 = " @ Name" /> |
< / xsl:attribute > ; |
< / ol:validator > |
< / td > |
< / tr > |
< / xsl: for-each > |
< tr > |
< td < font style ="color:red"> style = " padding-top:20px" > |
< ol:submit id = " btnSubmit" > |
< xsl:attribute name = " value" > |
< xsl:value-of 选择 = " Send" /> |
< / xsl:attribute > |
< / < font style ="font-size:11px"> ol:submit > | < / td > |
< / tr < font style ="color:blue">> |
< / table > |
< / xsl:template > |
< / xsl:stylesheet > ; 字体> |
解决方案
您好Renaud,
我不确定"发送"的位置价值来自。您是否尝试过以下操作:
< xsl:attribute name = " value" >
发送
< tr>
< / xsl:attribute < font style ="color:blue">>
Hi Everyone !
I'm French and I'm using French version of OLSB. I'd like to create a form in English on a public site.
For now, I succeeded in creating the form (fields, "thank you" message...). See http://olsb2.web.officelive.com/en_contact.aspx. Unfortunately, the submit button is still in French. I tried to customize the xlst code but I failed doing so.
Below is the xlst code (I added a small portion of code, highligted in yellow bold below)
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ol="http://www.officelive.com" version="1.0"> <xsl:output method="html" /> <xsl:template match="/"> <table border="0" cellpadding="0" cellspacing="0"> <xsl:for-each select="//Schema/Field"> <tr valign="top"> <td style="padding-top:5px;padding-bottom:5px;"> <xsl:value-of select="@DisplayName"/> <xsl:if test="@Required='TRUE'"> <span style="color:#FF0000;font-size:14px;"> *</span> </xsl:if> <br/> <ol:input> <xsl:attribute name="id"> <xsl:value-of select="@Name"/> </xsl:attribute> <xsl:attribute name="title"> <xsl:value-of select="@DisplayName"/> </xsl:attribute> </ol:input> </td> </tr> <tr valign="top"> <td> <ol:validator> <xsl:attribute name="id"> <xsl:value-of select="@Name" /> </xsl:attribute> </ol:validator> </td> </tr> </xsl:for-each> <tr > <td style="padding-top:20px"> <ol:submit id="btnSubmit"> <xsl:attribute name="value"> <xsl:value-of select="Send"/> </xsl:attribute> </ol:submit> </td> </tr> </table> </xsl:template> </xsl:stylesheet> 解决方案Hi Renaud,
I'm not sure where the "Send" value is coming from. Have you tried to do the following:
<xsl:attribute name="value"> Send </xsl:attribute>
这篇关于如何创建本地化表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取
|
15天全站免登陆