I can't say for sure, but I do remember hearing that the entity resolver isn't used within the document() function, which would explain your problem.

Regards, Upayavira

Juan Jose Pablos wrote:

Hi there,
I am just wondering if on a transformation say:

<map:transform src="welcome.xslt">

Added this line:
   <xsl:value-of select="document('book-cocoon.xml')"/>


to load this file:


[EMAIL PROTECTED]:~/xml/cocoon-2.1/build/webapp$ more book-cocoon.xml
<?xml version="1.0"?>
<!DOCTYPE book PUBLIC
        "-//APACHE//DTD Cocoon Documentation Book V1.0//EN"
        "book-cocoon-v10.dtd">
<book/>



should resolve that DTD, or this exception is normal:

WARN (2004-04-24) 22:44.04:492 [core.xslt-processor] (/) PoolThread-4/TraxErrorHandler: Error in TraxTransformer: file:/home/cheche/xml/cocoon-2.1/build/webapp/welcome.xslt; Line 7; Column 59;
; SystemID: file:/home/cheche/xml/cocoon-2.1/build/webapp/welcome.xslt; Line#: 7; Column#: 59
javax.xml.transform.TransformerException: No se puede cargar el doc solicitado: /home/cheche/xml/cocoon-2.1/build/webapp/skinconfig-v06.dtd (No such file or directory)




Thank you!


Cheers, Cheche






Reply via email to