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.
我想在 xpath 2.0 中创建一系列元素
您可以执行以下操作:
('a','b','c')
创建一个字符串序列。
我想做类似的事情:
(<a>1</a>,<a>2</a>,<a>3</a>)
创建一系列元素。
这可能吗?是的,我知道如何使用 XSLT。
提前致谢。
在 xpath 3.0 中,您可以使用xml-parse()如下函数:
xml-parse()
parse-xml("&lt;a&gt;1&lt;/a&gt;,&lt;a&gt;2&lt;/a&gt;,&lt;a&gt;3&lt;/a&gt;")