1<?xml version="1.0" encoding="UTF-8"?> 2<xsl:stylesheet version="1.0" 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 xmlns:xlink="http://www.w3.org/1999/xlink" 5 > 6 <xsl:output omit-xml-declaration = "yes" /> 7<xsl:template match="mo" > 8 <xsl:choose> 9 <xsl:when test="and * and" ></xsl:when> 10 <xsl:when test="and and and" ></xsl:when> 11 <xsl:when test="* and *" ></xsl:when> 12 <xsl:when test="not(preceding-sibling::elem1 and following-sibling::elem2)"></xsl:when> 13 <xsl:when test="not(preceding-sibling::* and following-sibling::*)"></xsl:when> 14 <xsl:when test="or * or" ></xsl:when> 15 <xsl:when test="and or or" ></xsl:when> 16 <xsl:when test="* or *" ></xsl:when> 17 <xsl:when test="not(preceding-sibling::elem1 or following-sibling::elem2)"></xsl:when> 18 <xsl:when test="not(preceding-sibling::* or following-sibling::*)"></xsl:when> 19 <xsl:when test="and | and" ></xsl:when> 20 <xsl:when test="* | *" ></xsl:when> 21 <xsl:when test="not(preceding-sibling::elem1 | following-sibling::elem2)"></xsl:when> 22 <xsl:when test="not(preceding-sibling::* | following-sibling::*)"></xsl:when> 23 </xsl:choose> 24</xsl:template> 25</xsl:stylesheet> 26 27