Register  Login       Search  
Forum  
 
  
 
Forum  Forum     
 
SearchForum Home
  XML Lab Products  nxslt  How to bind Ext...
 How to bind Extension Object to a namespace URI?
 
eeidfn
4 posts
Joined
10/11/2006

How to bind Extension Object to a namespace URI?
Posted: 16 Nov 06 2:52 PM (United States)

I type the following command:
nxslt2.exe MyXml.xml stylesheet.xsl -o output.xml -ext ClassLibrary1.MyClass -af ClassLibrary1.dll xmlns:ExtHelper="ClassLibrary1.MyClass"

NOTE: ClassLibrary1.dll is found is in the same directory as nxslt2.exe

I get the following error:
An error occurred while instantiating 'ClassLibrary1.MyClass' type: Extension object 'ClassLibrary1.
MyClass' must be bound to a namespace URI.

Where do I need to bind the Extension Object to a namespace URI? and how do I do it?

Thanks,

/Daniel

olegt
85 posts
www.xmllab.net
Joined
2/25/2005

Re: How to bind Extension Object to a namespace URI?
Posted: 17 Nov 06 11:31 AM (Israel)

Take a look at http://www.xmllab.net/Products/nxslt2/tabid/73/Default.aspx?PageContentID=9

You need

nxslt2.exe MyXml.xml stylesheet.xsl -o output.xml -ext ClassLibrary1.MyClass -af ClassLibrary1.dll xmlns="ClassLibrary1.MyClass"

or

nxslt2.exe MyXml.xml stylesheet.xsl -o output.xml -ext ExtHelper:ClassLibrary1.MyClass -af ClassLibrary1.dll xmlns:ExtHelper="ClassLibrary1.MyClass"

Provided that "ClassLibrary1.MyClass" is namespace URI you are using in your stylesheet to call extension functions from :ClassLibrary1.MyClass class.


Oleg Tkachenko, Microsoft MVP for XML, MCPD
http://www.XmlLab.Net | http://blog.tkachenko.com
  XML Lab Products  nxslt  How to bind Ext...
Forum Home  Search