Posted By:
Andrew_Borsz
Posted On:
Thursday, August 11, 2005 11:45 AM
I work in XSL with very large document-oriented XML structures, so it's usually difficult to show clear examples of the problems I run into. My trouble right now is applying templates of a node, based on it's attribute value. In my document, I'll have something like 'exampleElementA', with an attribute 'exampleAttributeA'. When I process 'exampleElementA', I want to apply the templates of an element (which I usually will not know the name of, and never know the position of) that occurs much further in the document, which almost always has a different element name and different attribute name, but the same attribute value. Is there a way to group elements solely on attribute values, regardless of element and attribute names? Is grouping (which I'm not so hot at
More>>
I work in XSL with very large document-oriented XML structures, so it's usually difficult to show clear examples of the problems I run into.
My trouble right now is applying templates of a node, based on it's attribute value. In my document, I'll have something like 'exampleElementA', with an attribute 'exampleAttributeA'. When I process 'exampleElementA', I want to apply the templates of an element (which I usually will not know the name of, and never know the position of) that occurs much further in the document, which almost always has a different element name and different attribute name, but the same attribute value.
Is there a way to group elements solely on attribute values, regardless of element and attribute names? Is grouping (which I'm not so hot at yet) even the method I want to use, or is this just a Xpath problem? Thanks for your help, and I'd be glad to expand on anything if needed. Have a good day.
<<Less