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

Re: Outputting just plain text

Subject: Re: Outputting just plain text
From: Mike Haarman <mhaarma@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 8 Nov 2001 11:41:00 -0600 (CST)
outputting text from xsl
Use this top level element in your stylesheet.

<xsl:output method="text"/>

and take the p's out of your template body.

Mike

On Thu, 8 Nov 2001, Jay Burgess wrote:

> (I apologize for this "newbie" question, but I've exhausted everything I
> can think of and still haven't gotten it figured out.)
>
> I've got the following code snippet in my .XSL file:
>
> <xsl:param name="FILENAME"/>
> <xsl:template match="page">
>      <xsl:choose>
>          <xsl:when test="$FILENAME != ''">
>              <p>http://YOURMACHINE/<xsl:value-of select="$FILENAME"/></p>
>          </xsl:when>
>          <xsl:otherwise>...
>
> It outputs something like:
>      <p>http://YOURMACHINE/page1.html</p>
>      <p>http://YOURMACHINE/page2.html</p>
>      <p>http://YOURMACHINE/page3.html</p>
>
> What I really want though is just :
>      http://YOURMACHINE/page1.html
>      http://YOURMACHINE/page2.html
>      http://YOURMACHINE/page3.html
>
> That is, it's not HTML or XML output, but just plain text.  What XSL can I
> use in the above code to accomplish this?
>
> Thanks.
>
> Jay
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>

Mike Haarman -- mhaarma@xxxxxxxxxxxxxx
College of Liberal Arts   University of Minnesota, Minneapolis, West Bank



 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.