|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: apply one XSLT stylesheet to another one ?
> Is it possible to modify one XSLT stylesheet (A) with another > (B) to create a new one (C), I guess it is! Yes, it is possible. > Would be great if > someone of you could help me, a tiny example would be more > than great. Here's a tiny example: <xsl:stylesheet... <xsl:template match="*"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> <xsl:template match="xsl:template[@match]"> <xsl:copy> <xsl:attribute name="priority" select="10"> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> </xsl:stylesheet> This adds a priority="10" attribute to any xsl:template with a match attribute that does not already have a priority. Michael Kay http://www.saxonica.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. 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
|







