schema querying?
While I know that schema awareness allows for matching of sub-types, leverage of default values defined in XSD, and a bunch of other things, I've recently his a problem which I would think is possible to solve, but I have no idea as to how it would be done in XSL...
If I have an input element that has a bunch of attributes, say:
<GeneralObject class="foo" displayName="" ...>
And from this element, I'm interested in creating an output element, say:
<foo displayName="" ...>
However, I only want to add attributes that are valid for the given output type, and I cannot restrict (fix) my input content. Is there a way to do a schema look-up to see if an attribute is valid for a given element before attempting to generate output? (In my example, assume that the schema for the foo element does not define an attribute named 'displayName'.)
Thanks,
John
'Every time I paint a floor without getting stuck in a corner, they throw me in a room with more corners and fewer doors.'
|