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

RE: Maintainability Problem

Subject: RE: Maintainability Problem
From: Tim Kyle <tk12@xxxxxxxxx>
Date: Wed, 5 Mar 2003 12:09:18 +0000 (GMT)
tim kyle
Hi-

Many thanks Michael and Jarno for your help. I implemented what
you told me, and everything is working really well now.

Thanks again,

Tim A. Kyle
University of Kent at Canterbury


On Mon, 3 Mar 2003, Michael Kay wrote:

> Have three modules, A, B, and C, with A and B both importing C using
> xsl:import. Include the parts that differ (in your case, the xsl:output
> declarations) in A and B, and the common parts in C. Run the
> transformation nominating A or B as the principal stylesheet, depending
> which output format you want.
>
> Michael Kay
> Software AG
> home: Michael.H.Kay@xxxxxxxxxxxx
> work: Michael.Kay@xxxxxxxxxxxxxx
>
>
>
> > -----Original Message-----
> > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Tim Kyle
> > Sent: 03 March 2003 13:53
> > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> > Subject:  Maintainability Problem
> >
> >
> > Hi-
> >
> > I haven't used XSL in a while, and I am facing a
> > maintainability problem.
> >
> > I have created two XSLs, one which is with a DOCTYPE for HTML
> > 4.01, the other for XHTML Basic. These XSLs are exactly the
> > same, except for these parts of my XSL:
> >
> > HTML 4.01
> > ---------
> >
> > <xsl:stylesheet version="1.0"
> >     xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> >
> > <xsl:output method="html"
> >     doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
> >     doctype-system="http://www.w3.org/TR/html4/loose.dtd"
> >     encoding="iso-8859-1"
> >     indent="yes"/>
> >
> > ...and
> >
> > XHTML 1.0
> > ---------
> >
> > <?xml version="1.0"?>
> > <xsl:stylesheet version="1.0"
> >     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> >     xmlns:html="http://www.w3.org/1999/xhtml">
> >
> > <xsl:output method="xml"
> >     doctype-public="-//W3C//DTD XHTML Basic 1.0//EN"
> >
> > doctype-system="http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"
> >     encoding="iso-8859-1"
> >     indent="yes"
> >     omit-xml-declaration="yes"/>
> >
> > Does someone know an easy way in which I could have two
> > files, one with the HTML 4.01 header and one with the XHTML
> > 1.0 header, and I could reuse them whenever I wanted by
> > calling them in XSLs when needed. For example, could I just
> > do an include of these headers rather than having to copy
> > them in each file?
> >
> > Please let me know,
> >
> > Many thanks,
> >
> > Tim Kyle
> > University of Kent at Canterbury (UK)
> >
> >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>

-- 


 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.