[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSLT for ditaval filtering

Subject: XSLT for ditaval filtering
From: "rick@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 1 Feb 2022 18:16:46 -0000
 XSLT for ditaval filtering
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.