This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: new member
- From: Mike Brown <mike at skew dot org>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Mon, 20 May 2002 17:26:21 -0600 (MDT)
- Subject: Re: [xsl] new member
- Reply-to: xsl-list at lists dot mulberrytech dot com
Balaji Ramachandran wrote:
> i wanted to convert all CDATA in the imput xml to
> html.
> while doing this, its converting all the < to <
> which is fine.
Just so you know, a CDATA section is for the convenience of
the document author, only. It saves you the trouble of typing
< and &. It doesn't really 'convert' anything; it just
denotes text-that-resembles-markup as being just text, not
markup.
> <![ CDATA [<abstract>
> <para>
> <text/></para>
> </abstract>]]>
>
> converting to:
> <abstract><para><text/></para></abstract>
>
> but I want them to put as newline for each line
> <abstract>
> <br/>
> <para><br/>
> <text/><br/></para><br/></abstract>
> <br/>
Specifically, you want to transform a text node consisting of some text
interspersed with linefeed characters (
 / ) into a series of
alternating text nodes and empty 'br' elements.
I provide an example of how to do this at
http://skew.org/xml/stylesheets/linefeed2br/
> 2. And also I want to generate a toc from a list of
> xml files. how can i generate?
Can you be more specific about what you want?
- Mike
____________________________________________________________________________
mike j. brown | xml/xslt: http://skew.org/xml/
denver/boulder, colorado, usa | resume: http://skew.org/~mike/resume/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list