On Apr 5, 2004, at 10:30 AM, Nils K�ster wrote:


Upps,

I tink my question was a little confusing, sorry about that!

I have:
+ xml-file:
<someparent>
  <somenode>
        TEXT TEXT<br/> TEXT <a href="http://somewhere";>LINK</a>
  </somenode>
</someparent>


+ xsl-template <xsl:value-of select="/someparent/somenode"/>


My output up to now is:
<html> ....

TEXT TEXT TEXT LINK

</html>


This is a basic XSLT question. The XSLT processor doesn't do what you expect it to "by defualt", i.e. when it finds no template to match a node. You need to include an "identity transformation", something like this:


        <xsl:template match="node() | @*">
                <xsl:copy>
                        <xsl:apply-templates select="node() | @*"/>
                </xsl:copy>
        </xsl:template>

HTH,
mark


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to