cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yves Vindevogel <yves.vindevo...@implements.be>
Subject Re: document() function and catalog
Date Mon, 19 Apr 2004 07:19:28 GMT
I think this is "by design" from XSLT.
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!
>
> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
Met vriendelijke groeten,
Bien à vous,
Kind regards,

Yves Vindevogel
Implements

Mail: yves.vindevogel@implements.be  - 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

First they ignore you.  Then they laugh at you.  Then they fight you.  
Then you win.
Mahatma Ghandi.

Mime
View raw message