title: DOMDocument::load(): attributes construct error; xslt, select
body: <p>I'm trying to simple walk a path down on a xml-file to a element. But it didnt work.</p>
  
  <p>.xsl
      
      </p>
  
  <pre><code>&lt;xsl:template match="/"&gt;
  &lt;html&gt;
  &lt;head&gt;&lt;title&gt;&lt;/title&gt;&lt;/head&gt;
  
  &lt;body&gt;
  &lt;h2&gt;ECU&lt;/h2&gt;
    &lt;table border="1"&gt;
      &lt;tr bgcolor="#9acd32"&gt;
        &lt;th&gt;FRAMES&lt;/th&gt;
        &lt;th&gt;TIME-PERIOD&lt;/th&gt;
      &lt;/tr&gt;
      &lt;xsl:for-each select="AUTOSAR/AR-PACKAGES/AR-PACKAGE[SHORT-NAME='GMC']"&gt;
  &lt;!--    &lt;xsl:for-each select="AUTOSAR/AR-PACKAGES/AR-PACKAGE"&gt;--&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;xsl:value-of select="SHORT-NAME" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;/xsl:for-each&gt;
    &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>But when i change the line </p>
  
  <pre><code>&lt;xsl:for-each select="AUTOSAR/AR-PACKAGES/AR-PACKAGE"&gt;
  </code></pre>
  
  <p>to</p>
  
  <pre><code>&lt;xsl:for-each select="AUTOSAR/AR-PACKAGES/AR-PACKAGE[SHORT-NAME='GMC']"&gt;
  </code></pre>
  
  <p>the result is getting from this
  <a href="http://i.stack.imgur.com/daffu.png" rel="nofollow">all Packages are shown</a></p>
  
  <p>to a blank page with the error:</p>
  
  <pre><code>DOMDocument::load(): attributes construct error
  </code></pre>
  
  <p>The XML ist to large to post it.
  <strong>UPDATE #1</strong>:</p>
  
  <p>The .xsl is the hole XSLT file!
  The transformation is done under PHP in a spache server (serverside) (see: <a href="http://www.w3schools.com/xsl/xsl_server.asp" rel="nofollow">http://www.w3schools.com/xsl/xsl_server.asp</a>).</p>
  
  <p>For example the XML snippet:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!--
  This file was saved with a tool from Vector Informatik GmbH
  --&gt;
  &lt;AUTOSAR xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://autosar.org/schema/r4.0 AUTOSAR_4-1-1.xsd"&gt;
    &lt;ADMIN-DATA/&gt;
    &lt;AR-PACKAGES&gt;
      &lt;AR-PACKAGE UUID="4820f45c-9a5b-49a2-883f-0c7540cf181f"&gt;
        &lt;SHORT-NAME&gt;GMC&lt;/SHORT-NAME&gt;
              ...
      &lt;AR-PACKAGE UUID="4820f45c-9a5b-49a2-883f-0c7540cf182f"&gt;
        &lt;SHORT-NAME&gt;AutosarTEPackage&lt;/SHORT-NAME&gt;
              &lt;ROOT-SW-COMPOSITION-PROTOTYPE UUID="9979918152ce3777d6360de31"&gt;
                &lt;SHORT-NAME&gt;HighFeatureRootCompositionType&lt;/SHORT-NAME&gt;
                &lt;SOFTWARE-COMPOSITION-TREF DEST="COMPOSITION-SW-COMPONENT-TYPE"&gt;/AutosarTEPackage/System/HighFeatureRootCompositionType&lt;/SOFTWARE-COMPOSITION-TREF&gt;
              &lt;/ROOT-SW-COMPOSITION-PROTOTYPE&gt;
      &lt;AR-PACKAGE UUID="4820f45c-9a5b-49a2-883f-0c7540cf183f"&gt;
        &lt;SHORT-NAME&gt;Communication&lt;/SHORT-NAME&gt;
  ...
  ...
      &lt;/AR-PACKAGE&gt;
    &lt;/AR-PACKAGES&gt;
  &lt;/AUTOSAR&gt;
  </code></pre>