xsltproc fails to properly serialize namespaces with special characters
Given this input document
<ex xmlns="example:namespace?with&ampersand"/>
and the following trivial transform
<transform xmlns="http://www.w3.org/1999/XSL/Transform" version="1.0">
<template match="/">
<copy-of select="."/>
</template>
</transform>
xsltproc
gives the following result
<?xml version="1.0"?>
<ex xmlns="example:namespace?with&ersand"/>
(note the unescaped ampersand in the xmlns
attribute).
The same issue exists for <
and >
, but, interestingly, not for '
or "
.
Using libxml 21206, libxslt 10139 and libexslt 821
xsltproc was compiled against libxml 21105, libxslt 10139 and libexslt 821
libxslt 10139 was compiled against libxml 21105
libexslt 821 was compiled against libxml 21105