Mike,

                I totally agree that XPath is the best way to manipulate nodes, but I’m using XSL to create an Oracle scripts that inserts XML into a database, unfortunately CLOBs have a limit of 2000 bytes so I need to split the XML into strings of 2000 bytes and then copy them back in, I’ve found that this would work for getting the node passed from Saxon, and then I can use OuterXml to get the value string value

 

        public static Array SplitXml(XPathContext c,object node) {

 

            if(node is System.Xml.XmlLinkedNode) {

 

Thanks

 

Ryan

-----------------------------------------------

Ryan Puddephatt

FIX Developer

Fidessa LatentZero

1 Alfred Place

London WC1E 7EB

t: +44 (0) 20 7323 6112

b: +44 (0) 79 8539 2458

f: +44 (0) 20 7462 4242

e: rpuddephatt@latentzero.com

w: http://www.latentzero.com

 

From: saxon-help-bounces@lists.sourceforge.net [mailto:saxon-help-bounces@lists.sourceforge.net] On Behalf Of Michael Kay
Sent: 30 April 2008 02:23
To: 'Mailing list for the SAXON XSLT and XQuery processor'
Subject: Re: [saxon] Creating a .Net Extension function

 

I think that in 9.0 the only way you can achieve this is to declare your function to expect instances of the native Saxon node interface, net.sf.saxon.om.NodeInfo.

 

I'm not sure I would recommend this: why is it necessary? Manipulating nodes is generally easier to do in XPath than in .Net languages like C#.

 

Michael Kay

http://www.saxonica.com/

 


From: saxon-help-bounces@lists.sourceforge.net [mailto:saxon-help-bounces@lists.sourceforge.net] On Behalf Of Ryan Puddephatt
Sent: 29 April 2008 19:02
To: saxon-help@lists.sourceforge.net
Subject: [saxon] Creating a .Net Extension function

Hi,

                I’m trying to create an extension function in .Net, I want to pass a nodeset from XSLT into the function a return a sequence of strings, could someone point me in the right direction of the type I should expect Saxon to pass in and what it would expect me to return

 

Thanks

 

Ryan

 

-----------------------------------------------

Ryan Puddephatt

FIX Developer

Fidessa LatentZero

1 Alfred Place

London WC1E 7EB

t: +44 (0) 20 7323 6112

b: +44 (0) 79 8539 2458

f: +44 (0) 20 7462 4242

e: rpuddephatt@latentzero.com

w: http://www.latentzero.com

 


_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com