I am using on premise AEM service pack 12 with FMDITA 4.1.
I am trying to add word and pdf documents as attachments to dita xml using cross reference. But after generating AEM SITE from dita , the path to the documents is not getting resolved and causes broken link.
Following are the screenshots:
How can this issue be resolved any idea?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
@ravir73578276 : If you need references to non-dita assets to work as link to assets when rendering them on AEM Site page, you need to do following:
[A]: authored xref with format attribute
<xref href="GUID-8e29cf2b-fa8c-4c5e-8f8f-a6c54491d33f.docx" format="docx" scope="local"> </xref>
[B]: snippet for elementmapping.xml to enable links to non-dita assets to work on AEM Sites
<ditaelement>
<name>xref</name>
<class>- topic/xref</class>
<componentpath>fmdita/components/dita/link</componentpath>
<type>COMPOSITE</type>
<target>para</target>
<textprop>text</textprop>
<xpath><![CDATA[//xref[@format='docx']]]></xpath>
<attributemap>
<attribute from="href" to="link" ispath="true" rel="SOURCE" />
<attribute from="format" to="format" />
<attribute from="scope" to="scope" />
</attributemap>
</ditaelement>
@ravir73578276 : If you need references to non-dita assets to work as link to assets when rendering them on AEM Site page, you need to do following:
[A]: authored xref with format attribute
<xref href="GUID-8e29cf2b-fa8c-4c5e-8f8f-a6c54491d33f.docx" format="docx" scope="local"> </xref>
[B]: snippet for elementmapping.xml to enable links to non-dita assets to work on AEM Sites
<ditaelement>
<name>xref</name>
<class>- topic/xref</class>
<componentpath>fmdita/components/dita/link</componentpath>
<type>COMPOSITE</type>
<target>para</target>
<textprop>text</textprop>
<xpath><![CDATA[//xref[@format='docx']]]></xpath>
<attributemap>
<attribute from="href" to="link" ispath="true" rel="SOURCE" />
<attribute from="format" to="format" />
<attribute from="scope" to="scope" />
</attributemap>
</ditaelement>
Views
Likes
Replies