空 XML 拆分出默认 XML [英] Empty XML split out default XML

查看:21
本文介绍了空 XML 拆分出默认 XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个传递给 XSL 的 XML,它给出了标准输出.根据某些情况,我有可能有时将 XML 设为空.如果我们有空的 XML 并在 XSL 中获得标准或默认输出,有什么办法吗?

I have a XML passing to the XSL which gives the standard output. There is chance that i will get the XML as empty some times based on some cases. Is there any way if we have empty XML and get the standard or default out put in XSL ?

推荐答案

如果我们有空的 XML 有什么办法吗并获得标准或默认值放入XSL?

Is there any way if we have empty XML and get the standard or default out put in XSL ?

您永远不会拥有空 XML".

根据定义,格式良好的 XML 文档必须有一个 top 元素.如果将 XSLT 1.0 转换应用于任何格式不正确的 XML 文档,则任何兼容的 XSLT 1.0 处理器都必须产生错误并且不进行任何处理.

By definition, a well-formed XML document must have a top element. If an XSLT 1.0 transformation is being applied on any non-well-formed XML document, any compliant XSLT 1.0 processor must produce an error and no processing is done.

这篇关于空 XML 拆分出默认 XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆