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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--