|
Subject: [xsl] document() and namespaces From: Ruben Inoto <ris2@xxxxxxxxx> Date: Wed, 28 Mar 2001 13:31:03 +0200 |
Hello everybody,
I have a problem when trying to access an xml file with name-spaces
with 'document()' from xsl:
The xml looks like this:
---------------------
<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet type="text/xsl" href="/xsl/articulos.xsl"?>
<xsp:page language="java"
xmlns:xsp="http://www.apache.org/1999/XSP/Core"
xmlns:contador="http://www.e-inteligentia.com">
<tag>
<value>whatever</value>
</tag>
</xsp:page>
------------------------
And a bit of the xsl:
--------------------------------
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsp="http://www.apache.org/1999/XSP/Core">
..........
<xsl:value-of select="document($file)/xsp:page/tag/value"/>
...........
</xsl:stylesheet>
--------------------------------
I get the error 'Can not load requested doc: my_file.xml' using Cocoon.
I have no problems when I don't use the name-space 'xsp', What am I
doing wrong?
Thank you in advance...
/Ruben
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] import value of xml-doc i, Michael Kay | Thread | [xsl] sorting using a precalculated, Stephane Bailliez |
| RE: [xsl] import value of xml-doc i, Michael Kay | Date | Re: [xsl] Removing xmlns attributes, David Carlisle |
| Month |