xsl-list
[Top] [All Lists]

[xsl] Avoid xmlns (namespace)

2009-01-24 05:12:43
Hi List,
I want to avoid xmlns="http://www.w3.org/1999/xhtml"; as an attribute of element "item" (<itemref xmlns="http://www.w3.org/1999/xhtml"; idref="ch1" linear="yes"/>) from the output xml even after my exclusion entry in the top (#default). If I remove xmlns from xsl:stylesheet, I am getting xmlns="".

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; xmlns="http://www.w3.org/1999/xhtml";
              exclude-result-prefixes="#default xsl" version="2.0">

<xsl:variable name="metafile" select="document('meta.txt')"/>

<xsl:for-each select="$metafile/items/file">
<xsl:apply-templates select="." mode="manifest"/>
 </xsl:for-each>

<xsl:template match="file" mode="manifest">
 <item id="{title/@id}" href="{(_at_)id}" media-type="application/xhtml+xml"/>
</xsl:template>

Any tip in this direction will be highly appriciable!!!

Thanks
...JSR



--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>