User Profile
Collapse
-
I retrived the Today's date by the localtime() function, now i want to print the corronsponding week number in Perl... -
Print Week Number from System Time
Hi
I am new in Perl, i want to print the week number from the Date.
I fetched date from localtime() function, now how can we convert this date into the week number?
Thanks in advace :) -
Extracting CData Values
i have one problem
in my XML file i have CData like this
<college name="JDSVM" id="121" >
<![CDATA[
53 26100
]]>
<Comment>
<![CDATA[
front jounce bumper
]]>
</college>
in my XSL file, for taking the value of name and id, i used
<xsl:value-of select="college/@name"/>... -
My template is this
<xsl:template name="break">
<xsl:param name="str"/>
<xsl:param name="breaker"/>
<xsl:choose>
<xsl:when test="substring-after($str, $breaker) = ''">
<xsl:variable name="last"><xs l:value-of select="$str"/></xsl:variable>
...Leave a comment:
-
Problem in Mozilla for Displaying text from XSL variable
I have one problem regarding displaying text from XML file.
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.
for displaying 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)
... -
Now i have one more problem.
NOW THE PROBLEM is this, that in IE 6.0 its displaying all the points in different row, but when i open that file in mozilla,it displays all the points in a single row. can any one help me that how can it display each point in different row in mozilla?Leave a comment:
-
Displaying text from XSL variable
I have one problem regarding displaying text from XML file.
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.
for displaying 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)
... -
-
Displaying text from XSL variable
I have a XSL variable named $p = 10 155 784 967 24 54 698 78 34 27 21 87 13 15
This line contains width of 10 roads.
I am using this code for displaying
<td><font size="-2"><xsl:valu e-of select="$p"/></font></td>
but i want to display each coordinate in a separate line.Like this....
10
155
784
967
24
54
698
78
... -
Updating XML file via form
I want to update the XML file....
i have a XML file, for that XML file i made a XSL file,this XSL file showing the data of XML file in a HTML form, data shown in text boxes, so that we can edit the data and a submit button is also present. Now when we click submit button,there is an action field that points to the ASP file,now i want to update the data of XML file.
http://www.asp101.com/articles/michael/editingxml/
... -
I have one more problem in displaying....
i want to insert space in between points...or we can say here < > does not work, so can u tell me how can we insert space?Leave a comment:
-
Thanx.....Now i want to update the XML file....
i have a XML file, for that XML file i made a XSL file,this XSL file showing the data of XML file in a HTML form, data shown in text boxes, so that we can edit the data and a submit button is also present. Now when we click submit button,there is an action field that points to the ASP file,now i want to update the data of XML file.
http://www.asp101.com/articles/michael/editin...Leave a comment:
-
Thanx a lot...its working...
now if i want round off the value upto 1 decimal place, then how can we do it.
i m using this line of code
<xsl:value-of select="concat ( substring-before( $x, '.' ) , '.' , substring ( substring-after ( $x, '.' ) , 1 ,2) )" />
but for point like (0 0 0),it is displaying ( .. ). It will not display 0 (zero) value.
so plz help....Leave a comment:
-
how can we insert the serial number in the beginning for displaying like this....
1. (0 0 0)
2. (0.82 0 0)
3. (1.63 -0.01 0)
4. (2.63 -0.01 0)
5. (3.63 -0.01 0)
6. (4.63 -0.01 0)
7. (5.63 -0.02 0)
8. (6.63 -0.02 0)
9. (7.63 -0.02 0)
10. (8.6 -0.02 0)
I tried this by declaring two XSL variables before template definition
<xsl:variable name="temp"...Leave a comment:
-
-
Thanks jkmyoung
it is working now....but having a minor problem
in output it is displaying 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) (
i changed one line as
<xsl:value-of select="concat( $breaker,substr ing-before($str,...Leave a comment:
-
Hi jkmyoung,
thanks for help, i want to use <br> tag, but the code given by you have some minor error (related to tagging), i corrected that as
in line 8 <xsl:param name="breaker"\ >
in line 18 <xsl:with-param name="breaker" select="$breake r)"/>
after line 20 insert one more line </xsl:choose>
in line 10 <xsl:when test="substring-after($str,...Leave a comment:
-
Displaying text from XSL variable
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:valu e-of select="$p"/></font></td>
but i want to display each coordinate in a separate line.Like... -
Displaying text from XSL variable
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:valu e-of select="$p"/></font></td>
but i want to display each coordinate in a separate line.Like... -
ctually i have a large XML file and i also made a XSL file for viewing that XML file on the web browser.When we view that XML file in web browser and edit that file then i want to update that XML file also.(here we can use any scripting language for updating )
i don't know how it will, i saw this link Check this
In this ASP is used for updating the XML file.I want the same thing but the problem is here the XML file...Leave a comment:
No activity results to display
Show More
Leave a comment: