[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: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx>
Date: Fri, 24 Sep 2004 10:32:48 -0400
applying emacs templates
On Sep 24, 2004, at 9:59 AM, David Carlisle wrote:

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>

So why did it work correctly? Because the value was specified and it didn't need to default?


Anyway, I removed the default select. Thanks.

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

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

Thanks!


I'm a little worried about performance; a small document is now giving me an execution time of 3796 milliseconds. Perhaps this trick can shave off some of that in a few places.

<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>

:-)


I guess that'll need to be configurable. Currently the config language has an attribute to distinguish "and" and "&" like so:

<names and-as="symbol"/>

This is elegant (I think), among other reasons because international-ready. I really didn't want to have to worry about commas there!

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
END OF GUARDED AREA
whatever that means)

Between newsreaders and buggy pasting using emacs on Mac OS X, who knows what happened. The source is utf-8, though.


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.