Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xslt 更改字体大小_Xslt_Sharepoint 2010 - Fatal编程技术网

Xslt 更改字体大小

Xslt 更改字体大小,xslt,sharepoint-2010,Xslt,Sharepoint 2010,我对xsl非常陌生,有点不知所措 如果满足条件,如何简单地更改一行字段的字体大小?该条件基于多项选择字段。如何获得正确的值?使用contains()方法 你能给我举个例子吗 提前谢谢 编辑1 <XmlDefinition> <View Name="{F8A953EA-F74C-4F70-99C2-2239531D137E}" MobileView="TRUE" MobileDefaultView="TRUE" Type="HTML" DisplayNam

我对xsl非常陌生,有点不知所措

如果满足条件,如何简单地更改一行字段的字体大小?该条件基于多项选择字段。如何获得正确的值?使用contains()方法

你能给我举个例子吗

提前谢谢

编辑1

<XmlDefinition>
            <View Name="{F8A953EA-F74C-4F70-99C2-2239531D137E}" MobileView="TRUE" MobileDefaultView="TRUE" Type="HTML" DisplayName="Tous les mails" Url="/Dossier/Forms/Tous.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/images/dlicon.png">
                <Query>
                    <OrderBy>
                        <FieldRef Name="Date" Ascending="FALSE"/>
                    </OrderBy>
                </Query>
                <ViewFields>
                    <FieldRef Name="DocIcon"/>
                    <FieldRef Name="LinkFilenameNoMenu"/>
                    <FieldRef Name="Type"/>
                    <FieldRef Name="Dossier"/>
                    <FieldRef Name="Dossier_x003a_N_x00b0__x002f_Dossier"/>
                    <FieldRef Name="Date"/>
                    <FieldRef Name="EmailSender"/>
                    <FieldRef Name="EmailTo"/>
                    <FieldRef Name="EmailCc"/>
                    <FieldRef Name="FileSizeDisplay"/>
                    <FieldRef Name="CaThermique"/>
                    <FieldRef Name="etat_ca_chauffage"/>
                    <FieldRef Name="CaElectricite"/>
                    <FieldRef Name="etat_ca_electricite"/>
                    <FieldRef Name="Notifie_a"/>
                    <FieldRef Name="Created"/>
                    <FieldRef Name="Author"/>
                    <FieldRef Name="Dossier_x003a_lien_dossier"/>
                    <FieldRef Name="EmailSubject"/>
                </ViewFields>
                <RowLimit Paged="TRUE">30</RowLimit>
                <Aggregations Value="Off"/>
                <ViewStyle ID="17"/>
                <Toolbar Type="Standard"/>
            </View>
        </XmlDefinition>

30
基本上,如果“etat_ca_chaufage”等于某个值,则所有字段都应使用粗体…

例如

<xsl:template match="**YOUR CONDITION GOES HERE **">
    <xsl:apply-templates select="@*"/>
    <xsl:attribute name="font-weight">bold</xsl:attribute>
    <xsl:apply-templates select="*"/>
</xsl:template>

<xsl:template match="@* | node()">
    <xsl:copy>
        <xsl:apply-templates select="@* | node()"/>
    </xsl:copy>
</xsl:template>

大胆的

您能提供一个输入XML片段吗?带有示例XML和相应预期输出的问题。。更受鼓励。:)我希望足够清楚…我是一个初学者。。。
<xsl:template match="**YOUR CONDITION GOES HERE **">
    <xsl:apply-templates select="@*"/>
    <xsl:attribute name="font-weight">bold</xsl:attribute>
    <xsl:apply-templates select="*"/>
</xsl:template>

<xsl:template match="@* | node()">
    <xsl:copy>
        <xsl:apply-templates select="@* | node()"/>
    </xsl:copy>
</xsl:template>