cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

SGML Attribute String Length Limit?

steve.thompson4
1-Newbie

SGML Attribute String Length Limit?

All,
Having trouble getting an SGML instance to load in Editor (5.2). Doesn't like two specific @key values. ' [A11054] Invalid value "..." for required attribute "key" '

Neither contains 'wrong' characters, one is 75 and the other 77 characters. Here they are:

frm_icticjclqm121821206917701843_icticjclqm121821214817701843_AAR40000006062

frm_icticjclqm12354267816554021_icticjclqm12354267816554022_AAR40000006520

The simple answer "change them" is unavailable, since they are generated via XSLT from an XML instance. None of the other @keys are as long (e.g. frm_AAGR0000001507_AAGS0000001508_AAR40000006111).

Any insights would be greatly appreciated.
Steve Thompson
TAD Technical
Boeing-IDS Technical Publications
+1(316)977-0515
MC K83-08
The truth is the truth even if nobody believes it, and a lie is a lie even if everyone believes it.

NOTICE: This communication may contain proprietary or other confidential information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this e-mail in error, and delete the copy you received. Any and all views expressed are the current understanding of the sender and should not be interpreted as an expression of official Boeing Company policy or position.

Les renseignements contenus dans ce message peuvent être confidentiels. Si vous n'êtes pas le destinataire visé ou une personne autorisée à lui remettre ce courriel, vous êtes par la présente avisé qu'il est strictement interdit d'utiliser, de copier ou de distribuer ce courriel, de dévoiler la teneur de ce message ou de prendre quelque mesure fondée sur l'information contenue. Vous êtes donc prié d'aviser immédiatement l'expéditeur de cette erreur et de détruire ce message sans garder de copie.




2 REPLIES 2

For SGML, your SGML declaration determines certain quantities and
capacities.

It depends on the declared type of your key attribute, but assuming
it is a name token or similar, its value's maximum length is determined
by NAMELEN (the max length of any element or attribute name).

In 5.2, look at $aptpath/entities/ati-dflt.dcl; you'll see

QUANTITY SGMLREF
ATTCNT 400
ATTSPLEN 960
BSEQLEN 960
DTAGLEN 16
DTEMPLEN 16
ENTLVL 16
GRPCNT 150
GRPGTCNT 250
GRPLVL 16
LITLEN 8000
NAMELEN 72
NORMSEP 2
PILEN 1024
TAGLEN 960
TAGLVL 24

Note NAMELEN 72.

You'd have to use an SGML declaration with a larger value if you
want such key values to work. That's SGML for you.

paul

I've attached a dcl (Declaration file) that was furnished by a US Govt office. The file has most of the SGML limits expanded and annotated or explained.



Also, for true understanding, you might look up a book (can be found on-line new for $30 US and used for about $5 US):

"Developing SGML DTDs From Text To Model To Markup"

By Eve Maler and Jeanne El Andaloussi

IBSB 0-13-309881-8

[cid:image001.jpg@01CC46B5.80A0ABA0]<">http://www.dealoz.com/prod2.pl?cat=book&op=buy&lang=en-us&search_country=us&shipto=us&cur=usd&zip=&nw=y&class=&pqcs=&quantity=&shipping_type=&sort=&cookie=0&ad_id=&utm_source=google&utm_medium=cpc&utm_term=book-isbn-number_phrase_google_book_sp_pc_cpc_text&utm_content=e7G0JdXDFuIeZLbIN8GLDw&utm_ca...

Edition: 1st (1995-12-15) Publisher: Prentice Hall PTR Hardcover: 560 pages




That's the kind of text book you need to understand the in and outs of SGML DTDs/



The notes in the dcl do not hurt either.



-Andy

\ / Andy Esslinger LM Aero - Tech Order Data

_____-/\-_____ (817) 279-0442 1 Lockheed Blvd, MZ 4285

\_\/_/ (817) 777 3047 Fort Worth, TX 76108-3916
Top Tags