Subject: RE: [xsl] XSLT override an existing template From: "gi rob" <primocazzuto@xxxxxxxxxxx> Date: Fri, 17 Nov 2006 18:25:54 +0000 |
--------------imported.xsl---------------------------------------------------- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" indent="yes"/>
<xsl:template match="/"> <xsl:apply-templates select="shirts/shirt" mode="a"/> </xsl:template>
<xsl:template match="shirts/shirt" mode="a"> <maglia>aaaaaa</maglia> </xsl:template>
<xsl:template match="shirts/shirt" mode="b"> <maglia>bbbbbb</maglia> </xsl:template>
-----------------------------------------------import_ex.xsl--------------------------------------------------------- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="imported.xsl"/> <xsl:output method="xml" indent="yes"/>
<xsl:template match="shirts/shirt" mode="a" > <xsl:copy-of select="."/> </xsl:template>
<xsl:template name = "find_col"> <xsl:param name="colore" /> <shirt> <xsl:for-each select="$colore/color[@cid='c7']">
</shirt> </xsl:template>
</xsl:stylesheet> --------------------------------------------------file.xml-------------------------------------------------------------- <shirts> <shirt colorCode="c4"><a>oxford button-down</a></shirt> <shirt colorCode="c1">poly blend, straight collar</shirt> <shirt colorCode="c6">monogrammed, tab collar</shirt> </shirts> ----------------------------------------------------------------------------------------------------------------------
From: "gi rob" <primocazzuto@xxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] XSLT override an existing template Date: Fri, 17 Nov 2006 15:57:15 +0000
Do you have a working example? please Thanx GiancarloFrom: "Michael Kay" <mike@xxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: RE: [xsl] XSLT override an existing template Date: Fri, 17 Nov 2006 15:43:43 -0000
Yes, it's possible. If it's not working, then you've got something wrong.
Michael Kay http://www.saxonica.com/
> -----Original Message----- > From: gi rob [mailto:primocazzuto@xxxxxxxxxxx] > Sent: 17 November 2006 15:23 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] XSLT override an existing template > > Hi , i m new. I wanna know if is possible to override an > existing template with the "mode" attribute specified, via > xsl:import. Because i have done a simple example working only > without "mode". > Thanx to all > Giancarlo > > _________________________________________________________________ > Idee per i tuoi viaggi... > http://search.live.com/results.aspx?q=viaggi&mkt=it-it&FORM=LV SP&go.x=18&go.y=15
_________________________________________________________________
Usa il tuo PC come un telefono per chiamare cellulari e telefoni fissi! http://imagine-msn.com/messenger/launch80/?locale=it-it&TAB=2
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSLT override an existing, gi rob | Thread | RE: [xsl] XSLT override an existing, Michael Kay |
Re: [xsl] XQuery and XSLT, Robert Koberg | Date | [xsl] how to pass an array of value, Web Developer |
Month |