J
Jim Bancroft
Sorry for the basic nature of this question. I know XSL can do this, but I
don't recall a good method...
Say I have an xml structure like this:
<folder_structure>
<folder name="folder1">
<file name="myfile"/>
</folder>
<folder name="folder2">
</folder>
<folder name="folder3">
<file name="somefile"/>
<file name="anotherfile"/>
</folder>
<folder name="folder4">
<folder name="folder5">
<file name="newfile"/>
</folder>
</folder>
</folder_structure>
I need to use XSL to whip up a series of file paths, like this:
folder1\myfile
folder3\somefile
folder3\anotherfile
folder4\folder5\newfile
I'm having trouble with walking the subfolders; for instance, the
folder4\folder5 path above.
The file paths can be arbitrarily deep, and I'm stumped on how to create a
file <xsl:template> that recuruses up the tree and pulls all the parent
folder names. If you have any advice, I'd be grateful. Thanks.
don't recall a good method...
Say I have an xml structure like this:
<folder_structure>
<folder name="folder1">
<file name="myfile"/>
</folder>
<folder name="folder2">
</folder>
<folder name="folder3">
<file name="somefile"/>
<file name="anotherfile"/>
</folder>
<folder name="folder4">
<folder name="folder5">
<file name="newfile"/>
</folder>
</folder>
</folder_structure>
I need to use XSL to whip up a series of file paths, like this:
folder1\myfile
folder3\somefile
folder3\anotherfile
folder4\folder5\newfile
I'm having trouble with walking the subfolders; for instance, the
folder4\folder5 path above.
The file paths can be arbitrarily deep, and I'm stumped on how to create a
file <xsl:template> that recuruses up the tree and pulls all the parent
folder names. If you have any advice, I'd be grateful. Thanks.