xsl-list
[Top] [All Lists]

RE: I need Tags...

2003-01-15 07:27:55
Hi,

[snip]

I have follow xsl, but how can i show the tags with values in a HTML.

<?xml version="1.0" encoding="UTF-16"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0">
      <xsl:template match="/">
              <FONT FACE="Arial">
                      <xsl:apply-templates/>
              </FONT>

I take it you're trying to generate HTML? FONT element can't be the document 
element of an HTML document.

      </xsl:template>
      <xsl:template match="Config">
              <xsl:for-each select="NC_Gruppen/DE_TAB">
                      <br>
                              <I>
                                      <b>
                                              <u>
                                                      <xsl:value-of
select="VC_Name"/>
                                              </u>
                                      </b>
                              </I>
                      </br>

HTML BR element is EMPTY

                      <br/>
                      <xsl:for-each select="./DE_Abschnitt">
                              <br/>
                              <u>
                                      <TR>

HTML TR element cannot be the child of u element etc...

                                              <TD BGCOLOR="#F0F0F0">
                                                      <xsl:value-of
select="."/>
                                              </TD>
                                      </TR>
                              </u>
                              <br/>

Add the following here:

        <xsl:for-each select="following-sibling::DE_Textbox[1]/*">
          <xsl:value-of select="name()" /> = <xsl:value-of select="." />
          <br />
        </xsl:for-each>

Cheers,

Jarno - Delerium: Flowers Become Screens (Frequency Modulation mix)

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>