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

Re: Do you enjoy neighborhoods where every house looks the sam

  • From: "Jeremy H. Griffith" <jeremy@omsys.com>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Wed, 28 Aug 2013 10:57:56 -0500

Re:  Do you enjoy neighborhoods where every house looks the sam
On Wed, 28 Aug 2013 15:31:09 +0000, "Costello, Roger L."
 <costello@mitre.org> wrote:

>Hi Jeremy,
>
>> we are basing it on MicroXML for simplicity ...
>
>This is fantastic. Is there a write-up where we can get 
>more information on this approach?

There will be; the draft spec is still a moving target.
I want to acknowledge that these recent threads have
provided strong validation for us, and are referenced 
themselves in the intro to the spec.

>> our first step was to write a fault-tolerant parser
>
>What is a fault-tolerant parser? What are its benefits?

The idea is that if the parser can tell what is missing
or incorrect, and correct it, it will do so, warn you, 
and proceed.  This is John Cowan's idea in the MicroXML
spec.  So for example if you have:

  <p>This is <b>bold.</p>

the parser can reasonably guess you meant:

  <p>This is <b>bold.</b></p>

Or if the character after the equals in an attribute
is not a quote, it can supply one.  There are quite a
few places the parser can make a reasonable guess.
Like, ",p>" might have been meant to be "<p>", with
the Shift key not in sync for the first character (a
personal favorite typo for me ;-).

In addition, in the next layer up, if we detect non-
whitespace text in an element that doesn't allow text,
we simply start a <p>, and end it at the end of the
enclosing element, or at the start of another non-text 
element.  Within a text element, a double return ends 
and restarts the current element.  This policy greatly 
decreases the tagging a writer needs to do.  The writer 
can just write, which is, after all, her real job.

>Is it publicly available?

It will be.  We don't want to start it off with any
features we will want to change the next day, and 
that is still what we are doing now.  But soon.  <g>
 

-- Jeremy H. Griffith <jeremy@omsys.com>
   DITA2Go site:  http://www.dita2go.com/


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.