All pastes #383912 Raw Edit

Stuff

public text v1 · immutable
·published 2007-03-06 18:19 UTC
rendered paste body
<!-- Input XML -->
<?xml version="1.0"?>
<test>
	<data>this is some text<br />and this is some more,<br /> and more.</data>
</test>

<!-- XSL Stylesheet -->
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" omit-xml-declaration="yes" indent="yes" />
	<xsl:template match="/test">
		<out>
			<xsl:for-each select=".">
				<xsl:if test="name() = 'br'">
					<xsl:text disable-output-escaping="yes">BREAK</xsl:text>
				</xsl:if>
				<xsl:value-of select="." />
			</xsl:for-each>
		</out>
	</xsl:template>
</xsl:stylesheet>