diff --git a/build.xml b/build.xml
index 539f898..c703083 100644
--- a/build.xml
+++ b/build.xml
@@ -10,7 +10,7 @@ See the accompanying LICENSE file for applicable license.
+ preprocess2">
@@ -40,7 +40,7 @@ See the accompanying LICENSE file for applicable license.
-
+
@@ -49,7 +49,7 @@ See the accompanying LICENSE file for applicable license.
-
+
diff --git a/plugin.xml b/plugin.xml
index 152c2b5..74dc09a 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -6,7 +6,7 @@ Copyright 2015 Jarno Elovirta
See the accompanying LICENSE file for applicable license.
-->
-
+
yes
diff --git a/xsl/normalize.xsl b/xsl/normalize.xsl
index c316f6e..656b9db 100644
--- a/xsl/normalize.xsl
+++ b/xsl/normalize.xsl
@@ -7,38 +7,39 @@ Copyright 2015 Jarno Elovirta
See the accompanying LICENSE file for applicable license.
-->
-
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/"
+ xmlns:dita-ot="http://dita-ot.sourceforge.net/ns/201007/dita-ot"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ exclude-result-prefixes="xs ditaarch dita-ot xsi"
+ version="2.0">
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -64,24 +65,27 @@ See the accompanying LICENSE file for applicable license.
+ if (position() eq 1)
+ then '.$1'
+ else concat('-', position() - 1, '.$1'))"/>
-
+
-
+
-
+
-
+
+
+
+
@@ -93,8 +97,8 @@ See the accompanying LICENSE file for applicable license.
+ doctype-public="{dita-ot:get-doctype-public(.)}"
+ doctype-system="{dita-ot:get-doctype-system(.)}">
@@ -104,7 +108,7 @@ See the accompanying LICENSE file for applicable license.
-
+
@@ -125,7 +129,7 @@ See the accompanying LICENSE file for applicable license.
-
+
@@ -138,27 +142,27 @@ See the accompanying LICENSE file for applicable license.
-
+
-
+ priority="10"/>
+
-
+ processing-instruction('workdir-uri') |
+ processing-instruction('path2project') |
+ processing-instruction('path2project-uri') |
+ processing-instruction('path2rootmap-uri') |
+ processing-instruction('ditaot') |
+ processing-instruction('doctype-public') |
+ processing-instruction('doctype-system') |
+ @dita-ot:* |
+ @mapclass"
+ priority="10"/>
+
-
+
-
+
-
+ [exists(@keys) and @processing-role = 'resource-only']
+ [$normalize-strip-keyref = 'true']"/>
+
-
+ @keys[$normalize-strip-keyref = 'true']"/>
+
-
+ [$normalize-strip-branch-filter = 'true']"/>
+
+ contains(@class, ' topic/link ') or
+ (contains(@class, ' topic/keyword') and exists(@href)) or
+ contains(@class, ' map/topicref ')]
+ [empty(@format) or @format = 'dita']
+ [empty(@scope) or @scope = 'local']/@href">
@@ -196,8 +200,8 @@ See the accompanying LICENSE file for applicable license.
@@ -205,7 +209,7 @@ See the accompanying LICENSE file for applicable license.
-
+
@@ -214,15 +218,15 @@ See the accompanying LICENSE file for applicable license.
-
+
-
+ @scope[. = 'local'] |
+ @format[. = 'dita'] |
+ *[contains(@class, ' topic/xref ')]/@locktitle"/>
+
-
+
@@ -230,16 +234,19 @@ See the accompanying LICENSE file for applicable license.
+
+
+
-
+
-
+