ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error

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

Re: Endtag attributes

  • From: "Anders W. Tell" <anderst@t...>
  • To: Rick Jelliffe <ricko@a...>
  • Date: Mon, 09 Nov 1998 22:59:28 +0100

rick stream
Rick Jelliffe wrote:

> > From:   Anders W. Tell
>
> > Im especially interested in arguments for having endtag arguments.
>
> One good reason pro is because when you are doing text processing using a
> streaming tool (i.e. one that does not load the document in memory)
> sometimes you wish to write out attributes with values collected from
> processing sub elements.
>
> Consider an application which reads a table and adds an attribute with the
> column and row count.
>
> This is a kind of foward-reference problem. In streaming text processing
> tools you:
>
> * have two passes, or
> * write out the values of all the attributes in an external entity file (so
> that the XML parser resolves the references on next document load), or
> * have a built-in reference resolving phase such as OmniMakr uses.
>
> Until recently (and for all I know, maybe still) most text processing of
> non-HTML SGML/XML marked-up files was done using streaming tools (i.e. with
> event programming).

Is possible to save parts of the document im memory before writing it to the
next stream in a chain. This may not be desirable in cases when documents are
large .


> The trouble with having end-tag attributes for this kind of use is that even
> though it would be easier to generate such documents, an end-tag attribute
> solution does not buy you anything, because if you are using streaming tools
> you will still need the "collected value" attributes when you come to the
> start-tag, in order to set up processing of the rest of the element. You
> still need some step to move the end-tag attribute to the start-tag.

Not all attributes , which are calculated after processing a fragment, are usable

before the all other attributes and children have been processed. An example
of this type of attributes is "Signature" which can may be read when the
start-tag
token arrives but the validation of the signature cannot be perfomed until the
endtag arrives.

However I agree with you that most attributes dont add anything when added in the
end-tag.

> And, as has been mentioned, maybe people who are used to tag-based text
> processing rather than element (i.e. range) based processing will not be
> encouraged to alter their thinking, if end-tag attributes were allowed.

True,

>
> Perhaps the one thing that end-tag attributes might be useful for is
> checksums, though.

And its alter ego Signatures :)


/Anders
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
/  Financial Toolsmiths AB  /
/  Anders W. Tell           /
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/



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.