Subject: Re: using HTML editors with XSL From: Paul Tchistopolskii <paul@xxxxxxx> Date: Wed, 01 Mar 2000 01:01:33 -0800 |
> 1. Use some subset of XSL allowing to keep structure of the HTML template > unchanged, e.g. use <xsl:for-each select="..."> instead of <xsl:template > match="...">. This can make it possible to edit XSL stylesheet by some HTML > editor which is able just to skip unknown tags (in our case tags started > with "xsl:"). (BTW, do you think it's possible?) I would suggest to go with this scenario. At the end of this letter there is an xsl stylesheet which is using xsl in 'HTML templatish' mode ( yes - no apply-templates there, but you have for-each, if, variables e t.c. I think that you'l find the available subset of XSLT to be powerful enough.) The minor problem is that IE 5.0 is too smart with files with .xsl extension, but if you'l give the file some other extension, like .xs - IE will display it as if it is html. Also, even there are some stupid HTML GUI editors making a mess 'fixing' the 'broken' html, there are many others, like (Macromedia) which are not touching the unknown tags. On another hand in the stylesheet, <BR> *should* be <BR/> and CGIs paremeters should be separated with & , but not &... There could be some (minor) problems with the editors. Anyway, I think that trying to follow some other way could make life even worster. There is not a big number of robust user-friendly XML tools on the market. It took years to come up with reasonable HTML tools. I think because HTML-templatish mode of XSLT is a continuation of well-known templatish practice, it should have better support from the 'outher space' than other ways have. Rgds.Paul. <html xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <BODY BGCOLOR='WHITE'> <CENTER> Report <B><xsl:value-of select="/result/rid"/></B> has been submitted to the system. <BR/> <B>User:</B>   <xsl:value-of select="/result/ruser"/>   <B>Date:</B>   <xsl:value-of select="/result/rdate"/>   <B>Subject:</B>   <xsl:value-of select="/result/rsubj"/> <BR/> <xsl:variable name="mode" select="/result/mode"/> <FONT SIZE="+2"> <B><A HREF="/pxsl/pxsls?xsl=P-track/index&s2x=P-track/index&mode={$mode}" target="_top">Continue</A></B> </FONT> </CENTER> </BODY> </html> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
using HTML editors with XSL, Aleksandrs Jakovlevs | Thread | Re: using HTML editors with XSL, dhiraj guglani |
Creating XSLs, Antonio . Scotti | Date | Re: using HTML editors with XSL, dhiraj guglani |
Month |