简体   繁体   English

XSLT在大写字母上添加空格吗?

[英]XSLT adding in space on capital letters?

I found a similar question asking about how to split XSLT on capital letters, but I didn't understand fully how to use it. 我发现了一个类似的问题,询问如何在大写字母上分割XSLT,但我不完全了解如何使用它。 I apologize for my incompentence here, but could someone please give me an explantation on how one could split: 我为我的不熟练表示歉意,但有人可以请我解释一下如何拆分:

 <field name="HelloWorld">this doesn't matter </field>

So the gist would be take the name attribute and split it to be: 因此要点将是name属性并将其拆分为:

 <p>Hello World: This doesn't matter</p>

I have it all but the breaking it up part. 除了拆分部分,我已经拥有全部。

假设使用XSLT / XPath 2.0,则可以使用replace('HelloWorld', '\\p{Lu}', ' $0')来获取Hello World因此可以使用replace(@name, '\\p{Lu}', ' $0')

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

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