Skip navigation
Currently Being Moderated

importing xml via xsl for rich text formating

Jul 2, 2009 4:27 AM

Hi everyone. I've been looking for days now about a way to export the content of a website as XML and import it then into InDesign, involving some basic text formatting and maybe links, lists and tables. Getting a XML version of a website isn't actually the problem. But including some InDesign readable formatting structure caused me some headache.

First of all, I used InDesign from CS2 and read a lot about INX structure, XML Namespaces and Tagged Text. None of what I did seemed to result in any acceptable or properly working import. So I've read about CS3 having a new feature of applying XSL Stylesheets when importing a XML file and finally downloaded a trial version to test this out. Problem is, I can't find any helpful documentation on how to use this feature right. Neither in the web nor in your forums.

So how does a XSL file have to look like in order to import XML with some basic formatting? 

Let's say the XML looks like this, very simple:

] <?xml version="1.0" encoding="UTF-8"?>
] <?xsl-stylesheet type="text/xsl" href="style.xsl"?>

] <root>
] <text>
] <bold>This text is bold</bold> and <italic>this seems to be italic</italic>.
] </text>
] <underline>I'm under the line</underline>
] </root>

How does my XSLT code in "style.xsl" have to look like in order to tell InDesign that the content of <bold> has to be bold, the one of <italic> italic and leaving <underline> underlined?

  • Currently Being Moderated
    Jul 2, 2009 9:50 AM   in reply to humayoo



    We have extensive experience working with indesign document and cms 

    dataflow with a tailored solution geared to make this type of workflow 

    seamless, there are alternate paths for a custom solution as well 

    available. Let me know if I can help.

    Tony Hake




    Sent from my iPhone

    Mark as:
  • Currently Being Moderated
    Jul 3, 2009 12:03 PM   in reply to humayoo

    If you want to send me some sample files i would be happy to take a look...

    what is this for?



    Mark as:
  • Currently Being Moderated
    Nov 7, 2012 11:50 AM   in reply to humayoo

    Hi, was there a solution for this?

    I am importing xml into indesign and the basic functionality of importing and producing a pdf based on that is fine. However, I am not sure on how I can include formatting for things such as italics, bold, etc.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points