This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 有谁熟悉STXX(STRUTS)的,请进来看一下,急,谢谢!
-michaellucad(michaellucad);
2005-4-15
{515}
(#2242857@0)
-
XSLT部分我解释一下:<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="//stxxChainedXMLDocuments">
<html>
<body>
<xsl:for-each select="//request/param">
<!-这里我打印出HTTPREQUEST的PARAMETERS,有时候打不出,稍改一下XML,又能打出了-->
<xsl:value-of select="@name"/>:::<xsl:value-of select="./value"/>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
-michaellucad(michaellucad);
2005-4-15
{415}
(#2242864@0)
-
now, still sometimes: '//request/param' donest work;but '//param' works
-michaellucad(michaellucad);
2005-4-15
(#2243066@0)
-
你不贴xml出来,是找不出原因的, //request/param 和//param匹配的是不同的pattern
-stevensun2000(小胖子);
2005-4-16
(#2244001@0)
-
xml 在公司,大体是:<stxxChainedXML>
<companyResponse>
...
</companyResponse>
<request>
<param name="id1">ddddd
</param>
<param name="id2">ddddd22
</param>
<userRealm>...</userRealm>
<resource>...</resource>
</request>
</stxxChainedXML>
<request>
-michaellucad(michaellucad);
2005-4-16
{249}
(#2244569@0)
-
说明以下,WORK和不WORK的XML的SCHEMA是完全一样,只差一个ELEMENT,且与REQUEST无关.昨天基本锁定是XALAN.JAR,STXX1.3.JAR或XPATH部分的BUG
-michaellucad(michaellucad);
2005-4-16
{51}
(#2244580@0)