MPXDOC-118 - add a new tag (escapeXml)
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116292 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6d561780a6
commit
eac7a0f733
@ -381,6 +381,8 @@
|
|||||||
<div class="source"><pre><jsl:applyTemplates /></pre></div>
|
<div class="source"><pre><jsl:applyTemplates /></pre></div>
|
||||||
</jsl:template>
|
</jsl:template>
|
||||||
|
|
||||||
|
<jsl:template match="escapeXml" trim="false"><j:set var="escapedChunk"><jsl:applyTemplates/></j:set>${escapedChunk}</jsl:template>
|
||||||
|
|
||||||
<!-- preserve whitespace in the following elements -->
|
<!-- preserve whitespace in the following elements -->
|
||||||
<jsl:template match="pre | script | style" trim="true">
|
<jsl:template match="pre | script | style" trim="true">
|
||||||
<x:set var="nodename" select="name()"/>
|
<x:set var="nodename" select="name()"/>
|
||||||
|
|||||||
@ -27,6 +27,7 @@
|
|||||||
</properties>
|
</properties>
|
||||||
<body>
|
<body>
|
||||||
<release version="1.9-SNAPSHOT" date="in CVS">
|
<release version="1.9-SNAPSHOT" date="in CVS">
|
||||||
|
<action dev="felipel" type="add" issue="MPXDOC-118">Added new tag <code><escapeXml></code>.</action>
|
||||||
<action dev="epugh" type="add" issue="MPXDOC-124" due-to="Shinobu Kawai">Maven xdoc plugin clean up generated velocity log as part of calling clean.</action>
|
<action dev="epugh" type="add" issue="MPXDOC-124" due-to="Shinobu Kawai">Maven xdoc plugin clean up generated velocity log as part of calling clean.</action>
|
||||||
<action dev="aheritier" type="add" issue="MPXDOC-123">New property (maven.xdoc.xml.copy) to copy only and not transform some xml files provided in the ${maven.docs.src} directory.</action>
|
<action dev="aheritier" type="add" issue="MPXDOC-123">New property (maven.xdoc.xml.copy) to copy only and not transform some xml files provided in the ${maven.docs.src} directory.</action>
|
||||||
<action dev="brett" type="update">Make compatible with Maven 1.1</action>
|
<action dev="brett" type="update">Make compatible with Maven 1.1</action>
|
||||||
|
|||||||
24
xdoc/xdocs/escapeXml.xml
Normal file
24
xdoc/xdocs/escapeXml.xml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<!--
|
||||||
|
* ========================================================================
|
||||||
|
*
|
||||||
|
* Copyright 2004 The Apache Software Foundation.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*
|
||||||
|
* ========================================================================
|
||||||
|
-->
|
||||||
|
|
||||||
|
<example name="escapeXml">
|
||||||
|
<text>This is an example of the escapeXml tag usage.</text>
|
||||||
|
<!-- note that comments are ignored -->
|
||||||
|
</example>
|
||||||
@ -1,4 +1,7 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE document [
|
||||||
|
<!ENTITY escapeXmlExample SYSTEM "file:xdocs/escapeXml.xml">
|
||||||
|
]>
|
||||||
<!--
|
<!--
|
||||||
/*
|
/*
|
||||||
* Copyright 2001-2004 The Apache Software Foundation.
|
* Copyright 2001-2004 The Apache Software Foundation.
|
||||||
@ -79,6 +82,28 @@
|
|||||||
<code>@import</code>. This allows you to easily add and modify
|
<code>@import</code>. This allows you to easily add and modify
|
||||||
the styles that are provided by Maven.
|
the styles that are provided by Maven.
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
If you need to include the contents of another XML document in your document, you can use the
|
||||||
|
<code><escapeXml></code> tag, as demonstrated below. For instance, the code:
|
||||||
|
</p>
|
||||||
|
<source>
|
||||||
|
<![CDATA[
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE document [
|
||||||
|
<!ENTITY escapeXmlExample SYSTEM "file:xdocs/escapeXml.xml">
|
||||||
|
]>
|
||||||
|
<escapeXml>&escapeXmlExample;</escapeXml>
|
||||||
|
]]>
|
||||||
|
</source>
|
||||||
|
<p>
|
||||||
|
Would produce the following output (click <a href="escapeXml.html">here</a> to see the content of <code>escapeXml.xml</code>):
|
||||||
|
</p>
|
||||||
|
<source>
|
||||||
|
|
||||||
|
<escapeXml>&escapeXmlExample;</escapeXml>
|
||||||
|
</source>
|
||||||
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
</body>
|
</body>
|
||||||
</document>
|
</document>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user