View | Details | Raw Unified | Return to bug 53653
Collapse All | Expand All

(-)webapps/docs/config/context.xml (-6 / +13 lines)
Lines 1339-1356 Link Here
1339
                classes/
1339
                classes/
1340
</source>
1340
</source>
1341
    <p>The configuration is:</p>
1341
    <p>The configuration is:</p>
1342
<source>
1342
1343
<source wrapped="true">
1343
&lt;Context path="/mywebapp" docBase="/Users/theuser/mywebapp/src/main/webapp" >
1344
&lt;Context path="/mywebapp" docBase="/Users/theuser/mywebapp/src/main/webapp" >
1345
<indent>
1344
  &lt;Resources className="org.apache.naming.resources.VirtualDirContext"
1346
  &lt;Resources className="org.apache.naming.resources.VirtualDirContext"
1345
    extraResourcePaths=
1347
    <indent><outdent>extraResourcePaths="/WEB-INF/classes=/Users/theuser/mywebapp/target/classes,/pictures=/Users/theuser/mypictures,/movies=/Users/theuser/mymovies"</outdent></indent>
1346
    "/WEB-INF/classes=/Users/theuser/mywebapp/target/classes,/pictures=/Users/theuser/mypictures,/movies=/Users/theuser/mymovies" />
1348
    <indent>/></indent>
1349
</indent>
1350
<indent>
1347
  &lt;Loader className="org.apache.catalina.loader.VirtualWebappLoader"
1351
  &lt;Loader className="org.apache.catalina.loader.VirtualWebappLoader"
1348
    virtualClasspath="/Users/theuser/mywebapp/target/classes;
1352
    <indent><outdent>virtualClasspath="/Users/theuser/mywebapp/target/classes;/Users/theuser/mylib/target/classes;/Users/theuser/.m2/repository/log4j/log4j/1.2.15/log4j-1.2.15.jar"</outdent></indent>
1349
      /Users/theuser/mylib/target/classes;
1353
    <indent>/></indent>
1350
      /Users/theuser/.m2/repository/log4j/log4j/1.2.15/log4j-1.2.15.jar" />
1354
</indent>
1355
<indent>
1351
  &lt;JarScanner scanAllDirectories="true" />
1356
  &lt;JarScanner scanAllDirectories="true" />
1357
</indent>
1352
&lt;/Context>
1358
&lt;/Context>
1353
</source>
1359
</source>
1360
1354
    <p>Note that resources in mylib/target/classes/META-INF/resources/ are mapped to / as
1361
    <p>Note that resources in mylib/target/classes/META-INF/resources/ are mapped to / as
1355
    required by servlet 3 specification.</p>
1362
    required by servlet 3 specification.</p>
1356
  </subsection>
1363
  </subsection>
(-)webapps/docs/tomcat-docs.xsl (+30 lines)
Lines 87-92 Link Here
87
            code {background-color:rgb(224,255,255);padding:0 0.1em;}
87
            code {background-color:rgb(224,255,255);padding:0 0.1em;}
88
            code.attributeName, code.propertyName {background-color:transparent;}
88
            code.attributeName, code.propertyName {background-color:transparent;}
89
        </style>
89
        </style>
90
        <style type="text/css">
91
            .wrapped-source code { display: block; background-color: transparent; }
92
            .wrapped-source div { margin: 0 0 0 1.25em; }
93
            .wrapped-source p { margin: 0 0 0 1.25em; text-indent: -1.25em; }
94
        </style>
90
    </head>
95
    </head>
91
96
92
    <body bgcolor="{$body-bg}" text="{$body-fg}" link="{$body-link}"
97
    <body bgcolor="{$body-bg}" text="{$body-fg}" link="{$body-link}"
Lines 326-334 Link Here
326
          <td bgcolor="{$source-color}" width="1">
331
          <td bgcolor="{$source-color}" width="1">
327
            <img src="{$void}" alt="" width="1" height="1" vspace="0" hspace="0" border="0"/>
332
            <img src="{$void}" alt="" width="1" height="1" vspace="0" hspace="0" border="0"/>
328
          </td>
333
          </td>
334
    <xsl:choose>
335
      <xsl:when test="@wrapped='true'">
336
          <td bgcolor="#ffffff" height="1">
337
            <div class="wrapped-source">
338
            <code>
339
              <xsl:apply-templates />
340
            </code>
341
            </div>
342
          </td>
343
      </xsl:when>
344
      <xsl:otherwise>
329
          <td bgcolor="#ffffff" height="1"><pre>
345
          <td bgcolor="#ffffff" height="1"><pre>
330
            <xsl:value-of select="."/>
346
            <xsl:value-of select="."/>
331
          </pre></td>
347
          </pre></td>
348
      </xsl:otherwise>
349
    </xsl:choose>
332
          <td bgcolor="{$source-color}" width="1">
350
          <td bgcolor="{$source-color}" width="1">
333
            <img src="{$void}" alt="" width="1" height="1" vspace="0" hspace="0" border="0"/>
351
            <img src="{$void}" alt="" width="1" height="1" vspace="0" hspace="0" border="0"/>
334
          </td>
352
          </td>
Lines 349-354 Link Here
349
  </xsl:template>
367
  </xsl:template>
350
368
351
369
370
  <!-- Process a wrapped source code example - indent -->
371
  <xsl:template match="source//indent">
372
    <div><xsl:apply-templates /></div>
373
  </xsl:template>
374
375
376
  <!-- Process a wrapped source code example - outdent -->
377
  <xsl:template match="source//outdent">
378
    <p><xsl:apply-templates /></p>
379
  </xsl:template>
380
381
352
  <!-- Process an attributes list with nested attribute elements -->
382
  <!-- Process an attributes list with nested attribute elements -->
353
  <xsl:template match="attributes">
383
  <xsl:template match="attributes">
354
    <table border="1" cellpadding="5">
384
    <table border="1" cellpadding="5">

Return to bug 53653