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

Re: converting Word dictionary to FLEx

Subject: Re: converting Word dictionary to FLEx
From: "Jim Albright jim_albright@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 Sep 2018 02:18:48 -0000
Re:  converting Word dictionary to FLEx
Michael,

I never looked at 3.0 so I will do that now.  This is getting me much closer.
Thanks for the heads up.  I'll post solution when I get it done.

Jim Albright

(1) Firstly, I think you can use following-sibling::html:b rather than
following::html:b, which is a much more contained search.

(2) To stop the search at element X, the best solution in XSLT 3.0 is probably
xsl:iterate

<xsl:iterate select="following-sibling::*">
   ...
   <xsl:if test="self::h:span[@class='Arial']"><xsl:break/></xsl:if>

</xsl:iterate>

xsl:iterate is basically like for-each except the order of processing is
guaranteed and you can therefore break out as soon as a condition is
satisfied; you can also pass data from one iteration to the next via
parameters.

Michael Kay
Saxonica

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.