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

Need basic help

Subject: Need basic help
From: Verakso <verakso@xxxxxxxxx>
Date: Thu, 10 Nov 2005 13:25:49 +0100
filmgear
It has been ages since I last took a look at xsl, so I am rather rusty.

I would like to go from here:

<record num="1">
		<item name="filnavn">2006-50ulys_bela__bely_belm</item>
		<item name="annoncoer">Filmgear</item>
		<item name="hoejde">35</item>
		<item name="bredde">70</item>
		<item name="horisontal">RIGHT</item>
		<item name="vertikal">BOTTOM</item>
		<item name="sortering"/>
		<item name="fagkode_ref">BELA</item>
</record>

To here:

<annonce filnavn="2006-50ulys_bela__bely_belm" annoncoer="Filmgear "
hoejde="35" bredde="70" horisontal="RIGHT" vertikal="BOTTOM"
sortering="" fagkode_ref="BELA"/>

My basic template looks like this:

<xsl:template match="record">
		<xsl:element name="annonce">
			<xsl:for-each select="item">
				<xsl:attribute name="@name"><xsl:value-of select="."/></xsl:attribute>
			</xsl:for-each>
		</xsl:element>
	</xsl:template>

But obviously that doesn't work.
It is rather embarrassing to forget something easy like this but I am
to tired to figure out the problem right now.

/thomas

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.