html+注释格式化,使用xml注释来生成格式化的html输出

我试图从我在xml文件中的注释中生成一个格式良好的html文档。目前我有一个xml文件,用于生成xml表格的html列表。为了让我添加有关表格的评论,我手动将注释添加到输出html文件中。使用xml注释来生成格式化的html输出

我想如果可能将html代码放在xml文件中作为注释并让xslt使用注释来创建格式正确的文档。

这是注释的xml文件的一部分。这里有html新行语法,我希望xslt读取为html。我在想,必须有更好的方法来使用raw xml来创建它,但是,我不希望在xml文件中读取注释,因此不希望它作为表项。

这是我使用注释的xsl文件的一部分,但它不解释html。

所需的输出看起来是这样的手动格式化时:

ers_benchmark_defn
This table contains mapping between hierarchy nodes and their respective benchmarks. The columns should be populated as follows:
  • HIERARCHY_NODE

    This column contains the name of the hierarchy node in the ERS Risk Hierarchy.

  • BENCHMARK

    The column can be populated with either;

    a Calypso portfolio name,

    an ERS Risk Hierarchy name, or

    an ERS Risk Hierarchy node name.

    In the latter case, the column should be populated with the hierarchy node name and the hierarchy to which it belongs, separated by a percentage symbol, %.

  • BENCHMARK_TYPE

    If the value in the benchmark column is an ERS hierarchy or hierarchy node name, this column should be populated with the value HIERARCHY. Otherwise, when using a Calypso portfolio name, it should not be populated.

  • SCALING_FACTOR

    This column should be populated with the scaling factor by which the benchmark results should be multiplied. To use MTM scaling, leave this column unpopulated.

See the ERS 10.2 Release notes for further information.

column namenullabletype

这些都是完整的代码中提取,但我认为这应该是足够的人来帮助我。

谢谢!

2011-05-18

Freddie

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值