Thanks so much for the prompt response ...

... unfortunately cloth-head here forgot to say I'm
using Xalan-C ... but thanks for the pointer,
maybe DOM nodes are the way to go?

Best,

> 
> 
> If you're using Xalan-J, the easiest solution is for your extension to just
> return the Node. Our extension code checks the type of the returned object
> and does Something Appropriate with it, as described in
> http://xml.apache.org/xalan-j/extensions.html#ext-functions under "return
> values". If you return a DOM Node from your extension, Xalan-J will treat
> it as a Node Set automagically.
> 
> I'm not sure what the corresponding answer would be for Xalan-C.
> 
> 
> 

>> Hi all,
>> 
>> I'm trying to write an extension function which
>> creates a new `Dim' element with `Width' and `Height'
>> attributes set to numeric values, and which returns the
>> `Dim' element as a node-set. More generally, I want
>> to return a set of values from an extension function,
>> rather than just a string or number, which is beautifully
>> illustrated in the ExternalFunction example.
>> 
>> Being new to this area, I can't for the life of me 
>> figure out how to do this yet ... I can create
>> a node set but how to add an element (node?) to it??
>> 
>> If anyone has any pointers (eg code snippets which might 
>> give me some ideas, they don't have to be complete or perfect),
>> I'd really appreciate hearing them.
>> 
>> Thanks!
>> 
>> Yours flummoxedley,


Corinna ...

 Corinna Kinchin            email: [EMAIL PROTECTED]
 Datazone Ltd.              Tel:   +44-(0)20-7221 8026
 133 Notting Hill Gate      Fax:   +44-(0)20-7727 6045
 London W11 3LB, England.   URL:   http://www.miramo.com

 Datazone - makers of `Miramo', the automated publishing tool

Reply via email to