From b9f65e69a457a103e0b5fe2039f03816002f2b40 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Tue, 23 Sep 2008 19:29:01 +0000 Subject: [PATCH] Rewrite the id code to convert the characters of parts of the id at the time of generating the id. This means that characters are translated to underscores for ids as well as for filenames, since in the eventual documents they have to be percent encoded this is probably an approvement. It also lets us deal with the translation more intelligently and truncate long identifiers. [SVN r48927] --- xsl/annotation.xsl | 24 ++---------- xsl/chunk-common.xsl | 2 +- xsl/docbook.xsl | 2 +- xsl/lookup.xsl | 87 ++++++++++++++++++++++++++++++++------------ 4 files changed, 68 insertions(+), 47 deletions(-) diff --git a/xsl/annotation.xsl b/xsl/annotation.xsl index 92cbed8..16e7620 100644 --- a/xsl/annotation.xsl +++ b/xsl/annotation.xsl @@ -20,27 +20,9 @@ - - - - - - - - - - - - - - _ - - - + + + diff --git a/xsl/chunk-common.xsl b/xsl/chunk-common.xsl index a500766..2747b8b 100644 --- a/xsl/chunk-common.xsl +++ b/xsl/chunk-common.xsl @@ -28,7 +28,7 @@ - + diff --git a/xsl/docbook.xsl b/xsl/docbook.xsl index e5a4d68..023782f 100644 --- a/xsl/docbook.xsl +++ b/xsl/docbook.xsl @@ -152,7 +152,7 @@ header. - + diff --git a/xsl/lookup.xsl b/xsl/lookup.xsl index 95505a8..5a4a34c 100644 --- a/xsl/lookup.xsl +++ b/xsl/lookup.xsl @@ -9,7 +9,10 @@ - 26 + + 26 @@ -125,42 +128,31 @@ - - - - - - - - _ - - + + + + - - - - + - + - + - + @@ -173,22 +165,69 @@ - + + + - - + + + + + . + :: + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +