RE: [xsl] Finding and processing index terms

Subject: RE: [xsl] Finding and processing index terms
From: Dan Vint <dvint@xxxxxxxxx>
Date: Wed, 15 Feb 2006 07:36:18 -0800
I'm replying to this just in case someone else reads it and stops their help. My template looks for indexterms, div* and table tags, these all appear in the sample stream. The stream and various XPaths were tested in Stylus studio, the only thing that is missing is the DTD to provide the defaults to the attributes.

..dan

At 07:19 AM 2/15/2006, cknell@xxxxxxxxxx wrote:
Your data xml snippet contains no elements that match any of your various XPath expressions. What did you hope to see as a result?
--
Charles Knell
cknell@xxxxxxxxxx - email




<doc>
<div1><head>Chapter 1</head>
<div2 membersOnly="Yes" statusCR="Yes">

here ^^^^^


<indexterm

here ^^^^^


primaryDesc="Yes"><primary>AboveGroundIndicator
type</primary><secondary>definition MEMBERS
INDEX</secondary>
</indexterm>
<indexterm><primary>base

here ^^^^^


types</primary><secondary>AboveGroundIndicator type MEMBERS
INDEX</secondary>
</indexterm>
<head id="bAboveGroundIndicator">
<baseclass>AboveGroundIndicator</baseclass>
 </head>

<table border="1" id="oTable" membersOnly="Yes" statusCR="Yes"

here ^^^^^



<xsl:template name="processIndexTerms">
        <saxon:group

select="//indexterm[ancestor::*[(starts-with(local-name(),'div') or local-name()='table')
and @publicOnly!='Yes']]"
group-by="normalize-space(primary)">


                .. other stuff here ...
        </saxon:group>
</xsl:template>


Template is called by name



Any ideas?

.dan
---------------------------------------------------------------------------
Danny Vint

Specializing in Panoramic Images of California and the West
http://www.dvint.com

voice: 510-522-4703

When H.H. Bennett was asked why he preferred to be out
shooting landscapes rather than spending time in his portrait studio:

"It is easier to pose nature and less trouble to please."

http://www.portalwisconsin.org/bennett_feature.cfm


--------------------------------------------------------------------------- Danny Vint

Specializing in Panoramic Images of California and the West
http://www.dvint.com

voice: 510-522-4703

When H.H. Bennett was asked why he preferred to be out
shooting landscapes rather than spending time in his portrait studio:

"It is easier to pose nature and less trouble to please."

http://www.portalwisconsin.org/bennett_feature.cfm

Current Thread