Thank you all,I am going through XSLT Programmers Reference from 'Michael Kay'.
First 2 chapters clarified all my basic doubts about XSLT.
I am very thankful to the author for such a nice book.
One doubt at this stage.I am passing arguments to XSL file using perl
script like this,
my $results = $stylesheet->transform($source,
XML::LibXSLT::xpath_to_string(cnt => "1",idx => "$in{'idx'}",new
=> "$in{'new'}"));
In my template rule,I am declaring it,as I want to pass them to next form.
<xsl:param name="cnt" select="$cnt" />
<xsl:param name="idx" select="$idx" />
<xsl:param name="new" select="$new" />
<form name='myfrm' method='POST' action='logic.cgi'>
<input type="hidden" name="name_idx" value="{$idx}" />
<input type="hidden" name="name_new" value="{$new}" />
<input type="hidden" name="name_cnt" value="{$cnt}" />
</form>
In this case,why do I need to declare these using <xsl:param>? Because
without specifying this also,I am able to pass values to next form.
On Wed, Mar 11, 2009 at 4:38 PM, Manuel Souto Pico
<manuel(_dot_)souto(_at_)star-group(_dot_)net> wrote:
Hi,
I only used two books about XSLT, the first one was a couple of years ago and
I can't remember the title, but I couldn't make much out of it. The second
one (by Michael Kay) I'm reading it now in my free time and I can say
everything is as clear as can be for a full beginner like me with no formal
background in computing. I feel thankful to Michael for that.
Cheers, Manuel
Michael Kay escribió:
Hi,I am having few very basic XSL questions.
Yes, we noticed. It's good that you have recognized that it's going to be
difficult to get your code to work unless you have understood the basic
concepts first.
But mailing lists and forums aren't a good way of acquiring this
information. I'm a firm believer that the best way to get yourself up to
speed on a new technology is to spend a day or two immersed in a good book.
I could give you one-liner answers to your questions below, but you really
need to read a few pages on each of these questions, which you will find in
the opening chapter of any decent XSLT reference book (including, of course,
my own.)
Michael Kay
http://www.saxonica.com/
1.Why XSLT is actually used?and what it is exactly?
My understanding is,it is HTML code only and XSLT can read XML file
with more ease.So one should use XSLT.
We specity it using <xsl:output method="html"/> means there should be
other output forms also.
2.I am using XPATH to pass arguments in my perl code.
my $results = $stylesheet->transform($source,
XML::LibXSLT::xpath_to_string(args => "$in{'args'}",val => "1")); .
What is XPATH?and what is its significance?What this function
"XML::LibXSLT::xpath_to_string" will do?
3. <xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> Why this is required
at start of every XSL file?
I think all the namespaces are defined there,all XSL elements refer
to/use to this location.
---------------------------------------
Thanks and Regards,
Himanshu Padmanabhi
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--
---------------------------------
Thanks and Regards,
Himanshu Padmanabhi
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--