开发者

xsltproc suppress entity resolving

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜