[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Invalid character found [dtd]

Subject: Re: Invalid character found [dtd]
From: "B. Tommie Usdin" <btusdin@xxxxxxxxxxxxxxxx>
Date: Tue, 27 Jan 2004 14:31:05 -0500
xml name invalid character
Mike --

The beauty of XML is that it is (relatively) easy to write software
to process it. The way this was achieved is to limit the variations
in the syntax and to (virtually) prohibit users from making syntax
changes.

/ isn't a legal XML name character, and there's nothing you can do
to make it one.  (You could do your EAD processing in SGML, where
you could make this change, but if you do you won't be able to
use all the cool new XML tools.

I suggest making up a different code for "box/folder". Perhaps
"BoxInFolder" or "BoxOrFolder" or something else that describes what
you mean within the limits of XML names.

-- Tommie



>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


-- 
======================================================================
B. Tommie Usdin                        mailto:btusdin@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com   
17 West Jefferson Street                           Phone: 301/315-9631
Suite 207                                    Direct Line: 301/315-9634
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in  XML and SGML
======================================================================

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.