映射生成数据但不生成xml [英] mapping generates data but no xml

查看:116
本文介绍了映射生成数据但不生成xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个自定义xslt映射,当我运行测试映射或调试时,它会在输出中生成正确的值,但缺少所有xml标记。它只是一个平面的数据文件。我做过其他工作正常的人,我看不出我做的不同。有没有人之前有过这个问题?
谢谢。

解决方案

我不是100%清楚你得到了什么,所以我不确定是否这是相关的,但是,有点令人讨厌的是,如果源文档中的xml的任何部分与xsl脚本中的任何模板都不匹配,则所有元素和属性的值将被复制到结果的末尾,而不会xml标记。
结果

I made a custom xslt map and when I run a test  map or debug, it generates the proper values in the output but all the xml tags are missing.  It's just a flat file of data.  I've done others that work fine and I don't see what I've done differently.  Has anyone had that problem before?
Thanks.

解决方案

I'm not 100% clear on what you're getting, so I'm not sure if this would be relevant but, somewhat fraustratingly, if you have any portion of xml in your source document that is not matched by any template in the xsl script the values of all the elements and attributes get copied accross to the end of the result, without the xml markup. 



这篇关于映射生成数据但不生成xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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