Re: Newbie learning question
Hi Chris, the long form: <xsl:template match="propertyfile"> <xsl:element name="property"> <xsl:attribute name="file"> <xsl:value-of select="@name"/> </xsl:attribute> </xsl:element> </xsl:template> Chris Carrier <chriscarrier@xxxxxxxxxxxxxxxx> wrote on 14/07/2004 07:02:06: > I'm learning XSL to use with Ant to generate build scripts and had a > question about some simple syntax that I can't seem to figure out. What > I want is a template within an xls file that looks something like: > > . > . > . > <xsl:template match="propertyfile"> > <property file = "<xsl:value-of select="@name""/> > </xsl:template> > . > . > . > > That outputs: > > <property file="<value of @name>"/> > > Obviously, the template I have is not well formed but I'm not exactly > sure how to insert the value of @name inside the <project> tag instead > of between <project>...</project>. I realize this is a simple task but > I'm still overcoming the initial learning curve. > > Thanks > C > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.716 / Virus Database: 472 - Release Date: 7/5/2004
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format