![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Transformation >Thread Next - Re: Transformation Re: TransformationTo: 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
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
