Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Transformation

From: Kniffel <kern@-------------.-->
To: NULL
Date: 5/15/2007 1:15:00 AM

Works so far.

But now I am trying to make an "<xsl:call-template>" call.

This Example with the normal <xsl:apply-templates /> is working:

XML:
<DLT>
    <Standardsprache Sprache="Deutsch" Datei="lang_german.xml" />
</DLT>

XSL:
<xsl:template match="/">
  <html><head></head><body>
    <xsl:apply-templates />
    <br />
 </body></html>
</xsl:template>

  <xsl:template match="Standardsprache">
    <h3><xsl:value-of select="name()"/>:</h3>
    <p>
      <xsl:for-each select="@*">
        attribute name: <xsl:value-of select="name()"/><br />
        attribute value: <xsl:value-of select="."/><br /><p>     </p>
      </xsl:for-each>
      <br /></p><br />
  </xsl:template>


Now I changed the
    <xsl:template match="Standardsprache">
TO
    <xsl:template name="Standardsprache">
And the Template call
    <xsl:apply-templates />
TO
    <xsl:call-template name="Standardsprache" />

But the only thing i get in the output is the ":" between the <h3>-
Tag!?
I tryed a lot with match/name/mode/ also with @/. but I only get an
output of my attributes with <xsl:templates match="Standardsprache">.
When I insert this: <xsl:value-of select="position()"/> I get in the
working part 14, and in the call-template-part 1!

Thanks in advance



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent