Hy I'm trying to edit a XSLT document, just like I'm editing a XML document
:
(Im trying to make a new xsl:template tag here )
Dim myXml As New XmlDocument()
myXml.Load(Server.MapPath("XSLLinks.xslt"))
Dim XmlLinks As XmlElement
Dim XmlNewLink As XmlElement
XmlLinks = myXml.SelectSingleNode("//xsl:stylesheet")
XmlNewLink = myXml.CreateElement("xsl:template")
XmlLinks.AppendChild(XmlNewLink)
myXml.Save(Server.MapPath("XSLLinks.xslt"))
But instead I get this error:
Namespace Manager or XsltContext needed. This query has a prefix, variable,
or user-defined function.
Do I have to edit a xslt document in a different way?
Thanks for your answer!