This is some content, here is a paragraph breakPerhaps you I finally dropped trying to make this work with our XML files and DTD, and just created a small XML file using the whitespace-handling PI you gave me, as follows (pretty much just copied and pasted your example): I've gotten nowhere obviously I don't understand what I'm doing, so I'm wondering if you would be able to help me. You want a tab hereSo that this is indented to the next tabstop. This is some content, here is a paragraph break Perhaps Include a tab in the content use the empty tag as in the following To include a paragraph break in the content use the empty tag, to To set whitespacep-handling to this method, use the following processing To get "tabs" and "paragrph breaks" in theĬontent you have to use the and tags. The second method treats newlines and tabs in the content as whitespace, To set whitespace-handling to the default described above, use the following This is the same behavior that InDesign 2.0 used and the default In other words, don't ignore newlinesĪnd tabs. The first methods, the default, is to interpret newlines and tabs paragrpahīreaks and tabs in the content. This is controlled by the "whitespace-handling" processing instruction. Two different methods for handling whitespace, i.e. In InDesign CS there is a processing instruction that gives the users Here's the information I recived from Adobe on this: There is a processing instruction that you can put in your xml file that will prevent white space preservation. S&T Consulting/Microsoft HRXUA Production Lead The files require so much cleanup that it doesn't save any time over styling Plain Text from scratch. I appreciate any help we are serious about developing an XML-to-PDF solution for Print, and InDesign seemed to offer hope, but this has effectively stymied our efforts. Do I need to send the files through a transform to strip whitespace first? Any other ideas? I have tried changing the xml:space attribute in our DTD from preserve to default, with no effect. (Of course, only the first paragraph style takes effect, since the rest of the file runs in to that paragraph.) Then, InDesign will import the entire file as one long paragraph - no paragraph marks at all - even though many of the tags are mapped to various paragraph styles. I have experimented with going into the XML file beforehand and removing all paragraph marks. So, the INDD files are full of empty paragraph marks representing unmapped container tags. That seems to be because it is on a separate line in the XML file. InDesign gives a line feed/paragraph mark, even though this tag is not mapped and should be ignored. (mapped to the InDesign style "Numbered List") (container tag - not mapped in InDesign) So why does InDesign treat an XML file as if it were a formatted document?) Basically InDesign seems to pick up, verbatim, whatever whitespace and linebreaks are found in the XML files. The mapping works well, but the hangup is with whitespace and linebreaks. I am trying to import XML files into InDesign and use tag-to-style mapping.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |