This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]