从XSL变量显示文本 [英] Displaying text from XSL variable

查看:89
本文介绍了从XSL变量显示文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个名为$ p =(0 0 0)(0.82 0 0)(1.63 -0.01 0)(2.63 -0.01 0)(3.63 -0.01 0)(4.63 -0.01 0)(5.63 -0.02)的XSL变量0)(6.63 -0.02 0)(7.63 -0.02 0)(8.6 -0.02 0)

此行包含10点的X,Y,Z坐标。

I我正在使用此代码显示

< td>< font size =" -2">< xsl:value-of select =" $ p" />< / font>< / td>

但是我想在一个单独的行中显示每个坐标。就像这个....

(0 0 0)

(0.82 0 0)

(1.63 -0.01 0)

(2.63 -0.01 0)

(3.63 -0.01 0 )

(4.63 -0.01 0)

(5.63 -0.02 0)

(6.63 -0.02 0)

(7.63 -0.02 0)

(8.6 -0.02 0)


所以plz帮助......

I have a XSL variable named $p = (0 0 0) (0.82 0 0) (1.63 -0.01 0) (2.63 -0.01 0) (3.63 -0.01 0) (4.63 -0.01 0) (5.63 -0.02 0) (6.63 -0.02 0) (7.63 -0.02 0) (8.6 -0.02 0)
This line contains X,Y,Z coordinates of 10 points.
I am using this code for displaying
<td><font size="-2"><xsl:value-of select="$p"/></font></td>
but i want to display each coordinate in a separate line.Like this....
(0 0 0)
(0.82 0 0)
(1.63 -0.01 0)
(2.63 -0.01 0)
(3.63 -0.01 0)
(4.63 -0.01 0)
(5.63 -0.02 0)
(6.63 -0.02 0)
(7.63 -0.02 0)
(8.6 -0.02 0)

So plz help...

推荐答案

p =(0 0 0)(0.82 0 0)(1.63 -0.01 0)(2.63 -0.01 0)(3.63 -0.01 0)(4.63 -0.01 0)(5.63 -0.02 0)(6.63 -0.02 0)(7.63 -0.02 0)(8.6 -0.02 0)

此行包含X, Y,Z坐标为10分。

我使用此代码显示

< td>< font size =" -2">< xsl :value-of select ="
p = (0 0 0) (0.82 0 0) (1.63 -0.01 0) (2.63 -0.01 0) (3.63 -0.01 0) (4.63 -0.01 0) (5.63 -0.02 0) (6.63 -0.02 0) (7.63 -0.02 0) (8.6 -0.02 0)
This line contains X,Y,Z coordinates of 10 points.
I am using this code for displaying
<td><font size="-2"><xsl:value-of select="


p" />< / font>< / td>

但是我希望显示每个坐标一个单独的一行。就像这个....

(0 0 0)

(0.82 0 0)

(1.63 -0.01 0)

(2.63 -0.01 0)

(3.63 -0.01 0)

(4.63 -0.01 0)

(5.63 -0.02 0)

(6.63 -0.02 0)

(7.63 -0.02 0)

(8.6 -0.02 0)


所以plz帮助......
p"/></font></td>
but i want to display each coordinate in a separate line.Like this....
(0 0 0)
(0.82 0 0)
(1.63 -0.01 0)
(2.63 -0.01 0)
(3.63 -0.01 0)
(4.63 -0.01 0)
(5.63 -0.02 0)
(6.63 -0.02 0)
(7.63 -0.02 0)
(8.6 -0.02 0)

So plz help...


你想要一个单独的行< tr>每个,或只是有< br />每个之后的标签?


您可以调用解析模板:
Do you want a seperate row <tr> for each, or just have <br/> tags after each one?

You could call a parsing template:
< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号


这篇关于从XSL变量显示文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆