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...)
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format