Subject: Re: [xsl] multiple files to single file problem From: "Ganesh Babu N" <nbabuganesh@xxxxxxxxx> Date: Fri, 26 Dec 2008 12:28:54 +0530 |
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@xxxxxxxxxxxx> 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/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] multiple files to single , Michael Kay | Thread | Re: [xsl] multiple files to single , G. Ken Holman |
Re: [xsl] HTML character entity iss, Michael Müller-Hille | Date | [xsl] Compare only XML Element betw, Byomokesh Sahoo |
Month |