Error occurred while executing stylesheet 'project/list.xsl'.
System.Xml.Xsl.XsltException: '' cannot be a child of '' element.
at System.Xml.Xsl.NewInstructionAction.Execute(Processor processor, ActionFrame frame)
at System.Xml.Xsl.ActionFrame.Execute(Processor processor)
at System.Xml.Xsl.Processor.Execute()
at System.Xml.Xsl.XslTransform.Transform(IXPathNavigable input, XsltArgumentList args, XmlWriter output)
at NXslt.NXslt.Process()
This is documented in the nxslt documentation.
If you can - just don't use extension-element-prefixes.
<?xml version="1.0"?> <a/>
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" extension-element-prefixes="exsl"> <xsl:import href="aa.xsl"/> </xsl:stylesheet>
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" extension-element-prefixes="exsl"> <xsl:template match="*"> <exsl:document href="b.xml"><b/></exsl:document> </xsl:template> </xsl:stylesheet>
Error occurred while executing stylesheet 'a.xsl'. System.Xml.Xsl.XsltException: '' cannot be a child of '' element. ...