Hello,
I want to do the same operation like this tutorial : https://knowledge.safe.com/articles/19918/how-to-expose-feature-attributes-from-kml-tag.html or this topic : https://knowledge.safe.com/questions/29326/how-can-i-extract-the-html-table-from-kml-descript.html
It consits in expose feature attributes from KML tag.
I've done the step with HTMLtoWHTMLconverter and I obtaint this :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
Survey Parameters<br />
<br />
<hr />
<table border="0" padding="10">
<tr>
<td></td>
<td>Planned</td>
<td>Current</td>
<td>Desired</td>
</tr>
<tr>
<td>Scan Frequency eHz]</td>
<td>66</td>
<td>66</td>
<td>66</td>
</tr>
<tr>
... I VOLUNTARY NOT DISPLAY ALL THE LINES
<td>Speed &m/s]</td>
<td>67</td>
<td>62</td>
<td></td>
</tr>
</table><br />
</body>
</html>
Then in XMLXQueryExtractor I adapt the request and I write this :
declare default element namespace "http://www.w3.org/1999/xhtml";
for $x in /body/div/table
for $y in $x/tr
return fme:set-attribute($y/th/text(), $y/td/text())
But in query results I don't have any new attribut, it doen't work...
I think that the solution is a little modification of the query but I don't know how to do , do you have any idea ?
Arnaud