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(_at_)onebox(_dot_)com 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(_at_)onebox(_dot_)com - 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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
---------------------------------------------------------------------------
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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--