|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: text() pattern matching
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








