To reproduce, upload the attached xsl file, then in the Portfolio Templates tool, select it as the "Basic Template Outline" form. After attaching the xsl and returning to the "Build Template" "Step 2 of 4" page, click continue. The attached stack trace is thrown. The stack trace is thrown with other xsl files, as well. The problem does not happen on 2.5.