[xsl] manipulating string

Subject: [xsl] manipulating string
From: Prakash R <raghits@xxxxxxxxx>
Date: Fri, 16 Sep 2005 13:42:58 -0700 (PDT)
Hi,

I have an XML which looks like this:

<item id="6902" sort="0">
	<name>Industrial Stripe Shirt</name>
	<description><![CDATA[
		<ul><li> TouchTex</li>
		<li> Convertible</li>
		<li> Pockets <br/>with pencil</li></ul>]]>
	</description>
</item>

Notice that description is CDATA and has some html
tags. Now I want to convert the description into a
fo:list-item which would look like this. Basically I
want to convert the HTML tags in CDATA to equivalent
FO tags using XSL. How can this be accomplished?

      <fo:list-block>
        <fo:list-item>
          <fo:list-item-label>
            <fo:block>.</fo:block>
          </fo:list-item-label>
          <fo:list-item-body>
            <fo:block>TouchTex</fo:block>
          </fo:list-item-body>
        </fo:list-item>
        <fo:list-item>
          <fo:list-item-label>
            <fo:block>.</fo:block>
          </fo:list-item-label>
          <fo:list-item-body>
            <fo:block>Convertible</fo:block>
          </fo:list-item-body>
        </fo:list-item>
        <fo:list-item>
          <fo:list-item-label>
            <fo:block>.</fo:block>
          </fo:list-item-label>
          <fo:list-item-body>
            <fo:block>Pockets</fo:block>
            <fo:block>with Pencil</fo:block>
          </fo:list-item-body>
        </fo:list-item>
      </fo:list-block>

Also, is there a way to treat CDATA as XML snippet by
itself? That would probably partly answer this
question.

Thank you.
Prakash

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Current Thread