[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: multiple files to single file problem
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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|