0
可以将XSLT变量值传递给JavaScript变量。如果是这样怎么办?我有以下xml文件:您可以将XSLT选择值传递给JavaScript变量吗?
<b:blog-items>
<b:blog-item author="A124" dateTime="11/10/2013 14:00">
<b:title>This is a text title</b:title>
<b:text>
<b:paragraph>This is a paragraph</b:paragraph>
</b:text>
</b:blog-item>
</b:blog-items>
<a:authors>
<a:author id="A124">
<a:name>John</a:name>
<a:surname>Doe</a:surname>
<a:dob>13/12/1980</a:dob>
</a:author>
</a:authors>
使用XSLT我将它转换为HTML并且我正在访问所有值。现在我需要使用JavaScript来将作者ID从博客项目链接到作者。有没有人有任何想法?