1 Reply Latest reply on May 28, 2008 2:41 PM by

    format XML in Flash with CSS

      I want to format the xml-text by linking to a stylesheet called "typografi.css"

      Here´s the xml-file, but cant apply the changes from the linked stylesheet:

      <?xml version="1.0"? encoding="UTF-8"?>

      <?xml_stylsheet type="test/css" href="typografi.css"?>

      <gallery>
      <images>
      <title><![CDATA[myPicture1]]></title>
      <description><![CDATA[My Harley in a box]]></description>

      <tmb>photoGallery/tmb1.jpg</tmb>

      <img>photoGallery/img1.jpg</img>
      </images>
      <images>
      <title><![CDATA[myPicture2]]></title>

      <description><![CDATA[Hello, this is from our weekend in London.]]></description>

      <tmb>photoGallery/tmb2.jpg</tmb>

      <img>photoGallery/img2.jpg</img>
      </images>
      <images>
      < and so on..


      The stylsheet - typografi.css:

      title {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 14px;
      color: #CCCCCC;
      }
      description {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 10px;
      color: #bbbbbb;
      }

      How could I solve the problem so I dont need to apply changes like this on each tag (255 tags):

      <description><![CDATA[<font color="#ffffff" size="14"My Harley in a box]]></description>

      ..now it works but instead of this - if want to link to a external stylesheet. It would be more timesaving.

      Anyone?