Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Can you have a dummy XSL?

From: "Michael Beddow" <mbnospam@----------->
To:
Date: 8/1/2001 4:28:00 AM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent