Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

convert html table to indesign table

Guest
Mar 23, 2016 Mar 23, 2016

Hello

How to convert HTML table into indesign table?

Can anyone give me some ideas please.

Thanks

TOPICS
Scripting
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Mar 23, 2016 Mar 23, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 23, 2016 Mar 23, 2016

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Mar 24, 2016 Mar 24, 2016
LATEST

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:

Capture d’écran 2016-03-24 à 15.54.58.png

FWIW,

Loic

Ozalto | Productivity Oriented - Loïc Aigon

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines