Author: twilliams
Date: Sat Nov 26 16:13:56 2005
New Revision: 349158
URL: http://svn.apache.org/viewcvs?rev=349158&view=rev
Log:
Account for more document versions.
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.XDoc/input.xmap
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.XDoc/resources/stylesheets/document-to-xhtml2.xsl
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.XDoc/input.xmap
URL:
http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.XDoc/input.xmap?rev=349158&r1=349157&r2=349158&view=diff
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.XDoc/input.xmap
(original)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.XDoc/input.xmap
Sat Nov 26 16:13:56 2005
@@ -43,6 +43,9 @@
<sourcetype name="changes-v11">
<document-declaration public-id="-//APACHE//DTD Changes V1.1//EN" />
</sourcetype>
+ <sourcetype name="document-v12">
+ <document-declaration public-id="-//APACHE//DTD Documentation
V1.2//EN" />
+ </sourcetype>
<sourcetype name="todo-v12">
<document-declaration public-id="-//APACHE//DTD Todo V1.2//EN" />
</sourcetype>
@@ -52,6 +55,9 @@
<sourcetype name="howto-v12">
<document-declaration public-id="-//APACHE//DTD How-to V1.2//EN" />
</sourcetype>
+ <sourcetype name="document-v13">
+ <document-declaration public-id="-//APACHE//DTD Documentation
V1.3//EN" />
+ </sourcetype>
<sourcetype name="todo-v13">
<document-declaration public-id="-//APACHE//DTD Todo V1.3//EN" />
</sourcetype>
@@ -101,7 +107,15 @@
<!-- FIXME (JJP): This should use the v12 now-->
<map:transform src="{lm:transform.docv10.docv11}" />
</map:when>
-
+ <map:when test="document-v11">
+ <map:transform src="{lm:transform.docv20.xhtml2}" />
+ </map:when>
+ <map:when test="document-v12">
+ <map:transform src="{lm:transform.docv20.xhtml2}" />
+ </map:when>
+ <map:when test="document-v13">
+ <map:transform src="{lm:transform.docv20.xhtml2}" />
+ </map:when>
<map:when test="document-v20a">
<map:transform src="{lm:transform.docv20.xhtml2}" />
</map:when>
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.XDoc/resources/stylesheets/document-to-xhtml2.xsl
URL:
http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.XDoc/resources/stylesheets/document-to-xhtml2.xsl?rev=349158&r1=349157&r2=349158&view=diff
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.XDoc/resources/stylesheets/document-to-xhtml2.xsl
(original)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.XDoc/resources/stylesheets/document-to-xhtml2.xsl
Sat Nov 26 16:13:56 2005
@@ -177,11 +177,17 @@
</a>
</xsl:template>
- <xsl:template match="link">
+ <xsl:template match="link | fork | jump">
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute>
<xsl:attribute name="role"><xsl:value-of select="@role"/></xsl:attribute>
<xsl:attribute name="title"><xsl:value-of
select="@title"/></xsl:attribute>
+ <xsl:if test="local-name() = 'fork'">
+ <xsl:attribute name="target">_blank</xsl:attribute>
+ </xsl:if>
+ <xsl:if test="local-name() = 'jump'">
+ <xsl:attribute name="target">_top</xsl:attribute>
+ </xsl:if>
<xsl:value-of select="."/>
</xsl:element>
</xsl:template>