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