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

Making a lookup structure from multiple documents

Subject: Making a lookup structure from multiple documents
From: "rick@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 12 Jun 2023 12:17:05 -0000
 Making a lookup structure from multiple documents
Hi All,


I have a ditamap that has references to child topics, and each child topic
may references to other topics. I need to collect the contents of three
particular elements, then then use them in a summary in one of the
documents. Here is my basic shell, where I am navigating through all of the
referenced documents. I also have a template for the items I am trying to
collect (I can combine them into a single template). I am looking for the
best approach for making a lookup of items that can be used later in the
processing. Thank you.




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

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"



    exclude-result-prefixes="xs math"

    version="3.0" expand-text="yes">


    <xsl:output indent="yes"/>


    <xsl:template match="/">




    <xsl:template match="@href[matches(.,'(dita(map)?|xml)$','i')=true()]">

        <xsl:if test="doc-available(.)">


            <xsl:variable name="refdoc" select="doc(.)"/>

            <xsl:apply-templates select="$refdoc/*"/>




    <xsl:template match="tools">

        <xsl:message>{local-name() || ' ' || base-uri(.) || ' ' ||



    <xsl:template match="spares">

        <xsl:message>{local-name() || ' ' || base-uri(.) || ' ' ||



    <xsl:template match="supplies">

        <xsl:message>{local-name() || ' ' || base-uri(.) || ' ' ||



    <xsl:mode on-no-match="shallow-skip"/>



Current Thread


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.
First Name
Last Name
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.