Skip to content

Instantly share code, notes, and snippets.

@cheongwy
cheongwy / sample.xsl
Created July 3, 2012 08:15
Simple xsl
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version = '1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:param name="myparam">Not set</xsl:param>
<xsl:template match="/root">
<h1>
<xsl:value-of select="content"/>
</h1>
<param><xsl:value-of select="$myparam"/></param>
</xsl:template>
@cheongwy
cheongwy / TestResequencer.java
Created June 18, 2012 03:18
Spring Integration Resequencer Bug
import static org.junit.Assert.assertNotNull;
import java.util.Comparator;
import org.junit.Before;
import org.junit.Test;
import org.springframework.integration.Message;
import org.springframework.integration.MessageChannel;
import org.springframework.integration.aggregator.ResequencingMessageGroupProcessor;
import org.springframework.integration.aggregator.ResequencingMessageHandler;