title: XML transformation - XSL template match multiple conditions
body: <p>I'm trying to modify the ets4_import from calimero to match old ETS4 projects and new ones.</p>
  
  <p>Is it possible to modify</p>
  
  <pre><code>&lt;xsl:template match="/"  xmlns:b="http://knx.org/xml/project/11"&gt;
  </code></pre>
  
  <p>to something like</p>
  
  <pre><code>&lt;xsl:template match="/"  xmlns:b="http://knx.org/xml/project/11 or http://knx.org/xml/project/10"&gt;
  </code></pre>
  
  <p>The XML file is either starting with</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;KNX xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" CreatedBy="ETS4" ToolVersion="ETS 4.0.3 (Build 3250)" xmlns="http://knx.org/xml/project/11"&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;KNX xmlns="http://knx.org/xml/project/10" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" CreatedBy="ETS4" ToolVersion="4.0.1387.12605"&gt;
  </code></pre>
  
  <p><a href="http://pastebin.com/rWnqVusq" rel="nofollow">Here</a> is the complete XSL file.</p>
  
  <p>Can anybody help me?</p>
  
  <p>Thanks</p>
  
  <p><strong>UPDATE</strong></p>
  
  <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:b10="http://knx.org/xml/project/10" xmlns:b="http://knx.org/xml/project/11" &gt;
      &lt;xsl:output method="xml" version="1.0" encoding="iso-8859-1" indent="yes"/&gt;
      &lt;xsl:template match="/"&gt;
          &lt;xsl:for-each select="b:KNX/b:Project/b:Installations/b:Installation/b:Topology"&gt;
              &lt;datapoints&gt;
              &lt;xsl:for-each select="b:Area/b:Line/b:DeviceInstance/b:ComObjectInstanceRefs/b:ComObjectInstanceRef"&gt;
                  &lt;xsl:sort select="b:Connectors/b:Send/@GroupAddressRefId"/&gt;
                  &lt;xsl:if test="not(preceding::b:Connectors/b:Send/@GroupAddressRefId = current()/b:Connectors/b:Send/@GroupAddressRefId)"&gt;
                      &lt;xsl:for-each select="b:Connectors"&gt;
                          &lt;xsl:variable name="verz" select="document(concat(substring(../@RefId,0,7),'/',substring-before(../@RefId, '_O'), '.xml'))/b:KNX/b:ManufacturerData/b:Manufacturer/b:ApplicationPrograms/b:ApplicationProgram/b:Static/b:ComObjectTable/b:ComObject[@Id = ../../b:ComObjectRefs/b:ComObjectRef[@Id = current()/../@RefId]/@RefId]" /&gt; 
                          &lt;xsl:variable name="grosse"&gt; 
  </code></pre>
  
  <p>Is there a possibility to define</p>
  
  <pre><code>b: = b: | b10:
  </code></pre>
  
  <p>so that I don't have to change the complete file</p>