xsl-list
[Top] [All Lists]

Re: [xsl] Which XSLT processor on website?

2009-04-15 06:01:52
Hai,

1. Create one xml file with all the content.
2. develop xsl to output html and view the content in Mozilla by
adding xsl pi in xml file. (<?xml-stylesheet type="text/xsl"
href="test.xsl"?>
3. Place the xml and xsl file in the same folder in web folder.
4. Open the xml file in any browser it will open as HTML File.

Regards,
Ganesh

On Tue, Apr 14, 2009 at 5:37 PM, Vyacheslav Sedov
<vyacheslav(_dot_)sedov(_at_)gmail(_dot_)com> wrote:
https://developer.mozilla.org/en/Using_the_Mozilla_JavaScript_interface_to_XSL_Transformations

On Tue, Apr 14, 2009 at 3:36 PM, himanshu padmanabhi
<himanshu(_dot_)padmanabhi(_at_)gmail(_dot_)com> wrote:
Thank you very much.My host machine is CentOS 5.2.Should I need to
install MSXSL separately?
Browser is 'Mozilla 3 Beta 5'.

XML file should contain path of HTML page right,rather than XSL
file('student_info.html' contains some XSL code.Is this fine or
separate XSL file is required?If yes,should I call that XSL file on
form load or how?)

<?xml-stylesheet href="student_info.html" type="text/html"?>

Thanks and Regards,
Himanshu Padmanabhi.

On Tue, Apr 14, 2009 at 4:19 PM, Vasu Chakkera <vasucv(_at_)gmail(_dot_)com> 
wrote:
Currently,it is all in HTML.So every time to add/edit/delete entries.I
have to modify HTML,I do not want to do that.

Good you realized that..

That is why thinking of switching to XSLT,wherein I will be having XML
file transforming to HTML on this particular part of the page.

This is kind of a use case for which XSLT was intended originally..


Which XSLT processor is used here?

U have 2 options here. Either add the XSL style sheet reference to
your XML document

So it happens in the client side.. this will use MSXSL .. If you do
not do crazy circus with your data, then this should be enough..

If however, u have a lot of computations, that cant be handled in the
client side . You must do ur transformations at the server and throw
the HTML to the client. You can use whatever processor you use.. use
saxon for all :)

HTH.




2009/4/14 himanshu padmanabhi 
<himanshu(_dot_)padmanabhi(_at_)gmail(_dot_)com>:
I want to use XSLT in my website to display 'students information'.

First half page will contain information of the institution.Then I am
having information in following format(with some bullet formatting),

Student Name:
Student Address:
Skill Sets:
Educational Qualification:
Other Personal information:

Currently,it is all in HTML.So every time to add/edit/delete entries.I
have to modify HTML,I do not want to do that.

That is why thinking of switching to XSLT,wherein I will be having XML
file transforming to HTML on this particular part of the page.

Which XSLT processor is used here?
or I should directly have following XSL portion replacing the HTMl part 
before?

<FIRST HALF PAGE OF STATIC INFORMATION>
<xsl:stylesheet version="2.0">

<xsl:output method="html" />
<xsl:template match="students">
   Print all student information(just copy the previous HTML
code,only retrieve fields from XML)
</xsl:template>
</xsl:stylesheet>
<SOME ENDING PART>

Am I on the right track, is the thinking correct?

---------------------------------
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>
--~--





--
Vasu Chakkera
Numerical Algorithms Group Ltd.
Oxford
www.vasucv.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>
--~--



--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>