467,903 Members | 1,830 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,903 developers. It's quick & easy.

XSLT inserting unwanted xmlns=""

I've built an XSLT file that transforms data to SpreadsheetML format. The
XSLT uses a <xsl:call-template/to build each worksheet. For some reason,
when I transform the file, it is inserting xmlns="" attributes into my
<Worksheetelements which causes the worksheet not to work with Excel. I'm
using the System.Xml.Xsl.XslTransform class to perform the transform. Here's
a snippet of the XSLT template that is called:

<xsl:template name="CreateWorksheet"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:x="urn:schemas-microsoft-com:office:excel">
<xsl:param name="TitleModifier"/>
<xsl:param name="Participants"/>

<Worksheet ss:name="{$TitleModifier}Members">

and here's the problem that results...

<Worksheet ss:name="ActiveMembers" xmlns="">

Is there a way to tell the transformer not to automatically insert this
empty namespace declaration? My only option that I see right now is to do
some post-processing to strip it out. I'd rather not have to hack it like
that.

Thanks!

Ian

Aug 28 '06 #1
  • viewed: 1305
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Audun RÝe | last post: by
1 post views Thread by Zhenya Sigal via .NET 247 | last post: by
3 posts views Thread by Keith Hill | last post: by
6 posts views Thread by chris yoker via DotNetMonster.com | last post: by
5 posts views Thread by NeilL | last post: by
3 posts views Thread by ano | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.