简体   繁体   English

如何在XSLT中将文本设置为粗体,下划线格式

[英]How to format the text as bold , underline in XSLT

I've got some XML piece of code. 我有一些XML代码。 I would like to use XSLT to transform it into HTML . 我想使用XSLT将其转换为HTML。 The problem is that I would like to format the output text as bold and underline. 问题是我想将输出文本设置为粗体和下划线。 But I don't know how to format text as bold and underline in XSLT. 但是我不知道如何在XSLT中将文本设置为粗体和下划线格式。

Would you please help me? 你能帮我吗? Please provide some example code for this. 请为此提供一些示例代码。 Thank you so much. 非常感谢。

If you're producing HTML, then you format using HTML: 如果要生成HTML,请使用HTML设置格式:

<b>bold</b> <u>underline</u> <strong>strong</strong>

...or CSS: ...或CSS:

<span style="font-weight:bold;text-decoration:underline;">
   bold underlined
</span>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM