xsl-list
[Top] [All Lists]

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

2010-01-19 03:11:44
 

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"/>



The most likely explanation is that sheetSource is a StreamSource with no
systemId set. The systemId determines the base URI of the stylesheet, and
without knowing a base URI, document('') doesn't know where to look.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 


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