SV: [thelist] Namespace
Stevenson N
ngilas2003 at yahoo.com
Wed Dec 10 04:03:16 CST 2003
<><><><><><><><><><>><><><><>><><><><>><><><><>><><><><>
I'm not really sure what you want to achieve with your attribute element
so if you could post a more complete example then I might be able to
help you on that one because what you want to do seems to be perfectly
legal in XSLT1.0 (not in the way you tried though).
<><><><><><><><><><>><><><><>><><><><>><><><><>><><><><>
I want to dynamically generate a tree view. Find the example below:
-----------------------------------------------------------------------------------------------------
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<xsl:attribute name="xmlns:mytree"/>
<xsl:variable name="test" select="document( '../test.xml' )/"/>
<xsl:pi name="IMPORT">namespace="mytree" implementation="../treeviewDiv/treeview.htc"</xsl:pi>
<body bgcolor="#ffffff" onload="PopulateMyTreeView();">
<div style="position:absolute;top:0px;left:0px;overflow-Y:auto;overflow-X:auto;height:100%;width:110%;scrollbar-base-color:#D6D3CE;scrollbar-darkshadow-color:#ffffff;scrollbar-face-color:#D6D3CE;scrollbar-highlight-color:#D6D3CE;scrol#664;bar-track-color:#ffffff;unselectable:yes;">
<xsl:element name="mytree:treeview">
<xsl:attribute name="id">oTree</xsl:attribute>
</xsl:element>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
-----------------------------------------------------------------------------------------------------
on using
http://www.w3.org/1999/XSL/Transform
i get
The value of the 'name' attribute may not be 'xmlns:mytree'.
---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
More information about the thelist
mailing list