[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: "--" question
At 3:45 PM -0600 4/7/03, Mike Brown wrote: >XML, like HTML, is a restricted subset of SGML. >I am guessing that in SGML a bare "--" can be considered markup. Exactly! In SGML comments are allowed in a lot of places where they are not in XML, and the comment delimiter is "--". For example, the following is legal in SGML DTDs: <!ATTLIST entry -- column name -- colname NMTOKEN #IMPLIED -- name of starting column for horiz spanning entries -- namest NMTOKEN #IMPLIED -- name of ending column for horiz spanning entries -- nameend NMTOKEN #IMPLIED -- number of rows for vert spanning entries -- morerows NUMBER #IMPLIED -- column separator 0=no -- colsep %yesorno; #IMPLIED -- row separator 0=no -- rowsep %yesorno; #IMPLIED -- alignment of contents -- align (left|right|center|justify|char) #IMPLIED -- if align is char, what char to align on -- char CDATA #IMPLIED -- character offset -- charoff NUTOKEN #IMPLIED -- vertical alignment -- valign (top|middle|bottom) #IMPLIED %tbl.entry.att; > and so is: <!ENTITY % ade.ph "str|cty|sbd|cny|pc|san|ead" -- address elements -- > <!ENTITY % bib "au|cau|msn|srt|loc|pdt|pp|atl|sct|obi" -- bibliographic -- > <!ENTITY % bmcps.d "ack|bib|vt" -- back matter cps elements -- > <!ENTITY % fmcps.d "ded|abs|smtl" -- front matter cps elements -- > <!ENTITY % fmsec.d "fwd|pf" -- front matter sections -- > <!ENTITY % pub "cgs|cgn|crt|rps|avl" -- pubfm elements -- > <!ENTITY % pub.ph "phi|prc|ext|cdn|aon|aid|issn" > The comments begin with "--" and end with "--". So, "--" is not allowed in comments! -- Tommie -- ====================================================================== 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 SGML and XML ====================================================================== XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|