RE: character "_" invalid

Subject: RE: character "_" invalid
From: Jacques Deseyne <Jacques.Deseyne@xxxxxxx>
Date: Tue, 8 Jul 1997 14:42:00 +0200
Jean-Xavier writes:

>I have to work with a Sgml document stored on a cd-rom, i.e. I cannot modify
>the Sgml source.
>This document happens to have a <file_details> tag.
>Unfortunately "_" is an invalid tag character for Jade and it cannot parse
>properly.
>
>Does anyone have a tip to solve this problem ?

The 'underscore' character is not a 'name' character in the SGML Reference Concrete
Syntax, it can not occur within SGML "names", such as tag, entity and attribute names.

You'll have to add this character to the "name characters" in the SGML syntax; this 
is done in the SGML Declaration. Maybe you are not using a specific SGML declaration 
at all with Jade.

If your instances are coded with underscores in the names, there must
be a declaration somewhere on your CD-ROM; such files are likely to have an 
extension such as "decl", "dec", "dcl", "sgd", ...

Find a portion looking more or less like:

...
 SYNTAX
      SHUNCHAR CONTROLS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 127
      BASESET  "ISO 646:1983//CHARSET International Reference Version (IRV)//ESC 2/5 4/0"
      DESCSET  0 128 0

      FUNCTION
              RE            13
              RS            10
              SPACE         32
              TAB SEPCHAR    9

      NAMING   LCNMSTRT ""
               UCNMSTRT ""
               LCNMCHAR ".-"
               UCNMCHAR ".-"
               NAMECASE GENERAL YES
                        ENTITY  NO
      DELIM    GENERAL  SGMLREF
               SHORTREF SGMLREF
...

If the underscore character is not in the parameter 
for LowerCaseNaMeCHARacters and UpperCaseNaMeCHARacters 
(that would be surprising), add it:

                      Here | 
                           v
               LCNMCHAR ".-_"
               UCNMCHAR ".-_"
                           ^
                      Here | 

This should fix it. I suppose you'll have to copy the SGML declaration
from the CD-ROM to a disk if you need to modify it ;-)


Best regards,


--
Jacques Deseyne <jdeseyne@xxxxxxxxx>



begin 600 WINMAIL.DAT
M>)\^(@4,`0:0" `$```````!``$``0>0!@`(````Y 0```````#H``$(@ <`
M& ```$E032Y-:6-R;W-O9G0@36%I;"Y.;W1E`#$(`0V ! `"`````@`"``$$
MD 8`. $```$````,`````P``, (````+``\.``````(!_P\!````40``````
M``"!*Q^DOJ,0&9UN`-T!#U0"`````&1S<W-L:7-T0&UU;&)E<G)Y=&5C:"YC
M;VT`4TU44 !D<W-S;&ES=$!M=6QB97)R>71E8V@N8V]M`````!X``C !````
M!0```%--5% `````'@`#, $````:````9'-S<VQI<W1 ;75L8F5R<GET96-H
M+F-O;0````,`%0P!`````P#^#P8````>``$P`0```!P````G9'-S<VQI<W1 
M;75L8F5R<GET96-H+F-O;2<``@$+, $````?````4TU44#I$4U-33$E35$!-
M54Q"15)2651%0T@N0T]-```#```Y``````L`0#H!`````@'V#P$````$````
M`````DQ `02 `0`:````4D4Z(&-H87)A8W1E<B B7R(@:6YV86QI9 !H" $%
M@ ,`#@```,T'!P`(``X`*@````(`'0$!(( #``X```#-!P<`" `.``T`,P`"
M`#,!`0F `0`A````,CDS,#1%1#8X048W1# Q,4(W,D4P,$,P1C P,$8T14$`
M)@<!`Y &`)P'```4````"P`C```````#`"8```````L`*0```````P`N````
M```#`#8``````$ `.0`PIX14G(N\`1X`< `!````&@```%)%.B!C:&%R86-T
M97(@(E\B(&EN=F%L:60````"`7$``0```!8````!O(N<5'W63C L]XH1T+<N
M`,#P`/3J```>`!X,`0````4```!33510`````!X`'PP!````& ```$IA8W%U
M97,N1&5S97EN94!S96UA+F)E``,`!A!7](O+`P`'$"X%```>``@0`0```&4`
M``!*14%.+5A!5DE%4E=2251%4SI)2$%6151/5T]22U=)5$A!4T=-3$1/0U5-
M14Y44U1/4D5$3TY!0T0M4D]-+$E%24-!3DY/5$U/1$E&651(15-'34Q33U52
M0T542$E31$]#54U%``````(!"1 !````"@8```8&``!T# ``3%I&=4+=,"/_
M``H!#P(5`J0#Y 7K`H,`4!,#5 (`8V@*P'-E=.XR!@`&PP*#,@/&!Q,"@R(S
M#WIH96P#($1L&F<"@S0#Q0(`<')QH1(B<W1E;0*#-01&V19#,2 (50* ?0J 
M",_%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.T$-(05(84$]UL&J@'DP%
M\!Z0&$ 2(#,@- `@-2 V(#<@.%P@.7?P=^$80#$2(#'U>$ Q>& Q>( >0'?P
M>,#Z,7C@,7D``=!X$'@!$B!Z,GA ,GA@' !X$'B@,E5XP#)XX#)Y`#,>D#.%
M>6(W=?M"05-%?F!"5'5P(DE33WB0-(0V.GK0.#,O+W<"?7Z"20(P!)%=<P= 
M3DE6@TK!8.(H25)6*7^@%7YP0W@0+WB -"\P^B)U^T2"L7Z#=^%\@0IVY77[
M1G;A5$EW8'7[AV;\4D6':GFPAP^($P7PB(I#"G:';%-004.(:#,N,HNO=E)U
MP$(&`$50&W<#=E$YA4]V44Y!38A)3D=V44Q#3@7@VW> ?J B@VR'9U62+X=M
MXY(2=P,B+BV4SY/(EG\3AVR1@45#?E$@1T703D5204XP67YPF3^GAVR;,(; 
M5%F184^#?7A,24UV4ILF3?.(4$;G1^\=W(P.2$^4@*"1H$W_<&]C@2P"2IA+
M3TV&H/%,H4<Y$J#%.5),;W<$D$/!4Q!E3F%-97<"652].=-5,2&J7ZMAH,4H
M)3!S89$DP'5L)K!>$5+ <O<68 0`7R$I)X!7$A^0']_7H5^B;X=H2&=2?(6L
MM._]=E)VM"^5[S=@ME^8'[A_^[N_=7!>NM^R_[0'L-]);MDP07-HKC,R,'@Z
M$2?2>U+ ,2!O$?!>,E9:!:!P_VPQ3=9@::EF`V$K\VIT5M/_)< $`"3P!I!>
M,T60)J$DD6,HA#H2.RTIK_R_14+W!Y %0!G09PL19P#)W[]RS"TMOT4YD&-Q
M"E $(,]=$!'P3_ D<#QJ#;#.<U! >',T8<$N7A ^7\O_((]#OT&I&/$`U# `
M``,`$! ``````P`1$ $```! ``<P\.1@99B+O % ``@P\.1@99B+O $>`#T`
:`0````4```!213H@``````,`#33]-P``&82+
`
end


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread