[英]XQuery: produce element with attr also with value?
For example, I want to create such element below: 例如,我想在下面创建这样的元素:
<book year="2010">Example name</book>
What is the correct usage of computed element constructor? 计算元素构造函数的正确用法是什么?
element book {
attribute year { 2010 },
'Example name'
}
Or some would suggest 或有人会建议
element book {
attribute year { 2010 },
text { 'Example name' }
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.