Subject: Re: [xsl] Dillemma when creating an XSL template ... how do I do this? From: "Michael Beddow" <mbnospam@xxxxxxxxxxx> Date: Tue, 13 Feb 2001 22:56:38 -0000 |
On Wednesday, February 14, 2001 12:45 AM JoshMEagle wrote: > In the code snippet below, the <email> and <url> elements are inside the > <contact> element, and I want to display these as HTML links, any ideas how > I can accomplish this? The way it is below doesn't work. Please give us: A sample complete <contact> element with all its children A fuller sample of your xsl that shows us how and where the templates matching contact, url and email are being invoked. Michael ------------------------------------------ Michael Beddow http://www.mbeddow.net/ > > > <xsl:template match="contact"> > <p> > <xsl:value-of select="name"/><br/> > <xsl:value-of select="address"/> > <xsl:value-of select="city"/>, <xsl:value-of select="state"/> > <xsl:value-of select="zip"/><br/> > ph.<xsl:value-of select="phone"/><br/> > fax.<xsl:value-of select="fax"/><br/> > > <xsl:template match="email"> > <a> > <xsl:attribute name="href"><xsl:value-of select="." > /></xsl:attribute> > <xsl:text><xsl:value-of select="." /></xsl:text> > </a> > </xsl:template> > > <xsl:template match="url"> > <a> > <xsl:attribute name="href"><xsl:value-of select="." > /></xsl:attribute> > <xsl:text><xsl:value-of select="." /></xsl:text> > </a> > </xsl:template> > > </p> > </xsl:template> > > > > Joshua Miller > Web Development > Eagle Technologies Group, Inc. > Business Solutions for the Next Generation > www.eagletgi.com > josh.miller@xxxxxxxxxxxx > > > 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Dillemma when creating an, Jeni Tennison | Thread | RE: [xsl] Microsoft CLR (was: XSLT , Adam Van Den Hoven |
RE: [xsl] XSLT 1.1 comments, Adam Van Den Hoven | Date | [xsl] regarding xsl:script, Rosa I-Ting Cheng |
Month |