Okay. Ivelin Ivanov wrote: > This should be a minor patch to the transformer. > Do you want to submit it in buzilla? > > > > ----- Original Message ----- > From: "Simon Price" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, September 20, 2002 4:13 AM > Subject: Re: XMLForm stylesheet change suggestion > > > >>XForms 1.0 also includes <help> and <hint> elements for every control. >>They can be used to give the user extra information about a control. Its >>up to the UI renderer as to how this information is displayed, although >>the spec gives some guidance. >> >>Simon >> >> >>Ivelin Ivanov wrote: >> >>>Phil, >>> >>>Sorry it took me a while to respond, I am having some problems with the >> > 2.1 > >>>build. >>> >>>The XForms spec mandates one <caption/> sub element. >>>I think if you need additional text, you can use other custom tags from >> > your > >>>own namespace. >>> >>><xf:textbox> >>> <xf:caption>My field</xf:caption> >>> <additionalElement>Custom Text</additionalElement> >>></xf:textbox> >>> >>>Another option is to not set display text directly in the caption tag, >> > but > >>>instead specify a lookup key like my.field which is then replaced via >> > i18n > >>>tags. >>> >>> >>>As far as wizard2html.xsl is concerned, it is only intended as a demo. >>>xmlform2html.xsl on the other hand should be generic. >>> >>> >>>Looking forward to your comments, >>> >>>Ivelin >>> >>> >>> >>>----- Original Message ----- >>>From: "Phil" <[EMAIL PROTECTED]> >>>To: <[EMAIL PROTECTED]> >>>Sent: Monday, September 16, 2002 11:09 PM >>>Subject: Re: XMLForm stylesheet change suggestion >>> >>> >>>That does take care of the phantom text, but what if someone wanted some >>>additional text on the form. The patch that I posted is based on the >>>assumption that someone would not want a double post of the first >> > caption, > >>>but any additional captions they would want to see. With the patch that >> > is > >>>in cvs, what element would you use to go about getting additional text >> > into > >>>the form (current problem I am working on)? >>> >>>Also, is the wizard2html.xsl supposed to be app specific or general to >> > all > >>>xmlform apps? >>> >>>Thanks, >>>Phil >>> >>>On Monday 16 September 2002 08:41 pm, Ivelin Ivanov wrote: >>> >>> >>>>Thanks for reminding me that this is an outstanding bug. >>>> >>>>I have applied a patch and closed it. It is a little different than >>> > yours, > >>>>but it achieves the same effect. >>>> >>>>Please do a diff and let me know if you think the patch won't work. >>>> >>>>http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9716 >>>> >>>> >>>>Best, >>>> >>>>Ivelin >>>> >>>> >>>>----- Original Message ----- >>>>From: <[EMAIL PROTECTED]> >>>>To: <[EMAIL PROTECTED]> >>>>Sent: Monday, September 16, 2002 9:46 PM >>>>Subject: XMLForm stylesheet change suggestion >>>> >>>> >>>>I have a change for the file wizard2html.xsl which will remove the >>> > caption > >>>>that appears on the side of the page. If someone would tell me the >>> > proper > >>>>way to submit this information in the future, I would be happy to >>> > comply. > >>>>original code: >>>> <xsl:for-each select="*[name() != 'xf:submit']"> >>>> <xsl:choose> >>>> <xsl:when test="name() = 'error'"/> >>>> <xsl:when test="xf:*"> >>>> <xsl:apply-templates select="."/> >>>> </xsl:when> >>>> <xsl:otherwise> >>>> <xsl:copy-of select="."/> >>>> </xsl:otherwise> >>>> </xsl:choose> >>>> </xsl:for-each> >>>> >>>> >>>>modified code: >>>> <xsl:for-each select="*[name() != 'xf:submit']"> >>>> <xsl:choose> >>>> <xsl:when test="name() = 'error'"/> >>>><!-- start new code --> >>>> <xsl:when test="name() = 'xf:caption'"> >>>> <xsl:if test="count(parent::node()/xf:caption) > 1"> >>>> <xsl:if test="parent::node()/xf:caption[1] != ."> >>>> <tr> >>>> <td align="center" colspan="3"> >>>> <xsl:value-of select="."/> >>>> </td> >>>> </tr> >>>> <tr> >>>> <td colspan="3"> >>>> </td> >>>> </tr> >>>> </xsl:if> >>>> </xsl:if> >>>> </xsl:when> >>>><!-- end new code --> >>>> <xsl:when test="xf:*"> >>>> <xsl:apply-templates select="."/> >>>> </xsl:when> >>>> <xsl:otherwise> >>>> <xsl:copy-of select="."/> >>>> </xsl:otherwise> >>>> </xsl:choose> >>>> </xsl:for-each> >>>> <tr> >>>> <td align="center" colspan="3"> >>>> <xsl:for-each select="*[name() = 'xf:submit']"> >>>> <xsl:copy-of select="." /> >>>> <xsl:text> </xsl:text> >>>> </xsl:for-each> >>>> >>>> >>>>--------------------------------------------------------------------- >>>>Please check that your question has not already been answered in the >>>>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> >>>> >>>>To unsubscribe, e-mail: <[EMAIL PROTECTED]> >>>>For additional commands, e-mail: <[EMAIL PROTECTED]> >>>> >>>> >>>> >>>>--------------------------------------------------------------------- >>>>Please check that your question has not already been answered in the >>>>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> >>>> >>>>To unsubscribe, e-mail: <[EMAIL PROTECTED]> >>>>For additional commands, e-mail: <[EMAIL PROTECTED]> >>> >>> >>> >>>--------------------------------------------------------------------- >>>Please check that your question has not already been answered in the >>>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> >>> >>>To unsubscribe, e-mail: <[EMAIL PROTECTED]> >>>For additional commands, e-mail: <[EMAIL PROTECTED]> >>> >>> >>> >>>--------------------------------------------------------------------- >>>Please check that your question has not already been answered in the >>>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> >>> >>>To unsubscribe, e-mail: <[EMAIL PROTECTED]> >>>For additional commands, e-mail: <[EMAIL PROTECTED]> >>> >>> >> >>-- >> >>------------------------------------------------------------------- >>Simon Price >>Institute for Learning and Research Technology >>University of Bristol >>8-10 Berkeley Square >>Bristol BS8 1HH >>United Kingdom >> >>Direct: +44 (0)7071 226 720 >>Office: +44 (0)117 928 7193 >>Fax: +44 (0)117 928 7112 >>[EMAIL PROTECTED] >>http://www.ilrt.bristol.ac.uk >> >> >>--------------------------------------------------------------------- >>Please check that your question has not already been answered in the >>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> >> >>To unsubscribe, e-mail: <[EMAIL PROTECTED]> >>For additional commands, e-mail: <[EMAIL PROTECTED]> >> > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > >
-- ------------------------------------------------------------------- Simon Price Institute for Learning and Research Technology University of Bristol 8-10 Berkeley Square Bristol BS8 1HH United Kingdom Direct: +44 (0)7071 226 720 Office: +44 (0)117 928 7193 Fax: +44 (0)117 928 7112 [EMAIL PROTECTED] http://www.ilrt.bristol.ac.uk --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>