RE: XSL variable

Subject: RE: XSL variable
From: "Dudley, Mark" <Mark.Dudley@xxxxxxxxxxxxx>
Date: Thu, 10 Aug 2000 10:10:52 -0400
Søren:

Your problem seems to be here:
 <card id="{$v1}" title"{$v2}">

Try
 <card id="{$v1}" title="{$v2}">

Mark

-----Original Message-----
From: Søren Neigaard [mailto:neigaard@xxxxxxxxxxxxxx]
Sent: Thursday, August 10, 2000 9:44 AM
To: Xsl-List (E-mail)
Subject: XSL variable


I have tryed a new approach to my old unanswerd problem, by creating a
variable, bot I get the error: Attribute name "card" must be followed by the
'=' character. Why? As I se it, "card" isent a part of xsl, so it shouldent
complain about it.

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
  <xsl:template match="/"> <!-- root of XML document -->
  <xsl:processing-instruction
name="cocoon-format">type="text/html"</xsl:processing-instruction>
    <wml>
      <template>
        <do type="prev" label="Back">
          <prev/>
        </do>
      </template>
      <xsl:for-each select="card">
      	<xsl:variable name="v1"><xsl:value-of
select="cardid"/></xsl:variable>
      	<xsl:variable name="v2"><xsl:value-of
select="cardtitle"/></xsl:variable>
        <card id="{$v1}" title"{$v2}">
          <p align="center">
            <img src="<xsl:value-of select="imgsrc"/>" alt="<xsl:value-of
select="imgalt"/>"/>
          </p>
          <xsl:for-each select="link">
            <a href="<xsl:value-of select="linkhref"/>"><xsl:value-of
select="linktitle"/></a>
          </xsl:for-each>
          <xsl:for-each select="text">
            <xsl:value-of select="text"/>
          </xsl:for-each>
        </card>
      </xsl:for-each>
    </wml>
  </xsl:template>
</xsl:stylesheet>

Med venlig hilsen/Best regards
Søren Neigaard
-------------------------------
MobileThink A/S
Udviklingsparken
Sønderhøj 46
8260 Viby J
Denmark



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


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


Current Thread