Hi, This is a very basic XSLT question. I've been using XSLT for years and never came across this. When I have a DTD that requires an attribute:
Code:
<!ENTITY % cluster.attrib
"cluster CDATA #IMPLIED
permission (yes|no) 'yes'
test (no | yes) 'no'"
>
And my input xml does not have these attributes, using the below template, will result with the attributes added to the elements of the resulting file.
Code:
<xsl:template match="*">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
My questions is (using Saxon), how do I turn this off?