Changeset 4375


Ignore:
Timestamp:
01/29/14 10:03:28 (10 years ago)
Author:
andmor
Message:

Fixed sloot.xquery problem escaping text nodes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cats/shared/urn.org.isocat.sloot/trunk/tools/xquery.dpml

    r3719 r4375  
    9696                                        <!-- turn a text node into an escaped XML string -->
    9797                                        <xsl:template match="text()">
    98                                                 <xsl:value-of
    99                                                         select="replace(replace(replace(replace(replace(.,'&amp;','&amp;amp;'),''&apos;','&amp;apos;'),'&lt;','&amp;lt;'),'&gt;','&amp;gt;'),'&quot;','&amp;quot;')"
    100                                                 />
     98                                                <xsl:value-of select="normalize-space(.)"/>
    10199                                        </xsl:template>
    102100                                </xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.