June 4, 200916 yr MY XML structure looks like this: xmeml/bin/children/bin/children/clip bin/children is repreated because items exists in a folder (or bin), which exists inside another folder (or bin). Sometimes the path is "bin/children/clip" anbd sometimes it will be "bin/children/bin/children/bin/children/clip" is there anyway of doing this that will allow me to use one stylesheet for these different variations?
June 4, 200916 yr Author clarification: is there a way of writing the XSLT so it knows to look inside of any "bin" or "children" tiers so I don't have to continually open my XML and figure out how many folders deep the XSLT needs to be.
June 4, 200916 yr I still don't know what's the purpose of the stylesheet. If you only want to select all clip elements, no matter where they are in the document hierarchy, you could use this path expression: //clip If that's not what you need, please elaborate.
June 4, 200916 yr Author ok. here's an example of my stylesheet: <?xml version='1.0' encoding='UTF-8' ?> 0 and here are 2 XMLs. Notice that there is one more folder level on number 2. #1: ?xml version="1.0" encoding="UTF-8"?> 9F8005E8-25F1-4178-B133-C04DD9EA6998 add SCENE_04 3B4C5EFC-CD7A-401C-BF82-33DF06FB1D86 add 0008ZD #2 ?xml version="1.0" encoding="UTF-8"?> F27341D8-63C8-433E-9328-FEA0DE738017 add ACT_1 7CB39BA5-B35A-4ED6-8B0B-ABFCE7F36C2E add *SCENE_X* I am wondering if I can write something into my XSLT so that the NUMBER of folders becomes irrelevant because at some point the "BIN/CHILDREN" structure yields to "clip", and that will always be the case. the variable is how deep the items are embedded within the folders. Am I making any better sense of this?
June 4, 200916 yr Author so I used: and that appears to have worked. Without xmexl it doesn't work. does that sound right?
June 4, 200916 yr so I used: and that appears to have worked. Without xmexl it doesn't work. does that sound right? No, I believe that: should work just as well. But since xmeml is the root element, it comes down to the same thing.
Create an account or sign in to comment