[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How Can I Reference previous XML in Subsequent It
On Apr 18, 2007, at 11:37 AM, Abel Braaksma wrote:
saxon my.xslt my.xml > output.xml Can't do that so easily with PHP. I have some real limitations here. I will probably learn to work around them. I'll look over your suggestions for the new way to write the predicate. Here is what I currently do: <xsl:variable name="mypos_minus_one" select="position()-1"/> <xsl:variable name="prev" select="$search_results[$mypos_minus_one]/ xna:data_evt_weekday/xna:name"/> <xsl:if test="(position() = 1) or (xna:data_evt_weekday/xna:name != $prev)"> Chris Marshall chris at getridofthiswholelongthingybecauseitstoconfusescrapers littlegreenviper dot com http://www.cmarshall.net/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|