This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: URGENT - my first xsl
- To: xsl-list at mulberrytech dot com
- Subject: Re: URGENT - my first xsl
- From: "Brendan McKenna" <brendan at w3s dot ie>
- Date: Thu, 10 Aug 2000 13:27:37 +0000
- Reply-To: xsl-list at mulberrytech dot com
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@w3s.ie
National Technological Park
Limerick
Ireland
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list