Source Code for Me (s-c.me)

Allows you to paste souce code to blogs! Adapted for Twitter! Here is Search Form in case you missed your code.
Code:
Selected Language:
Show Linenumbers:
Short link for Twitter:
HTML:

HTML view:

Copy Source | Copy HTML
<?xml version="1.0" encoding="windows-1251"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
    <xsl:import href="default.xsl"/>
 
    ....
 
    <xsl:template match="form">
        <xsl:choose>
            <xsl:when test="$query/_forward and (//error or //question[@error])">
                <xsl:call-template name="form"></xsl:call-template>
            </xsl:when>
            <xsl:when test="$query/_forward and not(//error)">
                <p>Ваше резюме отправлено в кадровую службу в регионе.</p>
            </xsl:when>
            <xsl:otherwise>
                <xsl:call-template name="form"></xsl:call-template>
            </xsl:otherwise>
        </xsl:choose>
    </xsl:template>
 
    <xsl:template match="error">
            <div class="red">
                <xsl:value-of select="text()" /></div>
    </xsl:template>
 
    <xsl:template name="form">
        <form method="{@method}" action="{@action}" enctype="{@enctype}" class="{@class}" id="{@id}">
        <div class="bgBot">
        <div class="bgTop">
            <h4>Отправьте свое резюме</h4>
            <xsl:apply-templates />
            <p><br />
                <xsl:call-template name="required-text" /></p>
            <xsl:call-template name="submit-button-forward"/>
        </div>
        </div>
        </form>
    </xsl:template>
 
    ...




Based on Manoli.Net's CodeFormatter. Made by Topbot (c) 2008-2012