I would like to do an xslt so that my output looks like:
<?xml version="1.0" encoding="UTF-8"?>
<output name="Test details">
<entry name="Test1" value="Test1"/>
<entry name="Test2" value="Test2"/>
<entry name="Test3" value="Test3"/>
<entry name="Test4" value="Test4"/>
<entry name="Test5" value="Test5"/>
</output>
I tried this xslt(test.xsl) but I get an empty xml file.
Subject:XSLT of XSD Author:(Deleted User) Date:10 Feb 2006 09:45 AM
Hi, Jen. You were correct to use namespaces and for-each loops, but you forgot to first define the xs element before using it. This and some other errors in your code sample should be corrected in the following snippet: