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

xpath (comparing?)

Subject: xpath (comparing?)
From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx>
Date: Wed, 29 Sep 2004 07:52:36 -0400
xpath comparing
I've reworked my code to make what I'm doing easier, by creating two new virtual elements in the temporary tree: mods:refclass and mods:reftype.

However, I'm still stuck on the last part of putting it all together into a proper xpath (2.0) expression.

So I need to modify the below based on this logic:

- if the mods:reftype=some value, and that value has an equivalent style definition (cs:reftype/@name='some value'), then use it
- if not, then default to "article" (which is required)


<xsl:when test="mods:refclass='part-inSerial'">
<xsl:apply-templates select="$style-biblio/(for $t in $refclass-partInSerial
return cs:reftype[not(@inherit-from)][@name=$t])[1]/(cs:* except cs:creator)">
<xsl:with-param name="source" select="."/>
</xsl:apply-templates>
</xsl:when>


So at it's most basic: if mods:reftype='legal case' and cs:reftype/@name='legal case' exists, use it, etc. What is my <xsl:when test=".."> statement?

Bruce

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.