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