Subject: Re: [xsl] Dynamical work with child nodes From: Mike Trotman <mike.trotman@xxxxxxxxxxxxx> Date: Tue, 06 Apr 2004 15:19:27 +0100 |
Hi,
I have an XML file like this which contains results from a database query. Is there a way to go dynamically through the subelements of my "row" elements, because I want to use it for different queries. So the subelements like "id" or "name" might change.
<root> <rowset> <row> <id>1</id> <name>bla</name> </row> <row> <id>2</id> <name>blabla</name> </row>
...(more <row> elements)...
</rowset> </root>
This is how the xsl-file looks like now
... <xsl:for-each select="root/rowset/row"> ... <xsl:value-of select="id"/> ... <xsl:value-of select="name"/> ... </xsl:for-each> ...
What I imagine is the following : I want to get the number of subelements of a "row" element, then iterate over it to get the names, and then building it dynamical. Is something like that possible ?
Roland Juergens
-- Datalucid Limited 8 Eileen Road South Norwood London SE25 5EJ / tel :0208-239-6810 mob: 0794-725-9760 email: mike.trotman@xxxxxxxxxxxxx / UK Co. Reg: 4383635 VAT Reg.: 798 7531 60
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Dynamical work with child, Andrew Curry | Thread | Re: [xsl] Dynamical work with child, Mukul Gandhi |
RE: [xsl] Dynamical work with child, G. Ken Holman | Date | RE: [xsl] How to put space between , puja thakral |
Month |