If I'm correct, but please check, you can call the document function with document('http://.../myfile') and with ('cocoon://....')
Then you don't have to hardcode the path
But please check first, not 100% sure.
On 19 Apr 2004, at 08:23, David Leangen wrote:
Hello, fellow Cocoon enthusiasts!Met vriendelijke groeten,
I am trying to use the document() function to "import" some data from an
external XML file.
I.e.: <xsl:value-of select="document('somefile.xml')/somenode"/>
At the same time, I am using the catalog to resolve the DTD. However, I
noticed that when using the document() function, the catalog resolver isn't
used, so I actually have to hard code the location of the DTD directly into
somefile.xml.
I.e.:
<!DOCTYPE somenode PUBLIC "-//Some DTD//EN"
"some/hardcoded/path/somedtd.dtd">
This isn't good...
Am I doing something wrong, or is this by design?
Thanks!
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Bien � vous,
Kind regards,
Yves Vindevogel
Implements
Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91
Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76
Markt 18c - 9700 Oudenaarde - Tel: +32 (55) 30 55 76
Web: http://www.implements.be
<x-tad-smaller>
First they ignore you. Then they laugh at you. Then they fight you. Then you win.
Mahatma Ghandi.</x-tad-smaller>
