OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: <xsl:insert> - Further Description

[ Lists Home | Date Index | Thread Index ]
  • From: tpassin@home.com
  • To: "Xml-Dev@Xml. Org" <xml-dev@xml.org>
  • Date: Mon, 24 Jul 2000 22:44:48 -0400

Jim Garrett has been asking for help with his complex stylesheet situation:
>
>
> What I am doing is attempting to do is use a master xsl (listing 1)
> sheet as a template for all pages on a web site...
>
> This way I can just copy a new instance of the master and
> only have to change the maincontent.xsl sheet that has
> the different content for each page ...the logo, menu,
> footer would not have to be edited in all the copies of
> the templates...rather the logo, menu, footer, would only
> have to be edited just once in their respective xsl files
> in order to propagate throughout all the instances of the
> master template...
>
>
Trouble is, Jim, I can't see what your problem is.  It would be better if
you showed a before and after version, since xslt performs
***transformations***.  You show places where it looks like xsl:insert
works, then you say it doesn't.  What transformation does not work with it?
If you only show the style sheet, everything stays abstract and we have to
guess what you are trying to accomplish - basically do a reverse engineering
job.   Show the untransformed and the transformed files, and highlight the
parts that need to change for different sites.  Then show examples of the
kind of changes you need to accomodate.  Preferably, don't show everything,
just representative examples that do and don't work.

Seems to me that this would be a good place to use global parameters -
although how to set them (if you can) is xslt-processor
implementation-dependent.  You could pass in all kinds of file names and
settings that way.

Maybe your page design is too complex.  Maybe you should be doing it in
frames. But we can't tell.

Cheers,

Tom Passin





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS