1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" xmlns:js="javascript:code"> <msxsl:script implements-prefix="js" language="javascript"> <![CDATA[ //특수문자 제거 오류 // 한번만 제거 됨 function regExp(strText) { var sText =strText; sText = sText.replace("==",""); sText = sText.replace("+",""); sText = sText.replace("/",""); return sText; } //특수문자 제거 오류 // 문전 전체 찾아 제거 됨 function regExp(strText) { var sText =strText; sText = sText.replace(/\=/g, '') sText = sText.replace(/\+/g, '') sText = sText.replace(/\//g, '') return sText; } ]]> </msxsl:script> <xsl:template match="/"> <xsl:value-of select="js:FOP(string(./CardNo))"/> <xsl:value-of select="js:FOPCardNumber(string(./CardNo))"/> <xsl:value-of select="js:FOPCardCode(string(./CardNo))"/> </xsl:template> </xsl:stylesheet> |