How to transmit an attribute value from a topicref to a topic attribute
Posted: Sun Aug 28, 2022 8:16 pm
Hello!
I have topicrefs in a ditamap using outputclass with specific values.
I'm trying to retrieve the value of the outputclass attribute and copy them within the referenced topics.
Example with a chunked topic:
So my question is to determine from which xslt template I should look at to retrieve the value of the outputclass in the map and copy it in the topics?
I have topicrefs in a ditamap using outputclass with specific values.
I'm trying to retrieve the value of the outputclass attribute and copy them within the referenced topics.
Example with a chunked topic:
Code: Select all
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<meta name="copyright" content="(C) Copyright 2022">
<meta name="DC.rights.owner" content="(C) Copyright 2022">
<meta name="DC.type" content="topic">
<meta name="DC.format" content="HTML5">
<meta name="DC.identifier" content="t-1">
<link rel="stylesheet" type="text/css" href="commonltr.css">
<title>1</title>
</head>
<body>
<main role="main">
<article role="article" aria-labelledby="ariaid-title1">
<article class="nested0" aria-labelledby="ariaid-title1" CUSTOM-ATTRIBUTE="HERE IS THE VALUE PROVIDEDwithin an OUTPUTCLASS from the map " id="t-1">
<h1 class="title topictitle1 h1" id="ariaid-title1">1</h1>
<div class="body">
<p class="p"></p>
</div>
<article class="topic nested1" aria-labelledby="ariaid-title2" CUSTOM-ATTRIBUTE="HERE IS THE VALUE PROVIDEDwithin an OUTPUTCLASS from the map " id="t-2">
<h2 class="title topictitle2 h2" id="ariaid-title2">2</h2>
<div class="body">
<p class="p"></p>
</div>
</article></article></main></body></html>