Ask a Question related to Adobe Indesign Windows, Design and Development.
-
Josh_Carr@adobeforums.com #1
importing XHTML files as XML files
Hello,
I would like to be able to import a well-formed XHTML file (with an XHTML 1.0 Strict or Transitional DTD) into an InDesign document as if it were an XML file. I would then like to apply styles so that the content of (p) tags within (div id="one") will look different from that of (p) tags within (div id="two").
Has anyone tried this? Is it a possibility?
I've tried changing the file extension from HTML to XML and InDesign will allow me to import the file (after some confusion with my DTD). But I am having trouble distinguishing content from one (div) tag to another.
Josh_Carr@adobeforums.com Guest
-
Importing PDF files
I do the page layout for a big magazine and we except all kinds of files. My main problem is that sometimes I get PDF files that have text that is... -
importing ppt files
hi, Can anyone help me with this issue. I have this huge ppt which I need to change into an avi file where I can keep the voice seperately (to... -
importing dxf files
I am using FH MXA 11.0.1 and can not import dxf files. I had no issues when I was using my mac but now that I have been forced to go to the dark... -
Importing dir-files into another!
My problem is that i want to import director files into another! But some simple script like this one i have for enlarge a thumbnail doesn´t work. ... -
pjredman@adobeforums.com #2
Re: importing XHTML files as XML files
Josh,
InDesign's built-in tag-to-style mapping is a simple one-to one conversion process that wouldn't support the scenario you describe above. It's likely you could do this with a script however.
Phil Redman
pjredman@adobeforums.com Guest
-
Josh_Carr@adobeforums.com #3
Re: importing XHTML files as XML files
Phil,
Thanks for the reply. Do you have any suggestions for where I could find information on such a script? Are you speaking of an internal InDesign script/macro OR are you talking about a PHP-like script that will change the tags into something that InDesign can deal with?
Thanks again!
Josh_Carr@adobeforums.com Guest
-
pjredman@adobeforums.com #4
Re: importing XHTML files as XML files
Josh,
I don't know of anyone who's written such a script but it may be possible via InDesign's internal scripting mechanism. All of the XML and style components are open to the scripting interface.
Phil
pjredman@adobeforums.com Guest



Reply With Quote

