Hi!
 
 How would I convert by XSLT (saxon 6.5.3) input XML:
 
<?xml version="1.0" encoding="utf-8"?>
<root>
    <picture alias="pic1" link="graphics\md000111.jpg"/>
    <picture alias="pic2" link="graphics\md000222.jpg"/>
</root>
 
into output XML:
 
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE output PUBLIC "-//something" "output.dtd" [
    <!ENTITY pic1 SYSTEM "graphics\md000111.jpg" NDATA jpg>
    <!ENTITY pic2 SYSTEM "graphics\md000222.jpg" NDATA jpg>
]>
<root>
    <picture entityref="pic1"/>
    <picture entityref="pic2"/>
</root>
 
? Is it possible?
 
 Thanks!
 
 Best regards, Tomas