Passing PI content via a named attribute

If the content of a processing instruction always declares a single string token then you can pass that string to the custom marker handler as the value of a named attribute.

For example, if you map the processing instruction:

<?tldiff start?>

to the %Diff custom marker handler using:

<pimap name="tldiff" custom-marker="Diff" attribute="type" />

the following custom marker will be generated:

<Diff type="start"/>