在XSLT中添加换行符和粗体字符 [英] Adding newline and bold character in XSLT
问题描述
朋友们,
我正在从数据库创建XML文件并将该文件转换为xslt.
我面临的问题是,如何在XML文件的节点中添加换行符和粗体标签,就像
我要用粗体显示马卡兰德
和换行符之后,在makarand之后,感谢和问候
请建议我如何达到相同的
< param/>
< param0>亲爱的马卡兰德,这是为了通知您,谢谢与问候
,团队印度
XSLT
< xsl:stylesheet version ="1.0" xmlns:xsl ="http://www.w3.org/1999/XSL/Transform">
< xsl:template match ="/">
< xsl:element name ="tr">
< xsl:element name ="td">
< xsl:value-of select ="/PARAM//Param0">
在此先感谢
Hi friends,
I am creating XML file from data base and transform that file to xslt.
Problem i am facing that how to add newline character and bold tag in node in my xml file look like
I want Makarand in bold
and newline after , after makarand and thanks and regards
Please suggest me how to achive the same
<param />
<param0>Dear Makarand, This is to inform you thatThank and Regards
,team India
XSLT
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:element name="tr">
<xsl:element name="td">
<xsl:value-of select="/PARAM//Param0">
Thanks in advance
推荐答案
在这里看看:
XSL转换(XSLT) [ ^ ]
快速浏览,请查看"2.7嵌入样式表"
Have a look here:
XSL Transformations (XSLT)[^]
For quickview, look at "2.7 Embedding Stylesheets"
这篇关于在XSLT中添加换行符和粗体字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!