xsl-list
[Top] [All Lists]

Re: [xsl] Which XSLT processor on website?

2009-04-15 07:33:01
On Wed, Apr 15 2009 11:01:22 +0100, nbabuganesh(_at_)gmail(_dot_)com wrote:
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.
...
2009/4/14 himanshu padmanabhi 
<himanshu(_dot_)padmanabhi(_at_)gmail(_dot_)com>:
...
<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>

If you are doing the transform in the Mozilla client, you'll have to use
XSLT 1.0, not XSLT 2.0.  Point your browser at
http://www.mulberrytech.com/xsl/xsl-list/processor-version.xsl to
confirm what version of XSLT it supports.

Also, you won't be able to feed just half the webpage to the XSLT
transform unless you are willing to do tricks with Javascript.  Either
the XML should be just the variable information with the stylesheet
providing the static information or if the XML contains the static
information, the stylesheet should just copy the static information in
the source through to the result.

Regards,


Tony Graham                         
Tony(_dot_)Graham(_at_)MenteithConsulting(_dot_)com
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2

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