471,050 Members | 1,156 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,050 software developers and data experts.

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



Aug 28 '06 #1
0 1436

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 Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.