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

re: Re: [SML] Whether to support Attribute or not?

  • From: rev-bob@g...
  • To: xml-dev@i...
  • Date: 29 Nov 99 10:50:39 -0500

re: Re: [SML] Whether to support Attribute or not?
> >   Consider:   
> >     
> >     <element att="val"> <content/> </element>
> How about this?
> 	<element <att>val</att>> <content/> </element>
> This is for sure not XML/SGML, but it generalizes the recursive
> pattern.  If you want an attribute on the attribute, you write:
> 	<element <att <att-of-att>subvalue</att-of-att>>val</att>>  ...

This might be the right time to note that the iHTML server-side scripting package 
operates in exactly that manner.  An actual scrap of code (from my site) looks like:

<iSET sbit=`<iRANDOM dbname="gotc" table="SQLcode">`>

The main bugaboo in using this structure, at least where iHTML is concerned, concerns 
quotes.  The above works fine, because the back-sq's (a) properly contain the unparsed 
iRANDOM tag and (b) do not appear in the data which replaces that tag.  However, this 
can get really nasty if you're not careful; it helps if you actually break down the recursion 
into successive statements.

 Rev. Robert L. Hood  | http://rev-bob.gotc.com/
  Get Off The Cross!  | http://www.gotc.com/

Download NeoPlanet at http://www.neoplanet.com

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/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.
First Name
Last Name
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.