[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: extension functions returning temporary trees

Subject: RE: extension functions returning temporary trees
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 15 Dec 2009 21:10:34 -0000
RE:  extension functions returning temporary trees
The way extension functions work is entirely a matter for the processor, but
I would be rather surprised if the call mechanism allowed you to return a
string containing lexical XML, and implicitly parsed that XML and turned it
into a tree of nodes. That conversion needs to be done explicitly by calling
an XML parser, either from the C# before returning from the extension, or
from the XSLT code after returning.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay  

> -----Original Message-----
> From: Brian Newman [mailto:brian.newman@xxxxxxxxxxx] 
> Sent: 15 December 2009 20:04
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  extension functions returning temporary trees
> 
> I'm trying to return the string "<root>test</root>" from a 
> .NET extension written in C# to the Altova XML engine running 
> XSLT 2.0.
> What actually gets returned replaces the "<" with "& l t ;" 
> (without the spaces) and similarly for ">".  This, of course, 
> means that XSLT 2.0 can't implicitly convert the returned 
> value to a temporary tree.
> 
> Has anyone else seen this problem and, if so, how have they fixed it?
> 
> Your help is much appreciated, I've been banging my head 
> against the wall over this for the past several days.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.