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

Re: element content vs. element attribute

  • From: Peter Murray-Rust <peter@u...>
  • To: xml-dev@i...
  • Date: Sun, 21 Dec 1997 17:09:25

java textarea is very slow
At 06:55 21/12/97 -0500, David Megginson wrote:
>Ray Waldin writes:
>

>(Peter: how do you display attributes in Jumbo?)

JUMBO uses 4 sorts of display:
	- event stream ("text with embedded tags")
	- tree
	- X*L-predicated
	- specialist (downloadable classes or user-applied)

Event Stream
	This is essentially to be rendered as text. JUMBO has the following ways
of dealing with tags:
	- recognise them as HTML and produce HTML-compliant rendering. It's not
pretty, and I've only done HTML 2.0 [I didn't set out to produce a browser,
remember :-). However it's necessary to have one, because people will start
"embedding XML in HTML" so we have to have a renderer. The most likely
first task is to render XML-LINKs
	- present them as text with tags. Because Java does not have a nice way of
embedding buttons in text, I either have to use paint(), which is very slow
and which has no defined textual semantics (e.g. Ctl-X) OR use TextArea,
where the tags are simple transliterations of the input and have no
clickability (because TextArea 1.02 has no clickability that *I* can see).
In a better situation I would create pretty buttons for the tags and paint
them nice colours according to whether they have attributes
	Note that the second model is editable, and is XML-sensitive (e.g. there
are options like "JumpBalancedtags")

Tree
	The Nodes have a variety of buttons in paint(). One button is "At" in
cyan. Clicking it reveals a box with attributes in. This can be edited, and
the editor is DTD driven. It deals with #IMPLIED, REQUIRED, #FIXED, etc. It
does not deal with NOTATION because I don't understand it. It will deal
with XML-LINK when I have written a drag and drop top add the internal
links (isn't Java boring...)

XML-driven.
	JUMBO makes a best guess as to what the drafters of the spec expect for
things like xml:link SHOW="EMBED". JUMBO has asked about this a number of
times and will try no to do anything to unexpected. JUMBO has also asked
about xml:space="DEFAULT", but has no default at present
	There are already quite a few hardcode attributes in X*L and all require
specialist code to be written.

Specialised
	This requires bespoke code to be written, e.g.
<ARRAY CONTENT="MATRIX" STRUCT="UpperTriangular" ROWS=3>1 2 3 4 5 6</ARRAY>
has (I think) nothing displayed in the lower half. 

>
>Of course, what is and isn't meta-data will vary depending on the
>document type, but here are some common examples:
>
>* the preferred unit of measurement

I took this view initially but (see recent posting) have changed my mind
because UNITS are complex objects. As everyone agrees, the distinction is
subjective BUT  will be influenced by the tools that we create on this list
and elsewhere. personally I am against having structure in attributes if it
can be avoided because it requires additional code to be written. I have
been so impressed with the economy of doing everything in XML, that I would
hate to see more 'mini-languages' inside attributes.

	P.

BTW I am working hard on a new snapshot of JUMBO. It will be the last 1.02
version, I think. There are quite a lot of new goodies, and I will try to
create the distribution in smaller packets as I know it has been difficult
to download.

	P.


Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
net connection
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary
http://www.venus.co.uk/vhg

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.