[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] HTML tags question
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
|
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
|