Use entities and relax schema?
Posted: Wed Mar 08, 2006 12:42 pm
Hi,
I wonder whether it's possible to use a relax ng schema and stil have a rudimentary dtd for 'unusual' characters. oXygen does not complain (the file validates all right), but it does not offer the dtd entities in the popup completion window either.
So the top of my file looks like:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE SYSTEM [
<!ENTITY lsquo "‘" >
<!ENTITY rsquo "’" >
<!ENTITY ldquo "“" >
<!ENTITY rdquo "”" >
]>
<?oxygen RNGSchema="file:/C:/Program%20Files/Oxygen%206.2/frameworks/tei/xml/tei/custom/schema/relaxng/tei_all_pb.rng" type="xml"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
And I would like to see lsquo etc. added to my choices when I begin to type '&'. The option 'show all entities' is on. I'm using version 7.1.
(My other option is using the TEI P5 gaji module, and I'm still trying to find out which will work best)
Thanks,
Peter
I wonder whether it's possible to use a relax ng schema and stil have a rudimentary dtd for 'unusual' characters. oXygen does not complain (the file validates all right), but it does not offer the dtd entities in the popup completion window either.
So the top of my file looks like:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE SYSTEM [
<!ENTITY lsquo "‘" >
<!ENTITY rsquo "’" >
<!ENTITY ldquo "“" >
<!ENTITY rdquo "”" >
]>
<?oxygen RNGSchema="file:/C:/Program%20Files/Oxygen%206.2/frameworks/tei/xml/tei/custom/schema/relaxng/tei_all_pb.rng" type="xml"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
And I would like to see lsquo etc. added to my choices when I begin to type '&'. The option 'show all entities' is on. I'm using version 7.1.
(My other option is using the TEI P5 gaji module, and I'm still trying to find out which will work best)
Thanks,
Peter