[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: URGENT - my first xsl
Subject: Re: URGENT - my first xsl From: "Brendan McKenna" <brendan@xxxxxx> Date: Thu, 10 Aug 2000 13:27:37 +0000 |
Hi, : I'm trying to make a XSL for a dynamic XML document to wml, but I'm doing : somthing(s) wrong. : : The error msg. is: The value of attribute "id" must not contain the '<' : character. : : <?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"> : <card id="<xsl:value-of select="cardid"/>" title"<xsl:value-of : select="cardtitle"/>"> This line is causing your problem. What you'll need to do is something like this: <card> <xsl:attribute name='id'> <xsl:value-of select="cardid"/> </xsl:attribute> . . . In order to get the results you want. You'll have to do the same for the title attribute on this line, as well as the src= and href= attributes on the subsequent lines. Brendan -- Brendan McKenna Technical Director Phone: +353-(0)61-338177 x4143 W3 Services Ltd. Fax: +353-(0)61-338065 Innovation Centre Email: brendan@xxxxxx National Technological Park Limerick Ireland XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
URGENT - my first xsl, Søren Neigaard | Thread | Re: URGENT - my first xsl, robin |
RE: keys: repeated nodes from same , Kay Michael | Date | RE: <BR> a problem for XALAN?, Medina, Edward |
Month |