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

Re: HTML tables to CALS tables conversion help

Subject: Re: HTML tables to CALS tables conversion help
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 17 Jul 2017 11:58:05 -0000
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 <>)

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.