[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: new member

Subject: Re: new member
From: Mike Brown <mike@xxxxxxxx>
Date: Mon, 20 May 2002 17:26:21 -0600 (MDT)
Re:  new member
Balaji Ramachandran wrote:
> i wanted to convert all CDATA in the imput xml to
> html.
> while doing this, its converting all the < to &lt;
> 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
&lt; and &amp;. 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:
> &lt;abstract&gt;&lt;para&gt;&lt;text/&gt;&lt;/para&gt;&lt;/abstract&gt;
> 
> but I want them to put as newline for each line
> &lt;abstract&gt;
> <br/>
> &lt;para&gt;<br/>
> &lt;text/&gt;<br/>&lt;/para&gt;<br/>&lt;/abstract&gt;
> <br/>

Specifically, you want to transform a text node consisting of some text
interspersed with linefeed characters (&#xA; / &#10;) 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.