[xsl] document('') returning null in certain environments?

Subject: [xsl] document('') returning null in certain environments?
From: J Ferry <ferr0084@xxxxxxxxx>
Date: Sat, 30 Oct 2010 18:06:35 -0500
Let me start with the high level description of what I'm trying to

But first, I've got a limitation with the system I'm working with that
I can only use a single stylesheet for this particular document.

The document was originally developed as separate stylesheets, a
couple of which are the barcode stylesheets from RenderX.

I naively mashed them together into a single stylesheet and this seems
to work fine in my development environment (I was using OxygenXML now
using Ant) but it does not work when loaded into the target system (a
Java app running on SunOne/Tomcat). I'm not very good at debugging
stylesheets yet (someone needs to build a tool for that...) but I
think I've tracked the problem to the use of document(''). It appears
that the use of document('') in the target system (Tomcat/SunOne)
returns null, which is supposed to be used to select a value from a
character lookup table like this...

value = <xsl:value-of
select="document('')//my:char2value/entry[@char=$char and

The lookup table looks like this...

    <entry char="&#x0020;" subset="A">0</entry>
    <entry char="&#x0020;" subset="B">0</entry>
    <entry char="00" subset="C">0</entry>
    <entry char="!" subset="A">1</entry>
    <entry char="!" subset="B">1</entry>

Is there something I need to do to my runtime (different parser or
something) or is there a way to fix it in my stylesheet? I could put
together a more complete example if necessary but you'd still need the


Current Thread