[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: HTML tables to CALS tables conversion help
This is a fragment of an XPath expression > preceding::xhtml:td[count(preceding-sibling::xhtml:td)=count(current()/preced ing-sibling::xhtml:td)+1 and current()/@rowspan] which, starting from a context node C, selects all xhtml::td elements T satisfying the conditions (a) T is before C in document order (b) T is at position N among its like-named sibling elements, where C is at position N+1 among its like-named sibling elements (c) C has an @rowspan attribute Exactly what use this is depends on a deeper understanding of the data model than I possess, but I imagine it's trying to locate cells in the same column as C, but in a previous row of the table. Presumably this XPath fragment appears sufficiently often that the author decided to put it in an XML entity to avoid writing it out in full every time. If they had been using XSLT 2.0 they would almost certainly have defined a function, and have used a function call instead. Michael Kay Saxonica > On 17 Jul 2017, at 08:04, Love Kumar Sharma luvks@xxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Hi Michele > > Need help to understand this > '<!ENTITY preceding_rowspan_td "preceding::xhtml:td[count(preceding-sibling::xhtml:td)=count(current()/prece ding-sibling::xhtml:td)+1 and current()/@rowspan]">' > > what values are in this. > > Thanks > Love Kumar Sharma > > > From: Michele R Combs mrrothen@xxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> > Sent: Friday, July 14, 2017 3:59 PM > To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' > Subject: Re: HTML tables to CALS tables conversion help > > What is it you dont understand? > > Michele > > From: Love Kumar Sharma luvks@xxxxxxx [mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx] > Sent: Friday, July 14, 2017 5:37 AM > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: HTML tables to CALS tables conversion help > > Hi Team > > Hope Everyone are doing well! > > I need your help to understand one of famous XSLT code. > > Note: I have visited here for code. https://trac.cnx.org/wiki/HtmlTables2CalsTables <https://trac.cnx.org/wiki/HtmlTables2CalsTables> > > Thanks > Love Kumar Sharma > +91 9716036188 > > > XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> > EasyUnsubscribe <x-msg://11/-list/1127818> (by email <applewebdata://E53F705D-EA15-49C7-AEFC-9A584E70E344>) > XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> > EasyUnsubscribe <x-msg://11/-list/2575504> (by email <applewebdata://E53F705D-EA15-49C7-AEFC-9A584E70E344>) > XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> > EasyUnsubscribe <-list/293509> (by email <>)
|
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
|