SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Can't run simple XSLT in 3.0 Alpha

Last post 11-04-2007 8:28 PM by Bee-Rad. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 11-03-2007 4:23 AM

    Can't run simple XSLT in 3.0 Alpha

    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)

  • 11-04-2007 12:10 PM In reply to

    Re: Can't run simple XSLT in 3.0 Alpha

    Should be fixed in 3.0.0.2742. 

  • 11-04-2007 8:28 PM In reply to

    Re: Can't run simple XSLT in 3.0 Alpha

    Thanks for the quick response.  3.0.0.2742 got her going. 

    #D 3.0 looks great so far.  I've successfully compiled some moderately complex sample WPF/XAML apps in 3.0 Alpha.  Keep up the good work!

     

Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.