Re: [xsl] Preserving Graphic Entities

Subject: Re: [xsl] Preserving Graphic Entities
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 13 Jul 2022 20:26:58 -0000
On 13.07.2022 22:15, rick@xxxxxxxxxxxxxx wrote:
>
>
> I am sorry if this is an old question, but when I export to XML, I am
> getting graphic entities. I need to preserve these when I transform
> the file with XSLT 3. Is there a built-in way to do this or some kind
> of realistic hack? Below is a sample before transformation. Thank you
> very much.
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!DOCTYPE Document SYSTEM
>
"file:///C:/Users/rick/AppData/Roaming/Adobe/FrameMaker/16/Orion-graphics/Gra
phics.dtd"
> [
>
> <!NOTATION jpegB B B  PUBLIC "">
>
> <!ENTITY abc123 SYSTEM "3753.jpeg" NDATA jpeg>
>
> <!ENTITY SingleImportedImage1 SYSTEM "11721.jpeg" NDATA jpeg>
>
> ]>
>
> <Document>
>
> B B B  <Paragraph>Sample for testing graphics export to XML.</Paragraph>
>
> B B B  <Paragraph>Single imported image:</Paragraph>
>
> B B B  <Graphic boardno="abc123" reprowid="2.567in" reprodep="3.367in"/>
>
> B B B  <Paragraph>Single imported image:</Paragraph>
>
> B B B <Graphic boardno="SingleImportedImage1" reprowid="2.567in"
> reprodep="3.367in"/>
>
> </Document>
>
That is the input, I suppose. What should be the output?

Which processor, Saxon PE or EE?
https://www.saxonica.com/html/documentation11/functions/saxon/unparsed-entiti
es.html,
https://www.saxonica.com/html/documentation11/extensions/instructions/doctype
.html

Current Thread