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

Word of the day: upconversion

  • From: "Costello, Roger L." <costello@mitre.org>
  • To: "'xml-dev@lists.xml.org'" <xml-dev@lists.xml.org>
  • Date: Fri, 21 Aug 2009 08:59:36 -0400

Word of the day: upconversion

Hi Folks,

Recently I read an article [1] by Michael Kay and learned a fabulous word:

    upconversion

The word originates in the broadcasting industry, where it is used to mean the conversion of a low resolution image to an equivalent high resolution image.

In the XML world, the word refers to taking unstructured text and adding structure (markup) to create a richer, structured document. Here's how Michael Kay describes it:

   Upconversion is the generation of a format 
   with detailed markup from a format with 
   less-detailed or no markup, where it is 
   necessary to generate the additional markup 
   by recognizing structural patterns that are 
   implicit in the textual content itself.


EXAMPLE #1

Upconvert this fixed-field, comma-separated text:

    Origin of Wealth, Eric D. Beinhocker, 2006, 
    1-57851-777-X, Harvard Business School Press

to this XML format:

    <Book>
        <Title>Origin of Wealth</Title>
        <Author>Eric D. Beinhocker</Author>
        <Date>2006</Date>
        <ISBN>1-57851-777-X</ISBN>
        <Publisher>Harvard Business School Press</Publisher>
    </Book>


EXAMPLE #2

Upconvert this prose:

    Level 1 managers may sign off on purchase requests 
    that do not exceed $10K. 

to XML by mapping nouns to markup and adjectives to data:

    <Request id="purchase">
        <signoff manager="level1" LE="10000" />
    </Datatype>


QUESTION

Consider the spectrum from random text to well-designed XML:


<------------------------------------------------->
  random                                       XML

               upconversion --------->



Suppose we place prose somewhere between random text and XML:


<------------------------------------------------->
  random         prose                         XML

               upconversion --------->



Where would you place XPath?


For example, consider these three ways of expressing a business rule:

(a) Prose

    Level 1 managers may sign off on purchase requests 
    that do not exceed $10K.

(b) XPath

    not(purchase-request[number(cost) gt 10000])

(c) XML

    <Request id="purchase">
        <signoff manager="level1" LE="10000" />
    </Datatype>


Where would you place the XPath expression in this spectrum:


<------------------------------------------------->
  random         prose                         XML

               upconversion --------->


Would you place it close to the XML side? Would you place it close to the random side? Would you place it to the left of prose? Would you place it to the right of prose?


/Roger

[1] http://www.saxonica.com/papers/ideadb-1.1/mhk-paper.xml


[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.