D
daz_oldham
Hi All
I am re-visiting XSLT after not touching it for about three years, so
to be honest I am starting myself from scratch.
If I have XML under the namespace "http://tempuri.com/abc/2002/09",
should I declare this at the top of my XSLT?
Additionally, if I have the following XML:
<myxmlroot xmlns="http://tempuri.com/abc/2002/09">
<header somevalue="" anotherval="" />
<mainbody>
<repeateditem id="0">Zero</repeateditem>
<repeateditem id="1">One</repeateditem>
<repeateditem id="2">Two</repeateditem>
</mainbody>
</myxmlroot>
Where am I going wrong in my XSLT?
<xsl:for-each select="/myxmlroot/mainbody">
Loop<br />
</xsl:for-each>
That doesn't seem to give me any output - hence my question about the
namespace.
Many thanks
Darren
I am re-visiting XSLT after not touching it for about three years, so
to be honest I am starting myself from scratch.
If I have XML under the namespace "http://tempuri.com/abc/2002/09",
should I declare this at the top of my XSLT?
Additionally, if I have the following XML:
<myxmlroot xmlns="http://tempuri.com/abc/2002/09">
<header somevalue="" anotherval="" />
<mainbody>
<repeateditem id="0">Zero</repeateditem>
<repeateditem id="1">One</repeateditem>
<repeateditem id="2">Two</repeateditem>
</mainbody>
</myxmlroot>
Where am I going wrong in my XSLT?
<xsl:for-each select="/myxmlroot/mainbody">
Loop<br />
</xsl:for-each>
That doesn't seem to give me any output - hence my question about the
namespace.
Many thanks
Darren