xsl-list
[Top] [All Lists]

RE: Using attribute values in html conversion

2002-10-02 03:13:30
The first idea that came to mind would be something of the sort:
      <input type="text" name=<xsl:apply-templates 
select="@name"/> maxlength=<xsl:templates select="@maxLength"/> >


Look up "attribute value templates"; or if you really want to use
template rules to process the attributes, write:

<input type="text">
<xsl:attribute name="name">
  <xsl:apply-templates select="@name"/>
</xsl:attribute>
<xsl:attribute name="maxlength">
  <xsl:apply-templates select="@maxLength"/>
</xsl:attribute>
</input>

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


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



<Prev in Thread] Current Thread [Next in Thread>