Subject: RE: text() pattern matching From: Kay Michael <Michael.Kay@xxxxxxx> Date: Tue, 14 Sep 1999 09:12:09 +0100 |
> I have having trouble with text that has > carriage returns within it and doing a match > on those values. > <xsl:when test='$myOpinionValue="excellent"'>5</xsl:when> Try: <xsl:when test='normalize($myOpinionValue)="excellent"'>5</xsl:when> Another idea I have been experimenting with is to write a SAX ParserFilter that normalizes the source document (e.g. by removing all white space before and after tags) before the XSL processor gets to see it. Seems to work well. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Merging two documents, James Clark | Thread | Re: Using ASP/IIS to dynamically pr, Larry Mason |
RE: expressing DTDs with UML, DPawson | Date | RE: Merging two documents, Kay Michael |
Month |