RE: [xsl] about data types

Subject: RE: [xsl] about data types
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 11 Apr 2002 14:01:10 +0100
> i am happy using the extension library and my own Java
> Classes to do some of
> my really complex work. I am how ever not finding a way to
> return the String
> Array from Java to XSL.
>
> I thot of making a temp tree in my java code and return it to
> XSL like an
> XML node..like
> <personList>
> <person>a</person>
> <person>b</person>
> <person>c</person>
> <person>d</person>
> <person>e</person>
> <person>f</person>
> </personList>
> and do the xsl:for-each to get each of them out.
> I am how ever not convinced that i MUST take this step to get
> my desired
> result. is there a way i can get the string array in xsl??

In XPath 2.0 you can return a sequence of strings, but in XPath 1.0, a
sequence of nodes is the closest you can get.

> ps: can some one provide me with a link that gives the
> mapping between the
> XSL data types and the Java DAta TYpes?
>
It depends on the product you are using. The XSLT 1.1 Working Draft
attempted to defined a standard mapping (http://www.w3.org/TR/xslt11) but
it's not necessarily the mapping that's implemented in your chosen XSLT
processor.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread