[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to used HTML tags with XML/XSL
I got it! Some templates were applied using the copy template (basicHTML.xsl) because they have no template match at the other file (tabbedNotebook.xsl). I made this because, for some tags, I just wanted their CDATA values to be copied (which is the default). I have made simple templates to copy their CDATA and it worked perfectly. Thanks alot for your help. On Fri, 14 Jan 2005 17:20:55 GMT, David Carlisle <davidc@xxxxxxxxx> wrote: > > > > But it didn't work as I want. > > but how did it work:-) > > If the template to copy html didn't get applied then some other template > must have been applied, if you tell us which one that was, and which > stylesheet file it was in, we can suggest how to change things so it is > applied. > > conversely if the copy templae is applied to often and is overriding > some other template that you want to use on non-html elements, again say > which template is being overwridden and which stylesheet it is in. > > You have > <xsl:import href="basicHTML.xsl"/> > <xsl:include href="tabbedNotebook.xsl"/> > > > the xsl:include is basically the same as just putting all the included > templates into your top level xsl, and all these templates should then > have higher imprt precedence than the templates for basicHTML.xsl. > which is what you want. > > David > > ________________________________________________________________________ > This e-mail has been scanned for all viruses by Star. The > service is powered by MessageLabs. For more information on a proactive > anti-virus service working around the clock, around the globe, visit: > http://www.star.net.uk > ________________________________________________________________________ > > -- Regards, Ahmed Saad
|
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
|