[xsl] Preserving space

Subject: [xsl] Preserving space
From: "Mathieu Malaterre" <mathieu.malaterre@xxxxxxxxx>
Date: Wed, 13 Feb 2008 10:56:16 +0100
Hi there,

  The following code is loosing the space when calling the 'document'
function. The weirdest part is that I do not even get an error...

xml:
  <file>toshiba/MIIXR00010EAB (V3.10).xml</file>

xsl:
  <xsl:template match="file">
    <xsl:apply-templates select="document(.)"/>
  </xsl:template>

What do I need to do to:
1. Preserve the space
2. Make sure an error is raised if a document cannot be found.

Ref: Debian/Linux + xsltproc

$ xsltproc --version
Using libxml 20627, libxslt 10119 and libexslt 813
xsltproc was compiled against libxml 20627, libxslt 10119 and libexslt 813
libxslt 10119 was compiled against libxml 20627
libexslt 813 was compiled against libxml 20627


Thanks
-- 
Mathieu

Current Thread