All pastes #383928 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-03-06 18:34 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:apply-templates select="./*"></xsl:apply-templates>
		</out>
	</xsl:template>
	<xsl:template match="br">
		<xsl:text disable-output-escaping="yes">BREAK</xsl:text>
	</xsl:template>
</xsl:stylesheet>