SV: SV: [thelist] Namespace

Marcus Andersson marcan at
Wed Dec 10 05:20:32 CST 2003

I would do like the following to get (what I guess) your target output:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" 

<xsl:template match="/">
    <xsl:variable name="test" select="document( '../test.xml' )/"/>

    <xsl:processing-instruction name="IMPORT">

    <body bgcolor="#ffffff" onload="PopulateMyTreeView();">
        <mytree:treeview id="oTree"/>


I have removed usage of the xsl:element and xsl:attribute since I think
it's much simpler to do like I did here. Note also that I declared
mytree as a prefix in the stylesheet element which gives me the
possibility to use it everywhere in the stylesheet (without additional
declarations). The XSLT processor will then put it wherever needed in
the output document. You would also need to change how you create your
PI according to the example I provided.


More information about the thelist mailing list