Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

difference between xsl:element and..

Status
Not open for further replies.

Cruisy

Programmer
Oct 11, 2002
8
0
0
BE
what is the difference between using
<xsl:element name=&quot;tagname&quot;>
...
</xsl:element>

and

<tagname>
...
</tagname>

I ask this because i get different outputs from these usages.

help would be much appreciated [thumbsup2]
 
so if i want to overide the default xsl namespace i not should use :

<xsl:element name=&quot;xsd:schema&quot;>
<xsl:attribute name=&quot;xmlns:xsd&quot;>
</xsl:attribute>
...
</xslelement>

but use the short version?

<xsd:schema xmlns:xsd=&quot;
I try'd this and this works , but this gives alot more problems later on in my xsl.
for some reason is skips some tests when i don't use the xsl:element tag.. (have not found out why)

is there no way in overriding the default namespace while using xsl:element? I'm using the Xalan parcer and this parcer does just ignore the fact that i put :

<xsl:attribute name=&quot;xmlns:xsd&quot;>
</xsl:attribute>

it just uses the default (1999 namespace)
 
I would think that xsl:element gives you the ability to create dynamic tags, just like xsl:attribute creates dynamic attributes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top