RE: [xsl] Invalid character found [dtd]

Subject: RE: [xsl] Invalid character found [dtd]
From: Mike Ferrando <mikeferrando@xxxxxxxxx>
Date: Tue, 27 Jan 2004 10:23:37 -0800 (PST)
Ok, Ok.

I consider myself thoroughly scolded.

It seemed related to XSL.

I will vent my folly on another list next time.

Mike F.
Washington, DC



--- Michael Kay <mhk@xxxxxxxxx> wrote:
> This is not an XSLT question! (And the error message is from the
> XML
> parser, not from Saxon).
> 
> An NMTOKENS value is restricted in the characters allowed. Blame it
> on
> SGML. If you want more flexibility, move to XML Schema.
> 
> Michael Kay
> 
> > -----Original Message-----
> > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> > Mike Ferrando
> > Sent: 27 January 2004 17:36
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: [xsl] Invalid character found [dtd]
> > 
> > 
> > Friends,
> > I am writing a stylesheet for EAD 2002 XML tag set (into 
> > PDF). I am writing it against the DTD. I wanted to make the 
> > DTD more exact. The problem I have is that the syntax in the 
> > ATTLIST has an illegal character "/". Anyone have any idea 
> > how I can change the DTD so that it will accept the "/" 
> > character as an attribute value?
> > 
> > Examples below.
> > 
> > Thanks,
> > Mike Ferrando
> > Washington, DC
> > 
> > DTD available at:
> > http://www.loc.gov/ead/ead2002a.html
> > 
> > SAXON error text:
> >   Invalid character found in ATTLIST enumeration.
> >   URL: file:///C:/WORKSHOP/documents/ead_1.dtd
> >   Line 02970:     (box-folder | box/folder | reel | mapcase |
> folder
> > | box)
> >   Pos  00022: ---------------------^
> > 
> > ead XML
> > <CONTAINER TYPE="box/folder">3/4</CONTAINER>
> > 
> > ead.dtd (2002)
> > <!ELEMENT container
> >    (#PCDATA | %m.phrase.basic;)*
> >                                                                  
>    
> >        >
> > <!ATTLIST container
> >    %a.common;
> >    %am.container.label;
> >    %am.container.type;
> >    %am.container.encodinganalog;
> > 
> >    parent
> >     IDREFS
> >     #IMPLIED
> > 
> > ead_1.dtd (What I want.)
> > <!ELEMENT container
> >    (#PCDATA | %m.phrase.basic;)*
> >                                                                  
>    
> >        >
> > <!ATTLIST container
> >    %a.common;
> >    %am.container.label;
> >    %am.container.encodinganalog;
> > 
> >    type
> >     (box-folder | box/folder | reel | mapcase | folder | box)
> >     #IMPLIED
> > 
> >    parent
> >     IDREFS
> >     #IMPLIED
> > 
> > 
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free web site building tool. Try it! 
> http://webhosting.yahoo.com/ps/sb/
> 
>  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> 
> 
>  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread