[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Which XSLT processor on website?

Subject: Re: Which XSLT processor on website?
From: Ganesh Babu N <nbabuganesh@xxxxxxxxx>
Date: Wed, 15 Apr 2009 15:31:22 +0530
Re:  Which XSLT processor on website?
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.sedov@xxxxxxxxx> wrote:
>
https://developer.mozilla.org/en/Using_the_Mozilla_JavaScript_interface_to_XS
L_Transformations
>
> On Tue, Apr 14, 2009 at 3:36 PM, himanshu padmanabhi
> <himanshu.padmanabhi@xxxxxxxxx> 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@xxxxxxxxx> 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.padmanabhi@xxxxxxxxx>:
>>>> 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
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Vasu Chakkera
>>> Numerical Algorithms Group Ltd.
>>> Oxford
>>> www.vasucv.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.