[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

HTML tags question

Subject: HTML tags question
From: Selim Cesic <selim.cesic@xxxxxxxxx>
Date: Wed, 05 Jul 2000 15:29:45 +0200
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.