Trina Thach

Greenhorn
+ Follow
since Jun 12, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Trina Thach

Any sample codes (or URL related to this topic) would be thankful.
I have the following XML:
<root>
<tag>text 1</tag>
<tag>text 2.</tag>
<tag1>text 3</tag1>
<nextag>text text text text text text</nextag>
<tag>text text</tag>
<tag2>text text</tag2>
</root>

I want to write a script (Perl, ASP, JAVA anything will do) using XMLDOM to select all tags before <nextag>. Please help!

Thanks muchly.
Hi Dhananjay, It works perfectly the way I want it to be. Thank you so much for your help.
[ April 20, 2003: Message edited by: Trina Thach ]
I have a multiple nested elements case (below), how can I write a condition in xslt to display all <body> tag contents if they belong to id=1 record? Please Help.
<topics>
<topic>
<id>1</id>
<msg>
<body>ABC</body>
<msg>
<body>efg</body>
<msg>
<body>hij</body>
</msg>
</msg>
</msg>
</topic>
</topics>
Thanks heaps Mapraputa, it works :-)
I want to ask the same question as above with extra requirements...That is how to select DISTINCT <type> content and display all relevant of <name> under each type, and both elements must be sorted alphabetically...
I have tried your solution above and it wouldn't work at all. I manage to display Distinct <type> by using <xsl:if> to compare the current node with the preceeding node (after sorting of course) but the <name> just wouldn't be sorted at all.
Any suggestion? Thanks...
Thank you all very much for your help.
I agree with Alex, every single XML book I read - they all talked about namespace but none of the them could give the readers a better understanding.
[This message has been edited by Trina Thach (edited July 01, 2001).]
I am learning XML, namespace, schema, and XSLT tech for sometimes now... I often see the examples with the following code:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
I keep using it but really do not understand fully what make the http://www.w3.org/1999/XSL/Transform so special from normal URLs?
Could anyone help pls?
------------------
T.T
Thank you Manj and Ravi. Got the cert is one thing but I don't really think it will not help me anything in doing the projects. Sure, I will not use XML@Whiz product. Rather, go to forums, read articles and books of course. Thanks again.
------------------
T.T
Rita, Remember a week or 2 back? I sent you an email regarding IBM XML Cert. I did look at your profile...that's how I know your name.
You see, I should use XSLT to produce HTML but I use XSL for XML to show on the web (for a special reason). Anyway, the problem is solved.
Thank you all.

------------------
T.T
Someone suggests me to purchase the XML@Whiz product - if I want to pass IBM XML Cert in a short time...Have anyone ever used it before? if so, do you think I should buy it??? Thanks in advance.
------------------
T.T
Rita, The whole idea is to make sure the browser renders it properly, and we know that everything in the CDATA section will be ignored by the browser so...we end up the same problem.

------------------
T.T
I've got the message. Thank you all very much.
:-)

------------------
T.T
Well, since the input says as "& #7848;" (no whitespace in between) being stored as "& amp;#7848;" - automatically converted by the parser...we eventually end up showing "&#7848;" on the browser, which is totally wrong.
All I need is to be able to save the input exactly as it is (do not expand it).
------------------
T.T
I have a form written in asp (using XMLDOM techniques), everything works perfectly, except...if the input string contains "&", it will expands as "& amp;" entity reference, which I do not want since I wish to store as is otherwise Unicode characters wouldn't be able to show up on the browser properly.
The alternative solution is to write a script to do a search and replace but...it's inefficient since the contents are changing all the time!!!
Any ideas are very much appreciate...
------------------
T.T
[This message has been edited by Trina Thach (edited June 21, 2001).]