Alexander Dupuy wrote:
> I have the following in a CSS that I'm trying to use with XXE:
> 
> misc_eval {
>     background-color: white;
> }
> 
> However, whenever I try to use it I get the following error (also with 
> csscheck script):
> 
> file:/n/winwood/u/winwood/dupuy/cvs/awb-test/dtd/featureset.css:W:337:6: 
> syntax error: expected ',' or '{', found '_'
> 
> The underscore character wasn't originally legal for CSS identifiers, 
> but it has since been retroactively added to CSS by the errata:
> 
> http://www.w3.org/Style/css2-updates/REC-CSS2-19980512-errata.html
> 
> I can try to change the misc_eval element name to misc-eval to work 
> around this problem, but since both are legal per the XML DTD (and CSS) 
> spec, it's hard to argue with those who prefer underscore to hyphen in 
> their DTDs.

You could have written:

---
  misc\_eval {
      background-color: white;
  }
---

However, we'll update our CSS parser to support '_' in indentifiers.



> On another subject, I notice that the xsdvalid/dtdvalid/dtdtoxsd shell 
> scripts set the Java property xml.catalog.files, while the xxe shell 
> script has been changed to set XXE_CATALOG.  Since these are both using 
> some of the same jar files, I wonder if this is a missed update?
> 
> dtdtoxsd:java -Dxml.catalog.files="$XXE_CATALOG" -Xss1m -Xmx128m 
> -classpath $cp \
> dtdtoxsd.bat:java -Dxml.catalog.files="%XXE_CATALOG%" -Xss1m -Xmx128m 
> -classpath "%cp%" com.xmlmind.xmledit.dtd.DTDToXSD %*
> dtdvalid:java -Dxml.catalog.files="$XXE_CATALOG" -Xss1m -Xmx128m 
> -classpath $cp \
> dtdvalid.bat:java -Dxml.catalog.files="%XXE_CATALOG%" -Xss1m -Xmx128m 
> -classpath "%cp%" com.xmlmind.xmledit.dtd.Validate %*
> xsdvalid:java -Dxml.catalog.files="$XXE_CATALOG" -Xss1m -Xmx128m 
> -classpath $cp com.xmlmind.xmledit.xsd.Validate "$@"
> xsdvalid.bat:java -Dxml.catalog.files="%XXE_CATALOG%" -Xss1m -Xmx128m 
> -classpath "%cp%" com.xmlmind.xmledit.xsd.Validate %*
> xxe:    -DXXE_CATALOG="$XXE_CATALOG" \
> xxe.bat:start javaw -Dsun.java2d.noddraw=true -Xss1m -Xmx128m 
> -DXXE_PLUGIN="%XXE_PLUGIN%" -DXXE_CONFIG="%XXE_CONFIG%" 
> -DXXE_CATALOG="%XXE_CATALOG%" -classpath "%cp%" 
> com.xmlmind.xmleditapp.app.Start %*
> 

No, there is no mistake here:

* In the case of dtdtoxsd, dtdvalid and xsdvalid, property 
xml.catalog.files is used to specify which XML catalogs to use.

* In the case of XXE, property XXE_CATALOG *alone* does not specify 
which XML catalogs to use. It is much more complicated that this: see 
http://www.xmlmind.com/xmleditor/_distrib/docs/configure/ch04s01s02.html

* In the case of XXE, property xml.catalog.files is ignored.

For the user, the only thing that needs to be remembered is that it is 
possible to specify a list of XML catalogs in *environment variable* 
XXE_CATALOG, which should work even when XXE is started using the 
InstallAnywhere launcher rather than xxe.bat.



Reply via email to