|
Subject: Re: [xsl] super basic xsl question From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 13 Jan 2005 12:48:22 -0500 |
Then I thought fiddling with the 'select' expr in the value-of tag would do it, but I can't figure out if there's a magical combination of XPath slang that means, "whatever the hell is below here, be it tags or text, i want them".
source: <xmlroot> <child>some text</child> <child><link href="">a link</link> to something</child> </xmlroot>
result: <ul> <li>some text</li> <li><a href="">a link</a> to something</li> </ul>
try:
<xsl:template match="xmlroot">
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template><xsl:template match="child">
<li>
<xsl:apply-templates/>
</li>
</xsl:template><xsl:template match="link">
<a href="{@href}">
<xsl:apply-templates/>
</a>
</xsl:template>Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] super basic xsl question, Jeb Boniakowski | Thread | Re: [xsl] super basic xsl question, Jeb Boniakowski |
| Re: [xsl] msxml apostrophe encoding, Colin Paul Adams | Date | Re: [xsl] super basic xsl question, Jeb Boniakowski |
| Month |