Subject: Re: Literal Text From: "James Tauber" <jtauber@xxxxxxxxxxx> Date: Fri, 26 Mar 1999 11:30:50 +0800 |
> Given this XSL: > > <xsl:text></JPanel></xsl:text> > > When run through Lotus XSL Processor I get this output: > > </JPanel> > > When I really want: > > </JPanel> > > What am I doing wrong? <xsl:text> is for generating character data. </JPanel> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Literal Text, Jon Wynacht | Thread | Re: Literal Text, James Tauber |
Re: Why can't list digest be in xml, Adam M Donahue | Date | Re: Literal Text, James Tauber |
Month |