| faq-not |
| 1 | Newsgroups: comp.text.sgml Subject: NOT the comp.text.sgml FAQ Followup-To: poster From: Joe English Archive-Name: sgmlnot-the-faq Posting-Date: 1 April 2002 Posting-Frequency: sporadic Not the comp.text.sgml Frequently Asked Questions List Copyright (C) 1997, 1999, 2001, 2002 Joe English. All rights reserved. There are lots of wrongs in this document, and those are all reserved too. Author bears no responsibility for any other reservations you might have. |
| 2 | Standard disclaimers apply. For external use only. If irritation, rash, or swelling occurs, discontinue use immediately. Void where prohibited. If you are acquiring this document on behalf of the U.S. Government, the Government shall have only "Restricted Rights Regulated Regulations Rights" (RRRRRs) as defined in Clause 31.415.269 (c) (2) (CCXXXVII) of that really long document that nobody has ever seen or read and good luck finding it (US-DOD-MILSPEC-217-RLDTNHESOR-AGLFI-YOG-SOTHOTH-1968), pursuant to the following: (1) Who are you? |
| 3 | (2) What do you want? (3) Who do you serve, and who do you trust? (4) Where do you want to go today? Notwithstanding the foregoing, the author grants permission to anyone who has actually read this far into the disclaimer and copyright notice to do whatever they want with the damn thing. Part 1. Administrivia. Q. Is there a FAQ for this newsgroup? A. Yes. This is not it. Q. In the real FAQ, how come all the answers just point to <oasis-open.orgcover >? |
| 4 | A. If you've ever tried to get more than four SGML experts to agree on the answer to _any_ question, you'd understand. The only thing that every expert agrees on is that Robin Cover's web site is the best source of SGML information available anywhere. Q. I saw this last year. Can you tell me what's new in this year's edition so I don't have to slog through the whole thing again? A. No. Save a copy of this article so next year you can run 'diff' on it. |
| 5 | Part 2. SGML, HTML, and XML. Q: In what way is XML simpler than SGML? A: Nearly everyone who has ever adopted an SGML-based system will agree that the hardest part of the project is the initial set-up. This process often requires highly-paid consultants, who spend weeks or even months analyzing requirements. The principal end result of this process is: a DTD. Since XML does not require DTDs, it is hoped that companies who adopt XML instead of full SGML can skip this expensive and time-consuming step. |
| 6 | Q. Why does XML require SYSTEM identifiers after all PUBLIC identifiers? A. Since there is as of yet no standardized resolution mechanism for PUBLIC identifiers, XML requires authors to supply a URI for every external entity so that it will always be possible for clients to retrieve the entity. More information can be found on the WWW consortium's web site at www.cern.chmit.eduw3.org, or at Robin Cover's excellent XMLSGML web page at www.sil.orgoasis-open.orgcover. |
| 7 | Q. Even in <!DOCTYPE ...> declarations? I thought XML was designed to be usable without DTDs. A. A PUBLIC identifier on it's own doesn't do anybody any good unless they can reliably resolve the entity. You must provide a URI, so that document consumers can retrieve the DTD if they so choose. Q. I have a document that has a whole bunch of "xmlns:foo'http:...'" attributes in it. What are all these URLs supposed to point to? |
| 8 | A. Erm... Part 3. SGML, XML, and the Web. Q. I'm looking for the HTML DTDs used by the current versions of Netscape Navigator and MSIE. Where can I find them? A. This has the editor stumped. I can't think of an answer that's funnier than the original question. Q. How do I include JavaScript inside an XML document? A. Easy! Just write: <code notation"JavaScript"><!CDATA ... your JavaScript code goes here ... |
| 9 | ... make sure it doesn't contain the sequence ">"... > <code> Note that this solution also works for Perl, Python, Tcl, REXX, Icon, Ada, Basic, Beta, C, C++, Eiffel, Forth, Fortran, Haskell, Scheme, SML, Pascal, Modula, PLI, Prolog, REXX, Sather, Smalltalk, SNOBOL, RPGIII, and COBOL. But not APL. Sorry. Q. But that doesn't work! A. What do you mean it doesn't work? There's your XML document, there's your JavaScript, there's your JavaScript inside your XML document, just like you asked. |
| 10 | Q. I'm trying to debug my CSS stylesheet with MSIE 5.0, but it won't reload properly. A. That's more of an HTMLWeb question than an SGML question. Try comp.infosystems.www.authoring.*. Q. Does anyone know of a web page hosting service that will let me upload .xml and .xsl files? A. Try asking in comp.infosystems.www.authoring.*, down the hall, second newsgroup on the right. Q. How do I make a borderless centered blinking table in a frame? |
| … |
Комментарии