Groups | Blog | Home
all groups > dotnet xml > october 2003 >

dotnet xml : problems with inserting html to xslt file.



jernej goricki
10/23/2003 6:57:47 PM
Hi,
I have a string/xml value that has to be inserted to a specific
<xsl:tempalte> tag,
I have a namespace registered so that I can insert new XSL elements.
nsmgr = New XmlNamespaceManager(myXslt.NameTable)

nsmgr.AddNamespace("xsl", "http://www.w3.org/1999/XSL/Transform")


This is the string that has to be inserted to xsl:template tag :

<tr>
<td><xsl:apply-templates select="bla" /></td>
</tr>

If I try the element.insertXml method there is an error saying undeclared
namespace and poiting to the <xsl:apply> tag.

The problem is that I dont know how to create <xsl:apply> tag and wrapp it
with Html tags


markda NO[at]SPAM online.microsoft.com
2/16/2004 11:06:49 PM
Hi ...

It's not clear from the code how you're inserting the XML. Is 'myXslt' an
instance of XmlDocument? Feel free to send a small repro to me (remove
'online.' from my email address).

There is a good article about XML namespaces on MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnexxml/htm
l/xml01212004.asp

Hope this helps!

Mark Davis (MSFT)
The opinions expressed in this message are my own personal views and do not
reflect the official views of Microsoft Corporation.
--------------------
[quoted text, click to view]
AddThis Social Bookmark Button