This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: And while you're figuring out my last one....


Hi Daniel,

Hope you're hungry for an answer now ;-))

I don't know if that's all you want, but if you do, you can simple make "empty" templates for what you want to leave out:
	<xsl:template match="Result"/>

	<xsl:template match="Code"/>

	<xsl:template match="NameAdress1"/>

	<xsl:template match="*">
		<xsl:if test="text()">
			<xsl:copy-of select="."/>
		</xsl:if>
	</xsl:template>

The extra test is because I suppose you want to supress NameAdress-nodes without contents....
And in that case, if Result and Code are always empty, you wouldn't even need the first 2 templates....

Greetings Rene
   { @   @ }
        ^
      \__/

"You don't need eyes to see, you need vision!"

-----Oorspronkelijk bericht-----
Van:	Daniel Newman [SMTP:daniel.newman@bis-web.com]
Verzonden:	vrijdag 13 juli 2001 14:21
Aan:	xsl-list@lists.mulberrytech.com
Onderwerp:	[xsl] And while you're figuring out my last one....

 << Bestand: ATT00012.txt; charset = Windows-1252 >> 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]