[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Newbie question--applying templates, selecting par
Hello Kathryn,
---------------------- XSL file----------------------------------- <?xml version="1.0" encoding="UTF-8"?> here is a little error. It has to be <xsl:template match="/">. But this template is not explicitely needed, you can remove it. <!-- Handle any node not yet matched --> <xsl:template match="*|@*|text()|comment()"> <xsl:copy> <xsl:apply-templates select="*|@*|text()|comment()"/> </xsl:copy> </xsl:template> This stylesheet copies "all and everything". If you add other templates mathcing on <div>, with a special predicate and do nothing in these templates, those <div>s won't be copied. example: <xsl:template match="div[@class='mgronly']"> <!-- 'mgronly' div's won't be copied --> </xsl:template> Regards, Joerg 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
|