[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to process a list of files
Shailesh, You have not received any answers to this question (nor to the last one with a different title, which is identical). Rather than just reposting, you should perhaps see if there is something with your mail, that makes it not answered. When I look at the input, the desired output, and the XSL that you give, there is absolutely no correlation between the XSL and the input/output. Taking one thing, a line like this - which is a solution to a question you asked some days previously - gives the impression that you do not read the answers that you are given: <xsl:value-of select="concat(substring-before(substring-after(@fileloc,'/xml/'),'.'),'.htm' )"/> A line like that would not in any way, given "A/gen1.xml" give you gen1.xml. The XSL also contains code that is not relevant to the problem, which 1) makes it harder to read, 2) gives the impression that you have only a small subset of the problem, and a solution to your question would not answer your real problem. As you ask your question, a solution would be: <xsl:template match="/"> <xsl:apply-templates select="Root"/> </xsl:template> <xsl:template match="Root"> <xsl:for-each select="file"/> <xsl:value-of select="substring-after(@fileloc,'A/')"/><xsl:text> </xsl:text> </xsl:for-each> </xsl:template> I suspect that this is not what you really want, but this is the answer to the question that you posed. Regards, Ragulf Pickaxe :-/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|