VirtualBox

source: vbox/trunk/src/libs/dita-ot-1.8.5/plugins/org.dita.specialization.eclipsemap/xsl/mapref-plugin.xsl@ 99507

最後變更 在這個檔案從99507是 98584,由 vboxsync 提交於 2 年 前

Docs: bugref:10302. Setting svn properties of DITA-OT library.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.6 KB
 
1<?xml version="1.0"?>
2<!-- This file is part of the DITA Open Toolkit project hosted on
3 Sourceforge.net. See the accompanying license.txt file for
4 applicable licenses.-->
5 <!--
6 | (C) Copyright IBM Corporation 2006. All Rights Reserved.
7 *-->
8<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
9
10 <xsl:param name="TRANSTYPE"/>
11
12 <xsl:template match="*|@*|text()|comment()|processing-instruction()" mode="createPlugin">
13 <xsl:copy>
14 <xsl:apply-templates select="*|@*|text()|comment()|processing-instruction()" mode="createPlugin"/>
15 </xsl:copy>
16 </xsl:template>
17
18 <!-- Should inherit these from map, if they are not specified locally. If local, the local one will
19 copy over these values. -->
20 <xsl:template name="inheritMapAttributesForEclipse">
21 <xsl:copy-of select="../@format|../@linking|../@audience|../@platform|../@product|
22 ../@otherprops|../@importance|../@scope|../@toc|../@print|../@type"/>
23 </xsl:template>
24
25 <xsl:template match="*[contains(@class,' map/topicref ')]" mode="createPlugin">
26 <xsl:copy>
27 <xsl:call-template name="inheritMapAttributesForEclipse"/>
28 <xsl:copy-of select="@*"/>
29 <xsl:apply-templates select="*|text()|comment()|processing-instruction()" mode="createPlugin"/>
30 </xsl:copy>
31 </xsl:template>
32
33 <xsl:template match="*[contains(@class,' eclipsemap/indexExtension ')] |
34 *[contains(@class,' eclipsemap/contentExtension ')] |
35 *[contains(@class,' eclipsemap/contextExtension ')] |
36 *[contains(@class,' eclipsemap/extension ')]">
37 <xsl:copy>
38 <xsl:call-template name="inheritMapAttributesForEclipse"/>
39 <xsl:copy-of select="@*"/>
40 <xsl:apply-templates select="*|text()|comment()|processing-instruction()"/>
41 </xsl:copy>
42 </xsl:template>
43
44 <xsl:template match="*[contains(@class,' eclipsemap/tocref ') or contains(@class,' eclipsemap/primarytocref ')][@href][@format!='ditamap']">
45 <!-- Do not try to process a reference to an XML file or other file -->
46 <xsl:copy>
47 <xsl:call-template name="inheritMapAttributesForEclipse"/>
48 <xsl:copy-of select="@*"/>
49 <xsl:apply-templates select="*|text()|comment()|processing-instruction()"/>
50 </xsl:copy>
51 </xsl:template>
52
53 <xsl:template match="/">
54 <xsl:choose>
55 <xsl:when test="contains($TRANSTYPE,'eclipse') and *[contains(@class,' eclipsemap/plugin ')]">
56 <xsl:apply-templates mode="createPlugin"/>
57 </xsl:when>
58 <xsl:otherwise>
59 <xsl:apply-templates/>
60 </xsl:otherwise>
61 </xsl:choose>
62 </xsl:template>
63</xsl:stylesheet>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette