0

我有 Interwoven Teamsite 7.3.x。我们有一些简单的 DCT,它们当前以标准 XML 格式创建 DCR。是否可以进行配置,以便根据 ASP.Net Resx 文件所需的 XML 架构创建 DCR?

4

1 回答 1

0

以下 datacapture.cfg 为我工作!

<?xml version="1.0" standalone="no"?>

用于捕获 MCA resx 文件数据的表单

    <root-container name="root" location="root">
        <container location="resheader" name="resheader1">
            <item name="resmimetypeattrib" pathid="@name">
                <text>
                    <default>
                        resmimetype
                    </default>
                </text>
            </item>
            <item name="resimetypevalue" pathid="value">
                <text>
                    <default>
                        text/microsoft-resx
                    </default>
                </text>
            </item>
        </container>
        <container location="resheader" name="resheader2">
            <item name="versionattrib" pathid="@name">
                <text>
                    <default>
                        version
                    </default>
                </text>
            </item>
            <item name="versionvalue" pathid="value">
                <text>
                    <default>
                        2.0
                    </default>
                </text>
            </item>
        </container>
        <container location="resheader" name="resheader3">
            <item name="readerattrib" pathid="@name">
                <text>
                    <default>
                        reader
                    </default>
                </text>
            </item>
            <item name="readervalue" pathid="value">
                <text>
                    <default>
                        System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
                    </default>
                </text>
            </item>
        </container>
        <container location="resheader" name="resheader4">
            <item name="writerattrib" pathid="@name">
                <text>
                    <default>
                        writer
                    </default>
                </text>
            </item>
            <item name="writervalue" pathid="value">
                <text>
                    <default>
                        System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
                    </default>
                </text>
            </item>
        </container>
        <container location="data" name="data">
            <label>Titles</label>
            <item name='lclMypointsResource1' pathid='@name'>
                <text>
                    <default>
                        lclMypointsResource1.Text
                    </default>
                </text>
            </item>
            <item name='xml:p' pathid='@xml:space'>
                <text>
                    <default>preserve</default>
                </text>
            </item>
            <item name="value" pathid="value">
                <label>My points</label>
                <description>Text that should appear in the points control</description>
                <text />
            </item>
        </container>
    </root-container>

    <script>
        <!-- get the item and set readonly in FormAP -->

        var item=IWDatacapture.getItem("root/resheader1");
        item.setVisible(false);

        var item=IWDatacapture.getItem("root/resheader2");
        item.setVisible(false);

        var item=IWDatacapture.getItem("root/resheader3");
        item.setVisible(false);

        var item=IWDatacapture.getItem("root/resheader4");
        item.setVisible(false);

        var item=IWDatacapture.getItem("root/data/lclMypointsResource1");
        item.setVisible(false);
        var item=IWDatacapture.getItem("root/data/xml:p");
        item.setVisible(false);

    </script>

</ruleset>

于 2013-07-14T20:27:47.470 回答