Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 7th, 2005, 04:11 PM
Registered User
 
Join Date: Dec 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Merging two xslts into one...help!!

xsl
 
Old January 7th, 2005, 04:21 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Move all the template rules that really are exactly the same into one module, common.xsl. Keep the ones that are different in separate modules, win.xsl and mac.xsl. In win.xsl and max.xsl add

<xsl:import href="common.xsl"/>

(Your URLs are not actually accessible, so this advice is without the benefit of looking at your code)

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Grouping/Merging Jens Rudolph XSLT 2 June 6th, 2007 02:50 AM
Merging files ajindal General .NET 2 January 10th, 2007 06:42 AM
Merging XML Help Please sam666 XML 7 March 8th, 2006 02:50 AM
Merging reports siptah Access VBA 1 May 13th, 2005 08:05 AM
Embedded XSLTs in a C# Project spjewett C# 3 November 9th, 2004 09:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.