I have some xml documents with unparsed entity declarations for jpeg images. For instance:
<!DOCTYPE TEI.2 SYSTEM 'teilite.dtd'[ <!NOTATION jpg SYSTEM "JPEG"> <!ENTITY filename SYSTEM "filename.jpg" NDATA jpg> <!ENTITY Ba01SpFC SYSTEM "Ba01SpFC.jpg" NDATA jpg> <!ENTITY Ba01SpBC SYSTEM "Ba01SpBC.jpg" NDATA jpg> <!ENTITY Ba01SpSp SYSTEM "Ba01SpSp.jpg" NDATA jpg> <!ENTITY Ba01STOC SYSTEM "Ba01STOC.jpg" NDATA jpg> <!ENTITY Ba01S000 SYSTEM "Ba01S000.jpg" NDATA jpg> <!ENTITY Ba01S002 SYSTEM "Ba01S002.jpg" NDATA jpg> <!ENTITY Ba01S023 SYSTEM "Ba01S023.jpg" NDATA jpg> <!ENTITY Ba01S038 SYSTEM "Ba01S038.jpg" NDATA jpg> <!ENTITY Ba01S050 SYSTEM "Ba01S050.jpg" NDATA jpg> <!ENTITY Ba01S101 SYSTEM "Ba01S101.jpg" NDATA jpg> <!ENTITY Ba01S102 SYSTEM "Ba01S102.jpg" NDATA jpg> <!ENTITY Ba01S130 SYSTEM "Ba01S130.jpg" NDATA jpg> <!ENTITY Ba01S131a SYSTEM "Ba01S131a.jpg" NDATA jpg> <!ENTITY Ba01S131b SYSTEM "Ba01S131b.jpg" NDATA jpg> <!ENTITY Ba01S133 SYSTEM "Ba01S133.jpg" NDATA jpg> ]> The xml document then refers to these entities by name: <figure entity="Ba01S038"> <head>Photo: Robert Cross</head> <figDesc>Black and white photograph</figDesc> </figure> My stylesheet attempts to use the XSL function unparsed-entity-uri() to get the uri of the entity for the @src attribute of an HTML IMG tag, but this doesn't work - it returns empty. I get <img src=""/>. The odd thing is that when I run my stylesheet through Xalan from the command line, it works fine, it's only inside Cocoon that the function doesn't work. I can work around it by assuming that the value of the figure/@entity tag is a filename without extension, but this is a kludge. Can anyway suggest anything? Thanks! Con --- Conal Tuohy [EMAIL PROTECTED] --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>