[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Using document() and namespaces

Subject: Using document() and namespaces
From: Ruben Inoto <ris2@xxxxxxxxx>
Date: Tue, 03 Apr 2001 14:09:16 +0200
xsl edit xml with xsp
 Hi everybody,

 I posted this last week but I had no reply and I still haven't found
the solution, so I'll try again,  (my last attempt, I promise). Any clue
would make me very happy:

 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('my_file.xml')/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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.