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

Re: applying templates to all but ...

Subject: Re: applying templates to all but ...
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 24 Sep 2004 14:59:20 +0100
octal 227
  So, the ('article-newspaper','article') bit would just be a long list 
  of possible values?

yes in practice you'd want to put the list into a variable or pull it
from a config file or something.

> Except the [1] you put near the end is saying to use the first in the 
> list; right? 

yes or no (depending on what you mean) It doesn't take the first in
_that_ list there would be no point in doing ('article-newspaper','article')[1]
as that's just a long way of writing 'article-newspaper' it takes teh
first element in the sequence of cs:reftype nodes obtained by selecting
the cs:reftypes  with name attribute equal to an item in the list.


 <xsl:when test="$sort-order='first-author' 

here you are testing against the string 'first-author' 

   <xsl:param name="sort-order" select="first-author" />

here you are defaulting the sort order to be the value of teh child
element <first-author>

       <xsl:apply-templates select="mods:namePart[@type='family'] | 

It would be simpler and perhaps a bit more efficient to use

       <xsl:apply-templates select="mods:namePart[@type='family' or not(@type)]"/>

     <xsl:when test="position() = last() - 1"> and </xsl:when>

aren't our American friends going to want

     <xsl:when test="position() = last() - 1">, and </xsl:when>


what encoding is this? Three bytes with octal 227 that's hex 97, in
latin1 that would be a non printing control point (Unicode x97 is
whatever that means)


This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:

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.