xsl-list
[Top] [All Lists]

[xsl] Issue with document('') under Xalan-Java

2010-01-19 02:29:27
Dear All,

I am trying to use a lookup embeded in the xslt source according to
the tips on this page:

http://www.ibm.com/developerworks/xml/library/x-xsltip.html


I am creating an XSL transformer like this:

TransformerFactory transformerFactory = TransformerFactory
                .newInstance();
transformerFactory.setAttribute("indent-number", new Integer(2));
Transformer trans = transformerFactory.newTransformer(sheetSource);

And in my document I have something like this:


<xsl:variable name="langs-top" select="document('')/*/l:languagecodes"/>


However I cannot seem to get this to work, it seems that the langs-top
variable is always empty. Even if I do something like this:

<xsl:variable name="langs-top" select="document('')"/>

it seems to be empty. Is it possible to use document('') in Xalan-Java

Or is there something I am not doing correctly?

Thanks a lot,
Regards,

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>