Copy link to clipboard
Copied
Hello
How to convert HTML table into indesign table?
Can anyone give me some ideas please.
Thanks
Copy link to clipboard
Copied
html is basically a markup language so you can think of loading it as a XML object and create a native InDesign table then import data where you need it. Otherwise you can think of importing it while operating a XLST transformation.
FWIW
Copy link to clipboard
Copied
How to load html ?? Unlike xml html does not support any "load" property.
How to read the table element from the html file?
What should i import other than mshtml?
Copy link to clipboard
Copied
html file :
<!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<p>Hello from HTML</p>
</body>
</html>
js:
var f = File ( Folder.desktop+"/hello.html" );
f.open('r');
var x = XML ( f.read() );
f.close();
alert( x.descendants("*:body/*:p" ) )
then:

FWIW,
Loic
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more