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

Re: HTML tags question

Subject: Re: HTML tags question
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 5 Jul 2000 15:03:03 +0100 (BST)
html tags definiton
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

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.