Opened an XML doc. Assigned XSLT. Run XSLT. Got Error Message. XML/XSLT work in XML Notepad 2007 (Microsoft download).
Xml:
<?xml version="1.0" encoding="iso-8859-1"?>
<AkzItemList>
<wowitem
name="Relic of the Eye" id="3003" /><wowitem name="Sacred Relic" id="2920" />
<wowitem
name="Blessed Relic" id="2921" /><wowitem name="Recipe: Elixir of Tongues" id="2556" />
<wowitem
name="Recipe: Instant Toxin" id="5657" /></AkzItemList>
XSLT:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Sort WOW item list by name. --><xsl:output method="xml" encoding="iso-8859-1" indent="no" /><xsl:template match="AkzItemList">
<xsl:copy>
<xsl:apply-templates>
<xsl:sort
select="@name" data-type="text"/><xsl:sort select="@id" data-type="number"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
<xsl:template match="wowitem[@name!='']">
<xsl:copy-of
select="."/>
</xsl:template>
</xsl:stylesheet>
Error:
SharpDevelop Version : 3.0.0.2738
.NET Version : 2.0.50727.1378
OS Version : Microsoft Windows NT 5.1.2600 Service Pack 2
Current culture : English (United States) (en-US)
Working Set Memory : 205380kb
GC Heap Memory : 129746kb
Exception thrown:
System.NullReferenceException: Object reference not set to an instance of an object.
at ICSharpCode.XmlEditor.XmlView.DocumentChanged(Object sender, DocumentEventArgs e)
at ICSharpCode.TextEditor.Document.DocumentEventHandler.Invoke(Object sender, DocumentEventArgs e)
at ICSharpCode.TextEditor.Document.DefaultDocument.OnDocumentChanged(DocumentEventArgs e) in c:\Projects\SharpDevelop\src\Libraries\ICSharpCode.TextEditor\Project\Src\Document\DefaultDocument.cs:line 408
at ICSharpCode.TextEditor.Document.DefaultDocument.set_TextContent(String value) in c:\Projects\SharpDevelop\src\Libraries\ICSharpCode.TextEditor\Project\Src\Document\DefaultDocument.cs:line 233
at ICSharpCode.XmlEditor.XmlView.LoadContent(String content)
at ICSharpCode.XmlEditor.XmlView.ShowTransformOutput(String xml)
at ICSharpCode.XmlEditor.XmlView.RunXslTransform(String xsl)