public static void main(String[] args) {
// TODO Auto-generated method stub
/** Vic's*/
String[] pram = new String[] {
"-in","7329559600297577LRPTT.XML",
"-stylesheet","POS_LCONEND_LRPTT.xsl",
"-out","TM_DATA_out.xml",
"-log","log.log" };
/**jina
* String[] pram = new String[] {
"-in","C:\\Users\\vic.liu\\Desktop\\Jina\\6000003300000129HPOLSCDT_20121119.xml",
"-stylesheet","C:\\Users\\vic.liu\\Desktop\\Jina\\TM_DATA.xsl",
"-out","C:\\Users\\vic.liu\\Desktop\\Jina\\TM_DATA_out.XML",
"-log","C:\\Users\\vic.liu\\Desktop\\Jina\\log.log" };
*/
XMLTransform ex = new XMLTransform();
try {
System.out.println(">>>>>>>>>>>>>>>>>>>Start<<<<<<<<<<<<<<<");
ex.execute(pram);
System.out.println(">>>>>>>>>>>>>>>>>>>IsOver<<<<<<<<<<<<<<<");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace(System.err);
}
}
这是 java 代码
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
exclude-result-prefixes="msxsl"
xmlns:user="http://www.w3.org/TR/xhtml1/strict">
<msxsl:script language="javascript" implements-prefix="user">
function Isw()
{
return "false";
}
</msxsl:script>
<xsl:template match="/">
<Dataset>
<COYCD>
<xsl:value-of select="user:Isw()"/>
在这 如何调用 上面定义的方法呢?
</COYCD>
<BRCD>
关注下,可能不行。可以考虑vba 或者其他