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

Re: dynamic elements


james william pye
On Mon, Oct 25, 2004 at 11:03:51AM -0700, James William Pye wrote:
[...]

>  <char:amp/>
>  <char:lt/>
>  <!--
>   This works out nicely, I think. It provides entity functionality with
>   namespaces, which I find quite attractive, and very interesting.
>   !-->
> </xml>

As you note, you can already do this in XInclude.
It doesn't work in attribute values, though --

href="http://&content-server;/&docroot;/Introduction"

This sort of approach (using element syntax for replaceable
content) has been discussed before, and has been deployed in
environments ranging from semiconductor data sheets to
transcriptions of historical texts.

If it hasn't caught on everywhere, I think it's largely
because of problems with attribute values.

You are more likely to want
    <constant name="amp" />
or
    <constant name="companyName" />
in practice -- i.e. not just a character, and perhaps even containing
embedded markup.

But then you sometimes want to strip out the markup, so you end
up with multiple defintions or with something like
    <constant name="companyName" format="plain" />

The contribution of namespaces here is perhaps that schema writers could
incorporate the namespace more easily, although it also may make life
harder for DtD writers.

Liam

-- 
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/

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.