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

RE: Streamline xslt

Subject: RE: Streamline xslt
From: "Walter Torres" <walter@xxxxxxxxx>
Date: Wed, 25 Sep 2002 12:43:06 -0500
walter torres
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Geoff
> Sent: Wednesday, September 25, 2002 12:26 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Streamline xslt
>
>
> I love using XSLT because I can expose my web pages as xml
> and use xslt to transform the xml into html or something else
> like wml. The presentation is cleanly separated from content.
>
> The problem I see is if I need to change the presentation. I'm sure
> someday at some point someone will say let's give the Website a new
> look. Each "page" has a php script that either points to an
> xml file or creates xml on the fly, then points to an xsl file
> and passes this to the Sablotron processor. To change the site
> design I have to update each xsl file in the site...

<snip>

We have taken a slightly different approach.

All the "pages" are stored as XML data files, no style info, just data
types, i.e.: paragraph, title, subhead, etc.

Depending on the presentation needed (we have 3 different ones) different
XSLT files are used, all based upon context. Each XSLT has INCLUDED each of
these "data" types styles are defined in CSS files.

A central XML MAP file defines which XSLT is used in which context, and each
XML is tied to XSLT in general.

So, welcome.xml is tied to welcome.xsl. The XML MAP file looks at the
context (which site design to use based on other info) and translate
welcome.xsl to any defined welcome.xsl for each context.

This gives us...
 - a single data file
 - a single XSLT file per context
 - a matching CCS per context

Change the content in a single XML file, this appears in all contexts.
Change the design in a single context, it does not disturb the data or the
other contexts.

Very straight forward.

Just my 2 cents.

walter


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • Streamline xslt
    • Geoff - Wed, 25 Sep 2002 13:26:27 -0400 (EDT)
      • Walter Torres - Wed, 25 Sep 2002 13:38:49 -0400 (EDT) <=
      • Mike Brown - Wed, 25 Sep 2002 13:51:58 -0400 (EDT)
      • Robert Koberg - Wed, 25 Sep 2002 14:07:54 -0400 (EDT)
        • Geoff - Thu, 26 Sep 2002 08:14:47 -0400 (EDT)

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
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.