I have an xhtml document that contains many lines that look like:
<div style="position:absolute;top:224;left:108">The line was longer than we expected</div>
For my first trick I need to be able to match or select this node and others like it, where like it means that it is a div tag with a style attribute that starts out saying polition:absolute, so that I can deal with it in some XSLT construct such as a template.
For my second trick, I need to pull out the number that comes after top, in this case 224.
For my third trick, I need to find the two elements that have either the largest value of top or the smallest value of top.
I am allowed to use either XSLT 1 or XSLT 2. However, I would prefer to use the XSLT version.
Can anyone help?