用xml字符串替换dummy属性 [英] Replacing dummy attribute with string of xml

查看:98
本文介绍了用xml字符串替换dummy属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

XML / XSL非常新,所以如果这是一个非常简单的问题,请原谅我。我已经把头发拉了好几天了。


我正在研究一个内部应用程序,它从自定义Excel电子表格中获取输出,然后创建一个XML中的Final Cut Pro序列。由于Excel处理嵌套重复元素的方式,我需要找到一种方法来替换我用一系列重复元素创建的虚拟元素。我可以使用一个简单的查找和替换文本编辑器方法,但我更愿意在可能的情况下处理xslt转换中的所有内容。有什么想法吗?


谢谢!


我现有的XSL(它只是删除空标签)贴在底部。


代码如下。

Very new to XML/XSL, so please forgive me if this is an incredibly simple question. I''ve been pulling my hair out over this for several days now.

I''m working on an internal application that takes the output from a custom Excel spreadsheet, and creates a Final Cut Pro sequence in XML. Due to the way Excel handles nested repeating elements, I need to find a way to replace a dummy element I have created with a whole series of repeating elements. I could use a simple find and replace text editor method, but I would prefer to take care of everything in the xslt transform if possible. Any ideas?

Thanks!


My existing XSL (which just strips out the empty tags) is posted at the bottom.

The code is as follows.

展开 | 选择 | Wrap | 行号

推荐答案

欢迎来到TSDN ...


我不确定所需的输出是什么。

请发布你的最终结构期待获得。
Welcome to TSDN...

I''m not sure what is the desired output.
Please post the final structure you expect to obtain too.



欢迎来到TSDN ...


我是不确定什么是所需的输出。

请发布您希望获得的最终结构。
Welcome to TSDN...

I''m not sure what is the desired output.
Please post the final structure you expect to obtain too.



谢谢!


对不起,这是最终结构:


Thanks!

Sorry, here is the final structure:


展开 | 选择 | Wrap | 行号


所以你将使用2个XML文件来获得结果。

然后你需要一个合并/连接方法。

目前我只能指向你一些链接。

看看
合并两个文件
合并XML文档帮助。
So you will use 2 XML files to get the result.
Then you need a merge/concat method.
For the moment I only can point you to some links.
See if
Merge two files or
Merging XML Documents help.


这篇关于用xml字符串替换dummy属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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