title: Transform XML to XAML with XSL
body: <p>Lets say i have the following code snippet in xml:</p>
  
  <pre><code>&lt;PanelWrapper   id="RootPanel" 
                  dock="Fill" 
                  width="1092" 
                  height="605" 
                  backcolor="Transparent" 
                  visible="True"&gt;
      &lt;ButtonWrapper  id="button1" 
                      dock="Left" 
                      text="TestButton" 
                      width="75" 
                      height="605" 
                      border-left="1" 
                      border-top="1" 
                      border-right="1" 
                      border-bottom="1" 
                      font-name="Tahoma" 
                      font-size="9" 
                      font-style="Regular"&gt;
      &lt;/ButtonWrapper&gt;
  &lt;/PanelWrapper&gt;
  </code></pre>
  
  <p>i need to transform the xml code to XAML. The expected endresult should look like this:</p>
  
  <pre><code>&lt;WrapPanel Name="RootPanel" 
             DockPanel.Dock="Left, Right, Top, Bottom" 
             Width="1092" Height="605" 
             Background="Transparent"  
             Visibility="Visible"&gt;
      &lt;Button Name="button1" 
              DockPanel.Dock ="Left" 
              Content="TestButton" 
              Width="75" 
              Height="605" 
              BorderThickness="1,1,1,1" 
              FontFamily="Tahoma" 
              FontSize="9" 
              FontStyle="Normal"&gt;
      &lt;/Button&gt;
  &lt;/WrapPanel&gt;
  </code></pre>
  
  <p>is this transformation possible with an xsl stylesheet?</p>
  
  <p>I'm asking especially about transformations like these:</p>
  
  <p>from </p>
  
  <pre><code>border-left="1" 
  border-top="1" 
  border-right="1" 
  border-bottom="1"
  </code></pre>
  
  <p>to</p>
  
  <pre><code>BorderThickness="1,1,1,1" 
  </code></pre>
  
  <p>or from</p>
  
  <pre><code>visible="True"
  </code></pre>
  
  <p>to</p>
  
  <pre><code>Visibility="Visible"
  </code></pre>