Subject: Re: [xsl] identify sections in an xhtml document From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Fri, 11 Feb 2005 13:33:31 +0100 |
Hi,Im thinking in a generic way, with any site. Some ideas I had were eg. calculate total num of nodes, then go through block level nodes (div, table,tr, ol etc) and calculate a ratio between their number of nodes vs. total number of nodes. If the numbers are roughly the same (say > 0.9), don't label, go to the child nodes and apply the same. If they are different, look for collections of of links (eg. count(descendant::html:a) > 5) or size of text nodes etc. Im sure there would be a way to do it for a generic 'standard' site (ie.page that contains a Top link-bar, left/right sidebar, and some text/image content)
regards, -- Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041) Veni, vidi, wiki (http://www.wikipedia.org)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] identify sections in an x, Dean Maslic | Thread | [xsl] Expandeable Tree!, Adam J Knight |
Re: [xsl] Transformation of, Colin Paul Adams | Date | Re: [xsl] Expandeable Tree!, António Mota |
Month |