Subject: Re: [xsl] Keep it simple S... From: Mike Ferrando <mikeferrando@xxxxxxxxx> Date: Thu, 13 Dec 2001 07:08:31 -0800 (PST) |
Jarno, David and Mike, thanks. I will try both ways. Why didn't I think of turning the text into a variable! Duh! No escaping needed! Awesome, Mike F. --- Mike Brown <mike@xxxxxxxx> wrote: > Jarno.Elovirta@xxxxxxxxx wrote: > > <xsl:if test="contains($getit, '"')"> > > Sometimes even that's not enough. > For example, you can't have > > <xsl:if test="contains($getit, ''')"> > > because the XPath expression is unparseable, even though > the attribute is. For those circumstances, define > > <xsl:variable name="q">'</xsl:variable> > <xsl:variable name="qq">"</xsl:variable> > > and reference $q or $qq where needed. > > Example: > > <xsl:value-of select="concat('he said, ',$qq,'don',$q,'t > worry.',$qq)"/> > > - Mike > ____________________________________________________________________________ > mike j. brown, fourthought.com | xml/xslt: http://skew.org/xml/ > denver/boulder, colorado, usa | personal: > http://hyperreal.org/~mike/ > > XSL-List info and archive: > http://www.mulberrytech.com/xsl/xsl-list > __________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Keep it simple S..., David Carlisle | Thread | [xsl] Re: [xsl] RE: [xsl] Re: [xsl], Kevin Burges |
RE: [xsl] indenting output Q?, Wolfgang Bogacz | Date | RE: [xsl] Dumb questions from a new, Mike Ferrando |
Month |