You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Corinna Kinchin <cr...@datazone.com> on 2002/04/11 19:35:41 UTC

Help! Extension functions ...

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??
(haven't quite got a grip on the terminology yet).

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 your feedback.

Thanks!

Yours flummoxedley,


Corinna ...

 Corinna Kinchin            email: crin@datazone.com
 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