Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Multiple Elements >Thread Next - Re: Multiple Elements Re: Multiple ElementsTo: NULL Date: 6/1/2008 10:55:00 AM Michael.Ruehling@t... wrote: > Hi, > I've got another question. > My Code works fine now and I've tried some other functions. > XSLT-Code is now: > > > <!DOCTYPE BUCH [ That's the dtd not the XSLT, but I assume the xslt is similar to the code posted in the earlier thread. <H3> <xsl:value-of select="ZWISCHENUEBERSCHRIFT"/> </H3> the select="ZWISCHENUEBERSCHRIFT" does select all those elements but value-of (in xslt 1) just gives the string value of the first. When rendering a document structure to html as here normally you dont want to use for-each and value-of at all, but rather apply-templates, so that the output structure mirrors the input structure. so you don't need a template matching BUCH as you want the default processing there but you do want something like <xsl:template match="UEBERSCHRIFT"> <h1> <xsl:apply-templates/> <h1> </xsl:template> <xsl:template match="ZWISCHENUEBERSCHRIFT"> <h3> <xsl:apply-templates/> <h3> </xsl:template> <xsl:template match="TEXT"> <p> <xsl:apply-templates/> <p> </xsl:template> David -- http://dpcarlisle.blogspot.com | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
