AxKit-App-TABOO

 view release on metacpan or  search on metacpan

htdocs/transforms/articles/xhtml/submit.xsl  view on Meta::CPAN

  <xsl:param name="neg.lang">en</xsl:param>


  <xsl:template match="cust:submit">
    <html lang="{$neg.lang}">
      <head>
	<title>
	  <xsl:apply-templates select="./cust:title/node()"/>
	  <xsl:text> | </xsl:text>
	  <xsl:value-of select="document('/site/main.rdf')//dc:title/rdf:Alt/rdf:_2"/>
	</title>
	<xsl:call-template name="CommonHTMLHead"/>
	<xsl:call-template name="TinyMCE"/>	
	<link rel="top" href="/"/>
      </head>
      <body>
	<xsl:call-template name="CreateHeader"/>
	<div id="breadcrumb">
	  <xsl:call-template name="BreadcrumbTop"/>
	</div>
	<div id="container">
	  <xsl:variable name="uri" select="concat('http://',
	    substring-before($request.headers.host, ':'), '/menu.xsp?VID=' , $session.id)"/>
	  <xsl:copy-of select="document($uri)"/>
	  <div class="main">
	    <h2 class="pagetitle"><xsl:apply-templates select="./cust:title/node()"/></h2>

	    <xsl:apply-templates select="./art:article-submission"/>
	    
	    <xsl:if test="art:problem">
	      <div class="error">
		<h2><xsl:value-of select="i18n:include('problem-occured')"/></h2> 	
		<p>
		  <xsl:for-each select="art:problem">
		    <xsl:choose>
		      <xsl:when test=". = 'title'">
			<xsl:value-of select="i18n:include('article-title')"/>
			<xsl:value-of select="i18n:include('missing')"/>
		      </xsl:when>
		      <xsl:when test=". = 'authorid'">
			<xsl:value-of select="i18n:include('authorid')"/>
			<xsl:value-of select="i18n:include('missing')"/>
		      </xsl:when>
		      <xsl:when test=". = 'description'">
			<xsl:value-of select="i18n:include('article-description')"/>
			<xsl:value-of select="i18n:include('missing')"/>
		      </xsl:when>
		      <xsl:when test=". = 'primcat'">
			<xsl:value-of select="i18n:include('primcat')"/>
			<xsl:value-of select="i18n:include('missing')"/>
		      </xsl:when>
		      <xsl:when test=". = 'code'">
			<xsl:value-of select="i18n:include('language')"/>
			<xsl:value-of select="i18n:include('missing')"/>
		      </xsl:when>
		      <xsl:when test=". = 'text'">
			<xsl:value-of select="i18n:include('article-textstring')"/>
			<xsl:value-of select="i18n:include('missing')"/>
		      </xsl:when>
		      <xsl:when test=". = 'filename' or . = 'upfile'">
			<xsl:value-of select="i18n:include('either-upload-or-filename')"/>
			
		      </xsl:when>
		      <xsl:when test=". = 'nosave'">
			<xsl:value-of select="i18n:include('nosave-problem')"/>
		      </xsl:when>
		      <xsl:otherwise>
			<xsl:value-of select="i18n:include('unknown-problem')"/>
		      </xsl:otherwise>
		    </xsl:choose>
		    <xsl:text>.</xsl:text>
		  </xsl:for-each>
		</p>
	      </div>
	    </xsl:if>
	    
	    <form method="post" enctype="multipart/form-data" action="/articles/submit">
	      <div class="fields">
		<xsl:apply-templates select="./ct:control"/>
	      </div>
	    </form>
	    

	  </div>
	</div>
	<xsl:call-template name="CreateFooter"/>

      </body>
    </html>
  </xsl:template>

  <xsl:template match="art:article-submission">
    <h3 id="byline">
      <xsl:call-template name="ArticleAuthors"/>
    </h3>

    <xsl:value-of select="@contenturl"/>

    <!-- xsl:call-template name="ArticleContent">
	 <xsl:with-param name="content" select="document(@contenturl)"/>
	 </xsl:call-template -->


  </xsl:template>


</xsl:stylesheet>



( run in 1.028 second using v1.01-cache-2.11-cpan-b16cb0d3907 )