Subject: Re: [xsl] Another italic and bold issue From: Spencer Tickner <spencertickner@xxxxxxxxx> Date: Sat, 19 Mar 2005 14:25:03 -0800 |
Wow Antonio, Sometimes the best solutions are the simplest. Thanks a lot for the post, it's exactly what I was looking for! Cheers, Spencer On Sat, 19 Mar 2005 09:57:38 +0000, Antsnio Mota <amsmota@xxxxxxxxx> wrote: > I don't really understand your question, but try with > > <xsl:copy-of select="parttext"/> > > instead of > > <xsl:value-of select="parttext"/> > > On Fri, 18 Mar 2005 16:10:29 -0800, Spencer Tickner > <spencertickner@xxxxxxxxx> wrote: > > Hi everyone, thanks in advance for the help. I'm absolutely pulling my > > hair out. Here's my xml: > > > > <act> > > <section> > > <sectionnumber>1.42</sectionnumber> > > <sectiontext>This is section text this is <b>Bold</b></sectiontext> > > <part> > > <partnumber>1.2</partnumber> > > <parttext>This is parttext and <i>Italic</i> text</parttext> > > </part> > > <section> > > <sectionnumber>2</sectionnumber> > > <sectiontext>This is sectiontext</sectiontext> > > </act> > > > > Ok here's a snippet of my xsl: > > > > <xsl:template match="act"> > > <html> > > <body> > > <!--First I write my templates to handle my table of contents --> > > <xsl:apply-templates mode="toc"/> > > <!--Then I write my templates to handle my content --> > > <xsl:apply-templates/> > > > > <!-- I'll just include one example of my templates --> > > <xsl:template match="part" mode="toc"> > > <p><strong><xsl:value-of select="partnumber"/></strong><xsl:value-of > > select="parttext"/></p> > > <xsl:apply-templates/> > > > > <xsl:template match="text()" mode="toc"> > > </xsl:template> > > > > Ok, there you go. Now this solution does not show me the italic or > > bold I need. I know a lot of people have posted this question but none > > of the solutions seem to work for me. > > > > Wrapping the text in CDATA is ugly and produces < blah >. > > > > This, > > <xsl:template match="i"> > > <!-- and so on --> > > only ends up giving me a bunch of i's at the end of my part. > > > > I thought I found a solution with the match(element(name)), but my > > xslt doesn't seem to get it. > > > > Any help would be muchly appreciated. I'm using stylus studio if that helps. > > > > Spencer
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Another italic and bold i, António Mota | Thread | [xsl] [ANN] Saxon.NET 1.0 RC1 now a, M. David Peterson |
Re: [xsl] Can i use apply-templates, Aron Bock | Date | [xsl] Slightly OT: Formal XSD schem, Eliot Kimber |
Month |