xsl-list
[Top] [All Lists]

[xsl] XSLT for ditaval filtering

2022-02-01 12:16:53
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

 
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>