diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2013-03-14 17:20:12 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-03-14 08:28:55 -0700 |
commit | 03c21b0a92d52fe25c97b9a846294e366a930603 (patch) | |
tree | ad7339b0ff5d2b778b4a1c928e729789aaa35ee0 | |
parent | 9187415124f13156dc5d334ad4360a8b3591b80f (diff) | |
download | subsurface-03c21b0a92d52fe25c97b9a846294e366a930603.tar.gz |
Fix free form text fields on .DLD upload
We need to have CDATA around text fields to support e.g. Cyrillic
alphabet.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | xslt/divelogs-export.xslt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt index 4e9d92d2b..9a69546b0 100644 --- a/xslt/divelogs-export.xslt +++ b/xslt/divelogs-export.xslt @@ -3,7 +3,9 @@ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="commonTemplates.xsl"/> <xsl:strip-space elements="*"/> - <xsl:output method="xml" encoding="iso-8859-1" indent="yes"/> + <xsl:output method="xml" encoding="iso-8859-1" indent="yes" + cdata-section-elements="LOCATION SITE WEATHER WATERVIZIBILITY PARTNER BOATNAME CYLINDERDESCRIPTION LOGNOTES" + /> <xsl:template match="/divelog/dives"> <xsl:apply-templates select="dive"/> |