首页> 外国专利> Reducing resource requirements when transforming source data in a source markup language to target data in a target markup language using transformation rules

Reducing resource requirements when transforming source data in a source markup language to target data in a target markup language using transformation rules

机译:使用转换规则将源标记语言中的源数据转换为目标标记语言中的目标数据时,减少资源需求

摘要

Transforming source data in a source markup language to target data in a target markup language using transformation rules mapping source tags to corresponding target tags. In an embodiment, the transformation rules (e.g., in an XSL) are preprocessed to identify and store source tags (“referenced tags”), which need to be processed to apply the transformation rules of other source tags. The source tags in the source data (e.g., XML) are retrieved sequentially (e.g., by SAX parser) and the contents are stored in memory if the source tag is one of the identified referenced tags. The target tags are generated (e.g., as XML) using the contents stored in memory for another source tag matching a transformation rule immediately upon reading the source tag. Only a few of the contents of source tags and the identifiers of the referenced tags may need to be stored in memory. As a result, the memory requirements may be reduced.
机译:使用将源标签映射到相应目标标签的转换规则,将源标记语言中的源数据转换为目标标记语言中的目标数据。在一个实施例中,对变换规则(例如,在XSL中)进行预处理以识别和存储源标签(“参考标签”),需要对其进行处理以应用其他源标签的变换规则。如果源标签是所识别的参考标签之一,则顺序地(例如,通过SAX解析器)检索源数据(例如XML)中的源标签,并且将内容存储在存储器中。在读取源标签后立即使用存储在存储器中的,与转换规则匹配的另一个源标签的内容来生成目标标签(例如,作为XML)。源标签和引用的标签的标识符中的仅少量内容可能需要存储在内存中。结果,可以减少存储器需求。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号