[xsl] XSLT for ditaval filtering

Subject: [xsl] XSLT for ditaval filtering
From: "rick@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 1 Feb 2022 18:16:46 -0000
Hi All,

 

I have a ditaval file like this:

 

<?xml version="1.0" encoding="UTF-8"?>

<val>

  <prop action="exclude" att="product" val="Hide_Prod2"/>

</val>

 

I have a ditamap similar to this:

 

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN"
"technicalContent/dtd/map.dtd">

<map id="map.ditamap_8cf6e644-18de-4924-a434-ed2585146470">

  <title>Child Map</title>

  <topicref href="content/Reference-Topic-0.dita" type="reference">

    <topicref href="content/Reference-Topic-4.dita" type="reference"/> 

  </topicref>

  <topicref href="content/Concept-2.dita" type="concept"
product="Hide_Prod2"/> 

</map>

 

I want to use XSLT 3 to filter out content from the map (for example, the
last topicref), based on the ditaval file, which I can pass into the
stylesheet as a parameter. In the DITA Open Toolkit, I think this filtering
is done in Java, but I want to do it with XSLT, if possible. I am working up
some code in Oxygen now, but any suggestions or pointers would be
appreciated. Thank you.

 

Rick Quatro

Current Thread