I have XML files with text and I want to format certain words and characters. These could be within several elements, such as l, add and others. So I want to look up for characters like letter e or symbols and change its format. I want to exclude from my search text within abbr element. Thanks.
EDIT: I'm using XSLT 1.0 and I can't upgrade it.
Take this text as an example:
<l n="1" type="latin">Lorem ipsum dolor sit amet, <add type="con" xml:id="add2">consectetur</add> adipiscing elit, <abbr>se</abbr>d do eiusmod tempor incididunt ut labore et dolore magna aliqua</l>
Desired output:
Lorem ipsum dolor sit amet,consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua
XML Header
<?xml version="1.0" encoding ="UTF-8" standalone ="no" ?>
XSLT Header
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tei="http://www.tei-c.org/ns/1.0"
exclude-result-prefixes="xs tei"
version="1.0">
<xsl:output method="html" encoding="UTF-8" indent="yes"/>
xsl:analyze-string
. – Martin Honnen