Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
问题是如何从 ID 中获取零件,如下所示:
id="sometext_foldername-somesection-of-somepart"
我需要从此 ID 获取文件夹名称。我怎么才能得到它?对不起我的英语不好。
非常感谢!
解决了。答案是
substring-before(substring-after(@id,'_'),'-somesection-')
谢谢!