Subject: HTML tags question From: Selim Cesic <selim.cesic@xxxxxxxxx> Date: Wed, 05 Jul 2000 15:29:45 +0200 |
Hi all, I want to make a stylesheet that can "let the HTML tags go through". My application uses (user maintained) "XML templates" (empty noded docs) that are "filled" with data on runtime. Filling itself is done by user-made (JPython) scripts that are invoked from the system. So, the user chooses the tag names and the way to fill them. However, I also want to allow them to adjust the output by introducing their own HTML structure throughout the XML template doc and not by adjusting the stylesheet. XML template example: <center> <h1> Name of the table is: <TABLENAME/> </h1> </center> After document filling, stylesheets are applied and the value of TABLENAME is simply outputed (without changes or formating since there is no specific template for each user-invented tag) but html tags should somehow be copied too.... I started by creating a template for each html tag in a form: <xsl:template match="hr"> <hr> <xsl:apply-templates/> </hr> </xsl:template> I really hope that someone out there will tell me that this is NOT a good approach and that there is an easier (faster to make) way, 'cause typing all HTML tags with their attributes is the last thing I want to do right now :-) Hope someone can help... thanks -SeJo XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Schema Element Definiton Order, David Carlisle | Thread | Re: HTML tags question, David Carlisle |
Re: Schema Element Definiton Order, David Carlisle | Date | Re: HTML tags question, David Carlisle |
Month |