Re: HTML tags question

Subject: Re: HTML tags question
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 5 Jul 2000 15:03:03 +0100 (BST)
If you have XML elements with XHTML children and you want to copy
the HTML subtrees then you could use <xsl:copy-of select="node()"/>
but in your case you do need to use apply-templates so that you
eventually find the  <TABLENAME/> and replace it by whatever you need.

However you don't need to write out a template for every html element,
just use the identity transform that is in the XSLT spec, then
every element will be copied by default, and you just need add templates
matching TABLENAME etc for those elements taht you don't want to copy.

But your setup seems a rather strange use of XSL, rather than
have


> 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.

why not just use XSL directly?



<center xmlns:xsl="http://www.w3.org/1999/XSL/Transform xsl:version="1.0">
	<h1>
		Name of the table is: <xsl:value-of select="xxxx"/>
	</h1>
</center>

is a complete XSL stylesheet that would act as you describe, it is a
template with data (the table name) being filled at runtime.

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread