Hello,
I'm totally out of ideas for how to solve this problem. I hope someone here can help me.
Basically I've got a bunch of XML documents. These contain entity references like &product-name; and &company-name;.
The entities are defined in an .ent file like so
<!ENTITY company-name "Company X">
Then there's this xquery script that outputs html files based on these xml files.
My question is, is there a way to declare an entity that resolves to it's character data only? Meaning:
<!ENTITY trademark "™">
So that if someone used &trademark;, it would simply resolve that to "™" without trying to additionally resolve ™? I want the html file to contain the string "™"
Any help would be greatly appreciated. Thank you.
I'm totally out of ideas for how to solve this problem. I hope someone here can help me.
Basically I've got a bunch of XML documents. These contain entity references like &product-name; and &company-name;.
The entities are defined in an .ent file like so
<!ENTITY company-name "Company X">
Then there's this xquery script that outputs html files based on these xml files.
My question is, is there a way to declare an entity that resolves to it's character data only? Meaning:
<!ENTITY trademark "™">
So that if someone used &trademark;, it would simply resolve that to "™" without trying to additionally resolve ™? I want the html file to contain the string "™"
Any help would be greatly appreciated. Thank you.