[xsl]Controlling the output template

Subject: [xsl]Controlling the output template
From: "Leonidas Kanellos" <leonidaskanellos@xxxxxxxxxxx>
Date: Tue, 08 Apr 2003 00:10:48 +0000


Hi

I have the following code in my xslt stylesheet and i want to restrict it in order not to give me everything at the output.

<!-- default: just copy input to output -->
<xsl:template match="*|text()|*/comment()|processing-instruction()">
	<xsl:copy>
		<xsl:for-each select="@*">
			<xsl:copy/>
			</xsl:for-each>
			<xsl:apply-templates/>
		</xsl:copy>
	</xsl:template>


I succeed to take the element at the output, that i want, but i believe that this template give me the rest(text and other elements) that i don't want.


Leo

P.S.
Thanks guys for answering my question about:[xsl]passing a parameter at the url using Javascript. Your answers were really helpfull.



_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread