Project

Profile

Help

Bug #2702 » pre-process-xml.xsl

Reproduction XSL. Run against itself to test - Alexander Henket, 2016-04-08 09:22

 
<?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:xd="http://www.oxygenxml.com/ns/doc/xsl"
exclude-result-prefixes="xs xd"
version="2.0">
<xsl:output indent="yes"/>
<xsl:variable name="tester" as="element()">
<component xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<value xsi:type="ST">is geïnteresseerd</value>
</component>
</xsl:variable>
<xsl:template match="/">
<xsl:apply-templates select="$tester"/>
</xsl:template>
<xsl:template match="text()[. castable as xs:base64Binary]" as="xs:string">
<xsl:copy/>
</xsl:template>
<xsl:template match="node()">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
    (1-1/1)