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:template match="/*[contains(@class,' eclipsemap/plugin ')][*[(contains(@class,'
|
---|
11 | eclipsemap/primarytocref ') or contains(@class,' eclipsemap/tocref ')) and @format='ditamap']]">
|
---|
12 | <mapcollection>
|
---|
13 | <xsl:for-each select="*[contains(@class,' eclipsemap/primarytocref ') or contains(@class,' eclipsemap/tocref ')]">
|
---|
14 | <xsl:if test="@format='ditamap' and not(@linking='none')">
|
---|
15 | <xsl:apply-templates select="document(@href,/)/*[contains(@class, ' map/map ')]/*">
|
---|
16 | <xsl:with-param name="pathFromMaplist">
|
---|
17 | <xsl:call-template name="getRelativePath"><xsl:with-param name="filename" select="@href"/></xsl:call-template>
|
---|
18 | </xsl:with-param>
|
---|
19 | </xsl:apply-templates>
|
---|
20 | </xsl:if>
|
---|
21 | </xsl:for-each>
|
---|
22 | </mapcollection>
|
---|
23 | </xsl:template>
|
---|
24 |
|
---|
25 | </xsl:stylesheet>
|
---|