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

Re: Testing for value of a preceding "cousin"

Subject: Re: Testing for value of a preceding "cousin"
From: Charles Muller <cmuller-lst@xxxxxxxxxxxxxxx>
Date: Thu, 10 Feb 2011 18:32:56 +0900
Re:  Testing for value of a preceding "cousin"
On 02/10/2011 03:37 PM, Brandon Ibach wrote:

You need to use the ancestor axis to look up the tree, rather than
searching from the root down, which will always return true, as long
as there's a journal title somewhere in the document.  Also, it may
have just been a typo in your example, but you were missing the "@"
before "level".

<xsl:when test="ancestor::monogr[1]/title[@level='j']">...</xsl:when>

Very nice. Much appreciated.



A. Charles Muller

University of Tokyo
Graduate School of Humanities and Sociology, Faculty of Letters
Center for Evolving Humanities
7-3-1 HongE
, BunkyE
Tokyo 113-0033, Japan

Web Site: Resources for East Asian Language and Thought


Mobile Phone: 090-9310-1787

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.