[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: <xsl:insert> - Further Description
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|