Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: using HTML editors with XSL

From: Paul Tchistopolskii <paul@------->
To:
Date: 2/29/2000 5:02:00 PM
> 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 &amp; , 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> &#160; <xsl:value-of select="/result/ruser"/> &#160;
<B>Date:</B> &#160; <xsl:value-of select="/result/rdate"/> &#160;
<B>Subject:</B> &#160; <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&amp;s2x=P-track/index&amp;mode={$mode}"
target="_top">Continue</A></B>
</FONT>

</CENTER>
</BODY>

</html>



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent