xsl-list
[Top] [All Lists]

[xsl] Preserving space

2008-02-13 02:56:44
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

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