我陷入了可能对您而言可能认为很简单的事情!排除xml节点
在XML文件中我有这些节点
<Types>
<Pas type="1" single="Man" plural="Men" />
<Pas type="2" single="Woman" plural="Women" description="this is a test" />
<Pas type="3" single="Child" plural="Children" description="this is another test" />
</Types>
然后在XSLT提交了JavaScript,我填一个变量
Details = {<xsl:for-each select="/Types/Pas">"<xsl:value-of select="@type"/>": {single:"<xsl:value-of select="@single"/>",plural:"<xsl:value-of select="@plural"/>"}
到目前为止好。在xslt中的某个点我有这个
(<xsl:value-of select="$Details/@desc" />)*
因为我想在()中用*表示描述。
,我得到这个:
Men()*
Women(this is a test)*
Children(this is another test)*
的问题是,我不希望()*男子。
有什么办法排除它吗?
问候!
谢谢队友。它的工作是这样的 \t \t \t \t \t \t \t \t(的 )* \t \t \t \t \t \t \t –
Unseen