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]

RE: Using attribute values in html conversion


> 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.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com 


 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]