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

  • From: David Carlisle <davidc@nag.co.uk>
  • To: "Costello, Roger L." <costello@mitre.org>
  • Date: Mon, 26 Sep 2011 15:44:00 +0100

Re:  When you create a markup language
On 26/09/2011 14:18, Costello, Roger L. wrote:
> Would you state the meanings of each of those please?

I don't think there is any particular meaning attached to the fact that
one element is a child of another. It's just an essentially arbitrary
syntax choice. In some cases they could have been attributes instead of
elements, in some cases they could not, but that is only because
attributes can not contain structure whereas elements can, so the choice
to use a child element is driven by xml syntax rules rather than any
properties of the thing that is being modelled in the XML.


In particular

> That is, does it mean that "stylesheet" is an object and "template"
> is
its property?

No.

It means that the design of xslt requires that there are more than one
template, and the rules of xml syntax mean there has to be single top
level element, so the templates get wrapped in xsl:stylesheet. Once that
element is added to match xml syntactic constraints it may as well be
used to hang other information such as version etc.

Even within a single element there may be little to no similarity
between the relationships expressed, it just depends on the rules of the
vocabulary being used.

<xsl:for-each...
<xsl:sort ../>
<p>...</p>
</xsl:for-each>


both xsl:sort and <p> are children of xsl:for-each but the relationships
couldn't be more different.

in mathml

<apply><sin/><mn>0</mn></apply>

The two child elements are related rather differently to their parent.
But it doesn't really tell you anything about what the underlying
objects "mean", It could (with perhaps some loss of flexibility) have
been defined to use the syntax

<sin><mn>0</mn></sin>

the fact that it uses the former is a syntactic design choice in MathML,
it doesn't tell you anything about the relationships between the
concepts of function application, the sine function, and the number 0.

David






David


-- 
google plus: https:/profiles.google.com/d.p.carlisle

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________


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