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

Re: Can you have a dummy XSL?

Subject: Re: Can you have a dummy XSL?
From: "Michael Beddow" <mbnospam@xxxxxxxxxxx>
Date: Wed, 1 Aug 2001 13:28:16 +0100
xalan dummy.xsl
Wednesday, August 01, 2001 11:50 AM
Hewko, Doug wrote:

> Can you have a XSL that does not do any text formatting or
> processing? I am working on a web page and want to enforce
> a standard look and feel. Part of  this standard is a generic
> header title, left bar navigation and footer information. Tables
> would be used to maintain this look and feel. The title,
> left bar and footer will contain text, links and icons. These would
> all be standard.

I'm not sure what precisely you're asking (especially the first part)
but just in case it helps here's a skeleton of how I used to do
something like what you may be aiming at, using Cocoon

Each page looked in outline like this:

<?xml version="1.0"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet type="text/xsl" href="/xsl/webpage1.xsl">
<!DOCTYPE webpage [
<!ENTITY sidelinks SYSTEM "sidelinks.xml">
<!ENTITY toplinks SYSTEM "toplinks.xml">
]>
<webpage>
<title>The Title of this page</title>
&toplinks;
&sidelinks;
<heading>Main heading for this page</heading>
<p>Text of page goes here</p>
</webpage>

The generic side- and topbar stuff were in the files here referenced
via entities, which the parser pulls in before applying the transform,
so the xslt gets to see a single xml document which melds the generic
elements and the specific contents. Changes to either the single files
sidelinks.xml or toplinks.xml are reflected in all the pages built from
this template.

Sorry if this is nothing like what you are aiming for.

Michael
---------------------------------------------------------
Michael Beddow   http://www.mbeddow.net/
XML and the Humanities page:  http://xml.lexilog.org.uk/
---------------------------------------------------------





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


Current Thread

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.