This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

XSLT templates for HTML/XHTML elements


Hello there folks,

Not wanting to re-invent the wheel I want to find out whether there is a
resource somewhere with xslt snippits for the basic html/xhtml
constructs? E.g. a hyperlink would be similar to:

<xsl:template name="StandardLink">
<xsl:param name="Label"/>
<xsl:param name="Linktext"/>
<xsl:param name="Sessionid"/>
<xsl:param name="Target"/>
<a>
<xsl:attribute name="Target"><xsl:value-of
select="$Target"/></xsl:attribute>
<xsl:attribute name="href"><xsl:value-of
select="concat('default.asp?Label=',$Label,'&amp;Nextstep=Tweb.',$Nextst
ep,'&amp;Sessionid=',$Sessionid,)"/></xsl:attribute>
<xsl:value-of select="$Linktext"/>
</xsl:template>

I need similar for all the major form elements eg. checkbox, dropdown
listbox, hidden field, submit button, you name it otherwise I've got a
long night ahead of me creating them all from scratch. Any ideas?

Also does anyone know of any wysiwyg xhtml editors shich allow for
customisable wrappers?

regards
 
Andrew Mottershead
Web Developer
Mindstream

email: andrew@mindstream.co.uk
tel: 01743 718198
web: www.mindstream.co.uk

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.325 / Virus Database: 182 - Release Date: 19/02/2002
 



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]