开发者

xsltproc suppress entity resolving

开发者 https://www.devze.com 2022-12-15 23:40 出处:网络
I\'m trying to do a simple transform om a docbook xml file. however we he entities defined in a DTD which are referenced in this xml file.

I'm trying to do a simple transform om a docbook xml file. however we he entities defined in a DTD which are referenced in this xml file.

because the transform is separate from the rest of our docbook chain we need to keep the entity references as references in t开发者_Go百科he result.

i have tried with --novalid an --nodtdattr but it still resolves the entities (or drops them).

is there a way to force xlstproc / xs;t to keep the entity-references or reinsert them? (allready using disable-output-escaping="yes" on text nodes in my transform)


You cannot pass entity references through a transform. You have to preprocess the source, e.g. transform the entity references to elements, and convert them back to entities after the transform.

0

精彩评论

暂无评论...
验证码 换一张
取 消