On Sat, 2010-12-18 at 13:16 +0530, Chaitanya Yanamadala wrote:

>  Thank you for the reply. Thank u for letting me know an alternative for
> this. But there is a problem with what you have sent.
> It is not just removing of the bottom group tag that is required.

I'm not going to do your school homework for you :-)

My goal in showing you the XSLT was to show a different approach.  If
this is not homework :-), if this is code you will need to maintain
over time, you need to learn how it works.


> what ever output which u have given will not give me the exact format of
> output that is required.

That's because you did not give a general specification for your
problem, and I'm not really willing to spend time guessing :-)
The first thing to know when asking for help is that you need to
say not, "given this single input I want his output" but rather,
"this is what I am trying to accomplish, and here is my strategy".

For example, say,
"here are sample input and output. Whenever there's a group element
directly inside another group element, I need the contents of the
inner group element to be raised up to be children of the higher-level
group element, and the (now empty) nested group element is to be
deleted"

Of course, once you specify the problem in this much detail, you will
often find it's easy for you to solve it yourself, too!

And until you give that much detail, people won't really be able to help
you very much.

For example, if your real goal is to learn Perl, that's fine, but say
so, and then I'd give you a way to do this in Perl and explain that I'd
probaby use XSLT instead... or if your goal is to integrate with a
larger Perl system, for example, say that too.  Otherwise you might
as well say, "I need to cook some food, please help me" without
mentioning if it's for a Royal Banquet or a quick snack or because
the hot weather has made the meat smell bad :-)

Best,

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Sometimes blog: http://www.barefootliam.org/


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to