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

Re: Literal Text

Subject: Re: Literal Text
From: "James Tauber" <jtauber@xxxxxxxxxxx>
Date: Fri, 26 Mar 1999 11:30:55 +0800
jamie mcnaughton lotus
> Given this XSL:
>
> <xsl:text>&lt;/JPanel&gt;</xsl:text>
>
> When run through Lotus XSL Processor I get this output:
>
> &lt;/JPanel&gt;
>
> When I really want:
>
> </JPanel>
>
> What am I doing wrong?

<xsl:text> is for generating character data. &lt;/JPanel&gt; is a way to
represent </JPanel> as character data so it won't be confused with an
end-tag.

You wanted an end-tag? Well you can't have an end-tag without a start-tag
and that makes an element. XSL is about outputing elements, not just
individual tags.

So don't think of it in terms of wanting </JPanel> but rather wanting an
element of the type JPanel. In which case you just use <JPanel>...</JPanel>
in your template. You don't need <xsl:text>.

Hope this helps

James


 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.