Empty value is passed while reading value from an XML node
-
Hi.. I am using a function to format the date values which are read from the XML document,but in XSLT while using the following coding i am receiveing only empty value in the DOB parameter.How can i solve the issue xsl:value-of select="DateTimeConverter:ToDateTimeFormat(DOB, 'dd-MMM- YYYY')" DOB is the short form of Date of birth node below is the XML structure < Name > Guest < /Name > < DOB > 2009-06-12T02:00:47.187 < /DOB > < Age > 25 < /Age > while reading the DOB node i am reteriving only empty values how can i solve this Mahesh.J Thanks Mahesh.J
-
Hi.. I am using a function to format the date values which are read from the XML document,but in XSLT while using the following coding i am receiveing only empty value in the DOB parameter.How can i solve the issue xsl:value-of select="DateTimeConverter:ToDateTimeFormat(DOB, 'dd-MMM- YYYY')" DOB is the short form of Date of birth node below is the XML structure < Name > Guest < /Name > < DOB > 2009-06-12T02:00:47.187 < /DOB > < Age > 25 < /Age > while reading the DOB node i am reteriving only empty values how can i solve this Mahesh.J Thanks Mahesh.J
-
-
Mahesh.J wrote:
the class
Which class? The one from the article I pointed you at?
Mahesh.J wrote:
which is placed in the APP_Code folder
That's nice. Who put it there? You? Still doesn't answer the question I asked you; are you sure the XSLT processor can see the extension class?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Mahesh.J wrote:
the class
Which class? The one from the article I pointed you at?
Mahesh.J wrote:
which is placed in the APP_Code folder
That's nice. Who put it there? You? Still doesn't answer the question I asked you; are you sure the XSLT processor can see the extension class?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Stuart Dootson wrote:
Still doesn't answer the question I asked you
At least you got a reply from this twit. He just deleted his post when I asked a question then reposted his question. At this point I wouldn't tell him shit.
led mike wrote:
At this point I wouldn't tell him sh*t.
Rapidly approaching that point myself to be honest
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
led mike wrote:
At this point I wouldn't tell him sh*t.
Rapidly approaching that point myself to be honest
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
Sorry Guys, I thank you for ur reply.I found the problem myself and sloved the issue.Below is code that i used previously where i faced the problem <xsl:for-each select="Customer//CustomerDetails"> <xsl:value-of select="DateTimeConverter:ToDateTimeFormat(Customer//CustomerDetails/DOB,'dd-MMM-yy')" /> </xsl:for-each> Inside the for-each loop value for the DOB parameter is reterived as empty. Then i solved the issue by using the msxsl function as shown below <xsl:value-of select="msxsl:format-date(DOB, 'MMM dd, yyyy')" /> Regards Mahesh.J