English 中文(简体)
更改数据的质量
原标题:XQuery vs XSLT for transforming data

您在将XML数据转换为其他数据类别方面的应用中使用了什么? WHY?

最佳回答

虽然XQuerycan用于简单的转变,但它缺乏XSLT(特别是模板和<xsl:apply-templates>指令)的力量和完整性。

XSLT是一种特别用来处理树木结构的语言。 这样做仍然最好。

在使用XML数据库时,最好决定使用(效率)XQuery提取必要的XML节点,然后从这里与XSLT进行转换。 甚至现在,一些锡克谢克尔加工商(通过延期)也允许这样做。 下波的XSLT 2.x/XQuery 1.x规格将很可能使这种通用性成为这些语文的正式特征。

问题回答

这取决于你需要哪种类型的“翻译”,XQuery允许你就你的XML数据进行查询,即像Q。

XSLT允许你在XML上使用一种风格,如CSS使用超文本。





相关问题
how to represent it in dtd?

I have two element action and guid. guid is a required field when action is add. but when action is del it will not appear in file. How to represent this in dtd ?

.Net application configuration add xml-data

I need to add xml-content to my application configuration file. Is there a way to add it directly to the appSettings section or do I need to implement a configSection? Is it possible to add the xml ...

XStream serializing collections

I have a class structure that I would like to serialize with Xstream. The root class contains a collection of other objects (of varying types). I would like to only serialize part of the objects that ...

MS Word splits words in its XML format

I have a Word 2003 document saved as a XML in WordProcessingML format. It contains few placeholders which will be dynamically replaced by an appropriate content. But, the problem is that Word ...

Merging an XML file with a list of changes

I have two XML files that are generated by another application I have no control over. The first is a settings file, and the second is a list of changes that should be applied to the first. Main ...

How do I check if a node has no siblings?

I have a org.w3c.dom.Node object. I would like to see if it has any other siblings. Here s what I have tried: Node sibling = node.getNextSibling(); if(sibling == null) return true; else ...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

热门标签