XSLT的拖放生成将HTML显示为HTML? [英] Drag-and-drop generation of XSLT for displaying XML as HTML?

查看:92
本文介绍了XSLT的拖放生成将HTML显示为HTML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(我已经搜索并浏览了XSLT的问题,以及Altova的产品,尽管还没有Stylus的产品。)

(I've searched and browsed XSLT questions, as well as looked at Altova's product, though not yet Stylus's product.)

我不想再听到XSLT很复杂,难以手工编码。这是HTML第一次普及的原因。 (我知道,苹果和橘子的比较,因为XSLT是一种处理语言,HTML只是一种显示和元标记语言。)但是现在很少人手工制作HTML。他们只是使用WYSIWIG编辑器,并进行他们的(编程)生活。

I do not want to hear again that XSLT is complicated and difficult to hand-code. That's how HTML was when it was first popularized. (I know, apples and oranges comparison because XSLT is a processing language and HTML is just a display and meta-tagging language.) But now very few people hand-craft HTML. They just use WYSIWIG editors and get on with their (programming) lives.

我知道XSLT可以做很多工作,一些可以做的任务并不简单。

And I know that XSLT can do a lot, and some tasks it can do are not simple.

但我的是。

我有简单的XML文件,如CUnit测试报告和PC-lint标准XML输出。我想要这样一个XML文件:

I have simple XML files, such as CUnit test reports, and PC-lint standard XML output. I want to take such an XML file and:


  1. 双击打开Greatest_XSLT_Editor

  2. 让它自动解析XML,并向我展示XML文档的树视图

  3. 让我拖放图形对象,如表和框,并将XML文档的元素从树视图到这些表和框中,使得

  4. 我得到漂亮的WYSIWIG显示我的XML数据AND

  5. 我点击保存样式表和它会提示我一个文件路径来保存自动生成的XSLT,当与XML相关联时,将以HTML的形式在Web浏览器中显示我的XML,如同步骤4中那样。

  6. 很好的感觉是它会询问我是否要在我的XML文件中添加一个指向我的新XSLT的指针,并为我提供一个另存为对话框

  1. Double-click to open in Greatest_XSLT_Editor
  2. Have it automatically parse the XML and show me a tree view of the XML document
  3. Let me drag and drop graphical objects like tables and boxes, and drag and drop elements of the XML document from the tree view into those tables and boxes, such that
  4. I get nice-looking WYSIWIG display of my XML data AND
  5. I click Save Style Sheet and it prompts me for a file path to save the automatically-generated XSLT that, when associated with the XML, will display my XML in a web browser as HTML looking as it did in step 4
  6. Nice touch would be that it asks me whether I'd like to add a pointer to my new XSLT in my XML file, and offers me a Save As dialog for that

不用说,我会使用我的拖放生成的XSLTs:
a。通过步骤6,让我的XML以我喜欢的方式显示,并且
b。使用xsltproc,将XML批量转换为HTML以便稍后显示

Needless to say, I would use my drag-and-drop generated XSLTs both: a. Via step 6, to have my XMLs displayed the way I like them and b. With xsltproc, to batch translate XMLs into HTMLs for later display as desired

QUESTION:我在哪里可以找到Greatest_XSLT_Editor?

QUESTION: Where do I find "Greatest_XSLT_Editor"?

更新 - Stylus已注册。 (我的试用注册申请已经被阻止在他们的垃圾邮件过滤器,但支持找到它,并得到它。)希望尝试他们的,从他们的教程开始。希望我有更多的时间...

Update -- Stylus now registered. (My request for trial registration had gotten stuck in their spam filters, but support found it and got it out.) Hope to try theirs too, starting with their tutorial. Wish I had more time for all this ...

更新 - 尝试Altova StyleVision - 如下,在步骤3失败。发现他们的教程

Update -- trying Altova StyleVision -- as below, failed at step #3. Found their tutorial at

http://altova-aot.s3.amazonaws.com/Altova%20StyleVision%20Module%201/player.html

所以我会尝试。

我已经在屏幕上打开了Altova StyleVision。它不是拖放或双击以获取我的XML,但是,文件>新建>从XML是好的。而且我有一个自动生成的Schema Tree窗口,它显示了上面的步骤#2。但是当我点击预览HTML时,我确实没有想到如何操作设计窗口,插入HTML元素和拖放树形元素(步骤3),所以我得到一个预期的HTML(第4步)。也许我应该打电话给Altova并获得支持试用...

I've got Altova StyleVision open on screen. It wasn't drag-and-drop or double-click to get my XML in, but OK, File > New > From XML was good enough. And I do have a Schema Tree window automaticlaly generated which shows step #2 above. But I certainly have not figured out how to operate the Design window with inserting HTML elements and dragging/dropping tree elements (step #3) such that when I click "PreviewHTML" I get an expected HTML (step #4). Maybe I should just phone up Altova and get support for the trial ...

推荐答案

我相信你提到的Stylus产品是最接近你正在寻找的东西。我实际上正在和你做几乎一样的事情,下周我从Stylus开始。经过一番研究,我看起来似乎找不到比他们炫耀的东西更好的这里

I believe that the Stylus product you referred to is the closest thing to what you are looking for. I'm actually in the process of doing almost the same thing as you, and I'm starting with Stylus next week. After a little research, I couldn't seem to find something that looked better than what they are showing off here.

尽管如此,我很想看到别人可能会推荐哪些程序。

I'm anxious to see what other programs people might recommend, though.

这篇关于XSLT的拖放生成将HTML显示为HTML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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