I am among the hordes trying to validate XML from Perl, hence am trying to 
use nsgmls from James Clark's SP package. Before I take the step of using 
the Perl SGMLS module that abstracts this executable's output, I thought I 
would make sure NSGMLS worked from the command line (using -wxml of 
course). When I use it, I keep getting error messages like these:

C:\PROGRA~1\SP\BIN\NSGMLS.EXE:<OSFD>0:41:26:E: value of attribute "name" 
must be a single token
C:\PROGRA~1\SP\BIN\NSGMLS.EXE:<OSFD>0:42:28:E: value of attribute "name" 
must be a single token
C:\PROGRA~1\SP\BIN\NSGMLS.EXE:<OSFD>0:117:23:E: character "/" is not 
allowed in the value of attribute "name"
C:\PROGRA~1\SP\BIN\NSGMLS.EXE:<OSFD>0:137:23:E: character "/" is not 
allowed in the value of attribute "name"

I have had similar problems using other validators, but thought they were 
just buggy. Are you allowed to have spaces in attribute values in XML? How 
about forward slashes? The XML 1.0 spec seems to indicate you can in the 
BNF. Or are attributes named 'name' and 'type' special? Or do I have to set 
more options to use nsgmls with XML documents? Or escape them as entities?

         - Paul (Sleepless in Stoneham)

---
You are currently subscribed to perl-xml as: [[email protected]]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to