【问题标题】:Using XML to feed a Graphical form/template使用 XML 提供图形表单/模板
【发布时间】:2021-06-18 08:34:27
【问题描述】:

所以我使用了一个程序,它的模板显示如下: template example 模板基于您可以导出的 XML。

我想要做的是获取导出的 XML 并创建我自己的类似于这个的查看器,并使用 XML 在它所来自的软件之外查看。我已经看过但找不到太多关于如何执行此操作的信息。

    <templates xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" systemVersionId="4" mkbVersion="170.0.0.0" xmlns="http://www.e-mis.com/emisopen">
    <id>03dc83f1-9de5-47da-92de-681486ce658e</id>
    <templateName>test template</templateName>
    <creationTime>2020-03-15T14:56:54.7105576+00:00</creationTime>
    <author>
        <system>
            <systemType>EMISWEB</systemType>
            <displayName>test, test (Dr)</displayName>
        </system>
    </author>
    <definition>
        <template>
            <page>
                <page>
                    <title>COVID19 - NICE(NG165)</title>
                    <panel>
                        <promptForDate>false</promptForDate>
                        <mandatory>false</mandatory>
                        <panel>
                            <title>Links and guidance</title>
                            <createComponentsAsChildren>false</createComponentsAsChildren>
                            <component>
                                <id>3c3c878a-a71e-4c69-a54a-6cd56903081f</id>
                                <label>We are continually collating the latest evidence and handy links for COVID19 here ????????</label>
                                <promptForDate>false</promptForDate>
                                <mandatory>false</mandatory>
                                <hyperlink>
                                    <title>We are continually collating the latest evidence and handy links for COVID19 here ????????</title>
                                    <URL></URL>
                                </hyperlink>
                            </component>
                            <component>
                                <id>01935239-f461-4624-b230-110a5bdd03c2</id>
                                <label>There is a lot of evidence based supporting information on this template. Please take your time to get familiar with it before use.  
(Version updated 20/01/2021)
Data marked ** is included in national surveillance uploads so complete if relevant
</label>
                                <promptForDate>false</promptForDate>
                                <mandatory>false</mandatory>
                                <textDisplay>
                                    <text>{\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fnil\fcharset0 Tahoma;}}
{\colortbl ;\red87\green85\blue81;\red237\green28\blue36;}
\viewkind4\uc1\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\cf1\f0\fs16 There is a lot of evidence based supporting information on this template. Please take your time to get familiar with it before use.  \par
(Version updated 20/01/2021)\fs18\par
\cf2\b Data marked ** is included in national surveillance uploads so complete if relevant\cf1\b0\par
\cf0\par
}
</text>

【问题讨论】:

  • 您使用 RTF 来描述渲染的任何特殊原因,而不是肯定更便携的 CSS?
  • 这就是软件使用的。它是在 2011 年制作的。不幸的是,我无法控制,但完全同意。

标签: xml xcode user-interface templates xquery


【解决方案1】:

XForms 可用于在浏览器中呈现此类 XML 文档。 XSLTForms(我自己的实现,https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip)还不支持 RTF 输出,但可以很容易地添加一些库,例如 https://github.com/tbluemel/rtf.js

【讨论】:

  • 谢谢!我去看看。
猜你喜欢
  • 2021-06-06
  • 2014-07-07
  • 2015-02-15
  • 1970-01-01
  • 2020-03-29
  • 1970-01-01
  • 2021-11-06
相关资源
最近更新 更多