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

Re: Bag of ideas and breaking the formatting-structure barrier

  • From: "James Fuller" <james.fuller.2007@g...>
  • To: "Brett Zamir" <brettz9@y...>
  • Date: Tue, 12 Jun 2007 13:40:25 +0200

Re:  Bag of ideas and breaking the formatting-structure barrier
On 6/12/07, Brett Zamir <brettz9@y...> wrote:
> Hello,
>
> Thanks for your response. But while your suggestion might work to move
> items into say the style element of an XHTML document, wouldn't the
> original elements still be within the document? And I don't think this
> cuold offer the option of getting the styling (or scripting, etc.)
> content moved to an external file--in order to take advantage of the
> benefits of a complete separation of formatting from structure.

u could use something like xupdate.....though admittedly formally
specified updating mechanisms for xml are thin on the gound.

as for your specific question, if i understand your  email correctly
what u suggest is just a simple xslt (easier using XSLT 2.0).

If u are asking about opinions on such a technique I would offer;

Putting links  in source documents  become hard to manage
quickly...e.g. what  if u have several documents 'hard coded' with
places to move data to.o....and you want to do something like change
the name or location of the generated document...u need to change it
in all documents.

It is much easier to have an external process address data, instead of
embedding information in source docs.

I would also argue that your native format, it not being xhtml means u
are asking for everyone in the development workflow to have at least a
single xslt tranform before they 'see' something correctly..if u have
control over the environment perhaps this is fine.

as I see it the *only* benefit is some maintenance aspects by
separating content from style....but I maybe missing parts of your
puzzle.

btw the separate 'style from content' mantra has been beaten to death
on this list (and yours trully) for years....after one gets through
creating a few xslt frameworks other questions  like 'how do I know
the difference between what is style and what is content' start being
asked.....ultimately separating style (or semantics) from content is
removing information which maybe needed at some later point.

So my general advice these days is to not be so quick to apply this
abstraction everywhere, it typically is an 'early optimisation' which
in programming can be lethal.

hth, Jim Fuller


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.