|
Hi,
I have a stylesheet
that evaluates the attached xml. If the xml has the same namespace (with
different prefixs), declared multiple times, within different xml elements, then
Saxon 6.5.3 returns a null Transformer object from this
API:
Transformer xformer
= ((Templates)cachedTemplates).newTransformer( );
This doesn't happen
always, but is quite frequent.
The fix was to
simply remove the redundant namespace declarations in the xml, combining them
into one global declaration.
Before we had:
<q1:tag>... <q2:tag>...
<q3:tag>...
where q1/2/3 all referred to the same
namespace uri.
Changing it to:
<q:tag>
<q:tag>
<q:tag>
fixed the
problem.
Any clue as to why this would cause
a null Transformer object to be returned ?
Thanks, Sonali
MultipleNamespacePrefixes.xml
Description: MultipleNamespacePrefixes.xml
1.xsl
Description: 1.xsl
|