xsl-list
[Top] [All Lists]

Re: [xsl] XML transformation based on parameters

2009-04-15 18:32:47
Hi all,

I'm facing out a conversion issue: when I try to pass a XML fragment
as input parameter to XSLT,
it returns the following error:

cannot convert from  'java.lang.String' to 'node-set'

If I try to pass it as xml object it fails with the following error:

cannot convert from
'org(_dot_)apache(_dot_)xmlbeans(_dot_)impl(_dot_)store(_dot_)Xobj$DocumentXobj(_at_)f0e06a'
 to
'node-set'

I have seen some suggestions regarding the use of "extension
functions" of processor, I but I didn't understand
what exactely I should do.

Thanks!
emiliano



2009/4/15 David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk>:

Because it must be namespace agnostic! Is there an other way
to ignore namespace prefix?

others have suggested ways of doing this, but the real answer is not to
be agnostic. The whole point of namespaces is to uniquely distinguish
elements that are in different namespaces.

There are always exceptions but a working assumption would be that your
input design would be better if the param element were always in the
same namespace (or no namespace). If you have param elements in
different namespaces which must be treated identically, why are they in
different namespaces?

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--