Hai All,
Is exclude-result prefixes also applicable to attributes? But the
xlink namespace is populated in the blow example even when we have
used exclude-result-prefixes="xlink" in the <stylesheet>
Here is the example:
input:
<cross-ref refid="aff1">
XSL:
<xsl:template match="cross-ref | cross-refs">
<xsl:element name="xref">
<xsl:attribute name="xlink:href">
<xsl:value-of select="@refid"/>
</xsl:attribute>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
output from XSL:
<xref xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="aff1">
required output:
<xref xlink:href="aff1">
How to eliminate namespace prefix in the output?
Regards,
Ganesh
On Wed, Dec 10, 2008 at 2:36 PM, Michael Kay <mike(_at_)saxonica(_dot_)com>
wrote:
If I use the <cover-body> instead of <xsl:element
name="cover-body"> All the namespace uris are appearing along
with the cover-body tag which i do not want. So I am using
<xsl:element name="cover-body">.
Suggest any way where we can use only <cover-body> and
namespace uris is not getting populated.
That's what exclude-result-prefixes is for.
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--