XSD结构以CSV为路径,类型,基数 [英] XSD structure to CSV as path,type,cardinality

查看:170
本文介绍了XSD结构以CSV为路径,类型,基数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将XSD卸载到CSV文件中以构建映射文档。 CSV是在XSD中定义的所有标记的列表,格式为路径,类型,基数。像:

I need XSD unloaded into CSV file to build a mapping doc. The CSV is a list of all tags defined in XSD, in format path,type,cardinality. Something like:

tag1/tag2/tag3,E,0..n
tag1/tag2/tag3@attr1,A,0..n
tag1/tag2/tag4,E,1..1

XSD可以导入模式。有没有工具来完成这个任务?感谢。

XSD may import schemas. Is there a tool to accomplish this task? Thanks.

推荐答案

我发布了一个可能的解决方案此处。如果它是你愿意尝试,然后下载工具和示例文件;请按照文档中的步骤指导。如果您遇到任何问题,请使用网站上的联系信息(支持)给我发送电子邮件。

I've posted a possible solution here. If it is something you're willing to try, then download the tool and the sample files; please follow the document for step by step guidance. If you run into any issues, send me an email using the contact info (support) on the web site.

基数问题,再次,是非常棘手。我为你准备的样本(所有的下载链接都在文档中)是我使用的测试用例之一,除了我必须为你的文件布局提出一个特定的模板。一个似乎受到争论的问题是如何计算XPath的值,从XML Schema角度来看,遍历选择合成器。另一个,也不是那么有争议,是如何计算重复合成器下的粒子的基数等。

The cardinality problem, again, is very tricky. The sample I've prepared for you (all the download links are in the document) is one of the test cases I was using, except that I had to come up with a specific template for your file layout. One issue that seems to be subject to debate is how to calculate the value for XPaths that, from an XML Schema perspective, traverse choice compositors. Another, not so controversial maybe, is how to calculate the cardinality for particles under repeating compositors, etc.

这篇关于XSD结构以CSV为路径,类型,基数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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