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

Re: Re: 3 XML Design Principles


vrml thunderbird
> Same for VRML and X3D.  It has route structures.   I tend to think of it as
> a network of objects, not a hierarchy.   X3D has a hierarchy in the
> XML encoding because it has to have a root node.  In the VRML, encoding,
> it doesn't.   USE nodes provide, define one use everywhere functionality.
> There is a hierarchy of objects with some inheritance of properties, and
> to nest finite coordinate spaces.   X3D like VRML likes a one pass parse.

I was actually thinking of bringing up a very similar example in SVG. In 
SVG 1.1 you have a <use> element that can refer by id to a defined 
graphic primitive. Certain attributes of the <use> are passed on to the 
conceptual copy of the primitive (say a polyline). While this cuts down 
on repeated data throughout the SVG document it is wildly complex to 
process.

One must understand the notion of a conceptual graphic, a shadow tree, 
and a realized version of the document when rendered. This is 
exacerbated by interactivity-- when an object that was <use>d is clicked 
you must find the conceptual node correlating to the position clicked, 
then find the corresponding <use> element and ultimately pass a third 
interface to the conceptual primitive using an SVGElementInstance.

Once you have all of that figured out you then have to worry about 
mutation events in either the <use> or the element to which the <use> is 
referring (i.e., both ends of the relationship must be monitored for 
changes). This ultimately leads to a lot of jumping around in the 
processing. It is confusing at best.

When working with <use> elements the first question I ask of document 
creators is "Do you *really* need them".

I wasn't sure exactly how to tie this back to Roger's post-- so thanks 
Len for giving me the stepping stone.

Cheers,
Jeff Rafter

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-2007 All Rights Reserved.