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

RE: When you create a markup language, what do your parent ele

  • From: "David Lee" <dlee@calldei.com>
  • To: "'rjelliffe'" <rjelliffe@allette.com.au>, "'Jim Melton'" <jim.melton@o...>
  • Date: Sat, 1 Oct 2011 09:03:03 -0400

RE:  When you create a markup language
Nitpicking here  but I dont see that 'paragraph has-a CONCEPT'
I see 'paragraph contains-a text item which has-a CONCEPT'

The CONCEPT element to my reading is not an attribute of the paragraph but of the text item "text markup".
Which the paragraph contains.

----------------------------------------
David A. Lee
dlee@calldei.com
http://www.xmlsh.org

-----Original Message-----
From: rjelliffe [mailto:rjelliffe@allette.com.au] 
Sent: Saturday, October 01, 2011 3:09 AM
To: Jim Melton
Cc: liam@w3.org; Costello, Roger L.; xml-dev@l...
Subject: Re:  When you create a markup language, what do your parent elements mean? What do your children elements mean?


 On Thu, 29 Sep 2011 13:29:22 -0600, Jim Melton <jim.melton@oracle.com> 
 wrote:
> Further to the use of XML parent and child elements for
> representation of documents, I'm surprised that nobody has used the
> following example:
>
> <paragraph>This is a sample paragraph that has some <emphasis
> kind="italics">text markup</emphasis> embedded within it.  
> <quote>This
> is a common situation</quote>, said the author.</paragraph>
 ...
> I don't think that anybody could reasonably claim that the <emphasis>
> child element has any definitive relationship to the <paragraph>
> element other than simple containment.  As Liam suggested, this is an
> example of a parent-child relationship that has nothing to do with a
> "has-a" relationship.  That is, <emphasis> is not a property of the
> object <paragraph> (and I find referring to <paragraph> as an 
> "object"
> not all that helpful anyway, although it's certainly not "wrong" to 
> do
> so).

 Ah, I think that is because the wrong level of markup is being used to 
 expose the has-a.

 If you said
 <paragraph>This is a sample paragraph that has some <CONCEPT
 kind="italics">text markup</CONCEPT> embedded within it.  <quote>This
 is a common situation</quote>, said the author.</paragraph>

 then you could certainly say "This paragraph has-a CONCEPT", in the 
 sense that the
 CONCEPT is metadata that reflects some categorizing property attached 
 to the paragraph.
 In that case it happens to be declared inline, but it could be declared 
 as an attribute too:

 <paragraph  CONCEPT="text markup">This is a sample paragraph that has 
 some <emphasis
 kind="italics">text markup</emphasis> embedded within it.  <quote>This
 is a common situation</quote>, said the author.</paragraph>

 In other words, if an explicit relationship is intended, then you need 
 to move away from
 generic semi-presentational elements (such as emphasis) to more 
 specific semi-semantical
 element names (such as CONCEPT or keyword etc.)

 Otherwise, all you are left with is the raw semantic of tags, that they 
 delimit ranges of
 text.

 Cheers
 Rick

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



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