The approach you've described is the one we are using in our project and it works pretty well.
Thanks, I'll try this way then. I'm kind of new to all this, so forgive if this is a stupid question. My main concern is this: how do you add, in the XSLT file, the CSS style for each tag, or paragraph style? (I have the CSS from exporting manually the HTML but not sure where to apply it here).
And how do you get from Indesign, via exporting filtered XML and HTML and not an XML. Below my simple XSL with a line <xsl:output method="html"/> trying to export html but no success, still exports as xml. Again, I´m sure am missing something important.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited by XMLSpy® -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<link rel="stylesheet" type="text/css" href="StylePruebacss.css">
myDoc = app.activeDocument;
myDoc.htmlExportPreferences.exportOrder = ExportOrder.ARTICLE_PANEL_ORDER;
1 person found this helpful
I wanted to export only one text frame from my document, so I changed your second line with those two and now I can export my selected story. Not sure if it's the best way but...
var mySelectedFrame = app.selection.parentStory;
mySelectedFrame.exportFile(ExportFormat.HTML, (myFolder.fsName + "XXXXXXXX"));
Thank you so much.