cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jerm <>
Subject xml:form TagLib
Date Thu, 18 May 2000 18:35:32 GMT
Hi All,

A few of us are trying to sort out a spec for a Form Handling TagLib, as you may have noticed

We are trying to work out how information for rendering a form can be passed to the StyleSheet.
Stuff like field names, existing or default field values, locale specific help text etc.

My first approach was to think of assembling the data as an XML fragment and inserting it
in the document.

But the remark by Ulrich earlier, that TagLibs can be used in XSL <doh/> it makes me
think we can take a different approach.

Instead of forcing the XSL author to extract the data they want from an XML Fragment, provide
a "Natural Language" Tag Set to get each thing.

xml:form Tags in the addressed file, set up the whole thing, reading, writing etc., then Tags
in the XSL read whatever they needs from the TagLib when the StyleSheet processes.

Something like this? :

	<xsl:element name="input">
		<xsl:attribute name="type">text</xsl:attribute>
		<xsl:attribute name="size">40</xsl:attribute>	
		<xsl:attribute name="value">
			<form:get-attribute field="{@name}" name="value"/>
		<xsl:attribute name="title">
			<form:get-attribute field="{@name}" name="title"/>
		<xsl:attribute name="maxlength">
			<form:get-attribute field="{@name}" name="maxlength"/>

Which is not much different to what the XSL developer would have to do extracting from their
info from an XML Fragment, or this? :


The TagLib supplies all the other bits, you did not overload.
At this extreme, the TagLib would be outputting HTML, not a good thing, right?

Any suggestions?

Thanks Jeremy


   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <>     		 <>
    <phone:+44.[0].207.737.6831>        <>

View raw message