nicolaken    02/03/18 11:24:45

  Added:       src/webapp/search/stylesheets dynamic-page2html.xsl
  Log:
  Partial commit of new samples structure.
  Samples go in samples/ dir with theit own sitemap.
  All scratchpad samples that are in the samples/ subdir are copied in webapp samples 
automatically by installscratchpadwar target.
  cocoon.xconf is moved in WEB-INF for security reasons.
  Added new "gump" target to build; it calls docs, javadocs, test and package.
  
  Revision  Changes    Path
  1.1                  xml-cocoon2/src/webapp/search/stylesheets/dynamic-page2html.xsl
  
  Index: dynamic-page2html.xsl
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  
  <xsl:stylesheet
    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
    xmlns:xsp-request="http://apache.org/xsp/request/2.0";
  >
  
    <xsl:include href="page/simple-page2html.xsl"/>
  
    <xsl:template match="xsp-request:uri">
      <b><xsl:value-of select="."/></b>
    </xsl:template>
  
    <xsl:template match="xsp-request:parameter">
      <i><xsl:value-of select="@name"/></i>:<b><xsl:value-of select="."/></b>
    </xsl:template>
  
    <xsl:template match="xsp-request:parameter-values">
      <p>Parameter Values for "<xsl:value-of select="@name"/>":</p>
  
      <ul>
        <xsl:for-each select="xsp-request:value">
          <li>
          <xsl:value-of select="."/>
        </li>
        </xsl:for-each>
      </ul>
    </xsl:template>
  
    <xsl:template match="xsp-request:parameter-names">
      <p>All Parameter Names:</p>
  
      <ul>
        <xsl:for-each select="xsp-request:name">
          <li>
          <xsl:value-of select="."/>
        </li>
        </xsl:for-each>
      </ul>
    </xsl:template>
  
    <xsl:template match="xsp-request:headers">
      <p>Headers:</p>
      
      <ul>
        <xsl:for-each select="xsp-request:header">
        <li>
            <i><xsl:value-of select="@name"/></i>:
            <b><xsl:value-of select="."/></b>
        </li>
        </xsl:for-each>
      </ul>
      <br/>
    </xsl:template>
  
    <xsl:template match="xsp-request:header">
      <i><xsl:value-of select="@name"/></i>:<b><xsl:value-of select="."/></b>
    </xsl:template>
  
    <xsl:template match="xsp-request:header-names">
      <p>All Header names:</p>
  
      <ul>
        <xsl:for-each select="xsp-request:name">
          <li>
          <xsl:value-of select="."/>
        </li>
        </xsl:for-each>
      </ul>
    </xsl:template>
  
    <xsl:template match="@*|node()" priority="-1">
     <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>
     </xsl:copy>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to