wac
01-25-2005, 09:30 PM
I get the following SaxParseException when using the doctype below.
org.xml.sax.SAXParseException: Parameter entity references must not appear within markup declarations in the internal DTD subset.
However, this works find in tomcat. I only get the error when using WebSphere Application Server (An IBM Web Server). I'm guessing that it doesn't like where I'm using the percent entity inside the definition of another entity. Basically, all I'm trying to do is to be able to enter the % symbol, which unfortunately, has a special meaning in the entity syntax. Does anyone know of a better (actually, ANY) way that works in both tomcat and Websphere????
NOTE: in the code below, there's no space between the '&' and the '#' in the definition of the percent entity. I couldn't figure out how else to stop the browser from converting it to a literal %.
<!DOCTYPE viewset [
<!ENTITY stddisplaymenu SYSTEM "stddisplaymenu.xml">
<!ENTITY stdselectmenu SYSTEM "stdselectmenu.xml">
<!ENTITY stdfiltermenu SYSTEM "stdfiltermenu.xml">
<!ENTITY stdviewmenu SYSTEM "stdviewmenu.xml">
<!ENTITY stdqdlistmenu SYSTEM "stdqdlistmenu.xml">
<!ENTITY stdmonitormenu SYSTEM "stdmonitormenu.xml">
<!ENTITY stdmonitorprop SYSTEM "stdmonitorprop.xml">
<!ENTITY stdalarmitems SYSTEM "stdalarmitems.xml" >
<!ENTITY percent "& #37;" >
<!ENTITY alarmwidth "20&percent;" >
<!ENTITY alarm1stcol "c_UserName" >
]>
org.xml.sax.SAXParseException: Parameter entity references must not appear within markup declarations in the internal DTD subset.
However, this works find in tomcat. I only get the error when using WebSphere Application Server (An IBM Web Server). I'm guessing that it doesn't like where I'm using the percent entity inside the definition of another entity. Basically, all I'm trying to do is to be able to enter the % symbol, which unfortunately, has a special meaning in the entity syntax. Does anyone know of a better (actually, ANY) way that works in both tomcat and Websphere????
NOTE: in the code below, there's no space between the '&' and the '#' in the definition of the percent entity. I couldn't figure out how else to stop the browser from converting it to a literal %.
<!DOCTYPE viewset [
<!ENTITY stddisplaymenu SYSTEM "stddisplaymenu.xml">
<!ENTITY stdselectmenu SYSTEM "stdselectmenu.xml">
<!ENTITY stdfiltermenu SYSTEM "stdfiltermenu.xml">
<!ENTITY stdviewmenu SYSTEM "stdviewmenu.xml">
<!ENTITY stdqdlistmenu SYSTEM "stdqdlistmenu.xml">
<!ENTITY stdmonitormenu SYSTEM "stdmonitormenu.xml">
<!ENTITY stdmonitorprop SYSTEM "stdmonitorprop.xml">
<!ENTITY stdalarmitems SYSTEM "stdalarmitems.xml" >
<!ENTITY percent "& #37;" >
<!ENTITY alarmwidth "20&percent;" >
<!ENTITY alarm1stcol "c_UserName" >
]>