[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

<go> element needs to be nested

Subject: <go> element needs to be nested
From: "Jacob P. Glenn" <jpglenn2@xxxxxxxxxxx>
Date: Tue, 16 Apr 2002 17:06:52 -0400
go element
I am using the XSLT below to transform an XHTML form to a wml form.  The
problem with this is that it neglects the href.  

<xsl:template match="form">
  <xsl:apply-templates select="input" />
 </xsl:template>

<xsl:template match="input">
  <input>
    <xsl:copy-of select="@name | @size | @maxlength" />
  </input>
</xsl:template>

<xsl:template match="input[@type = 'submit']">
  <do type="accept" label="{normalize-space(@value)}"/>
</xsl:template>


The proper wml input would be as follows:  

<input name="" size="" maxlength=""/>
<do type="accept" label="">
<go href=""/>
</do>


I don't know how to put the <go> element into the transformation.  I
believe that it would have to be inside of the <do> element.  I don't
know how to do this without getting a parser error.  Any suggestions?

Jacob

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.