I just figured out that your options don't work for me. In all xml files there's only one number and all these together need to be sorted. With your option numbers can only be sorted per xml file. If you change your example numbers to:
(note: I only changed two int's:
in data_01 I changed 2 > 5...
I didn't really understand what you ment, but I copied your examples and constructed the data_01/02 and data.xml and the xsl and tested all three options. The second and third one worked so I tried them on my one files, but didn't get it to work. Perhaps you can see whats wrong.
You can get the...
I finally was aible to test you options, but all three option gave back three dots in a row.
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" encoding="utf-8" />
<xsl:template match="/">...
I don't have to show you the xml, because for this problem that's almost exactly how my xml looks like. Only difference is that
<root>
<file>data_01</file>
<file>data_02</file>
</root>
looks like
<talents>
<talent>data_01</talent>
<talent>data_02</talent>
</talents>
and that I...
Already tried that. Stupid that I didn't post that example as well, here it is:
<xsl:template match="talents">
<xsl:for-each select="talent">
<xsl:variable name="talent" select="concat(.,'.xml')"/>
<xsl:apply-templates...
I'm trying to sort number data from multiple xml documents. I've tried a couple of possibilities like putting sort in a for-each loop and in a apply-templates. Every time the numbers come up, but the data won't sort.
Example:
<xsl:template match="talents">
<xsl:for-each select="talent">...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.