Sub-elements and namespaces in XSD?

It just seems a bit funny first looking at it. – Paul Fisher Jun 22 '09 at 18:54 You could just as easily specify the 'activity' element inside of the 'fun' element (instead of using the 'ref' attribute): However, if your schema becomes more complex you may prefer breaking up the definitions as above. Both methods are "right/accepted".

– Adam Bernier Jun 22 '09 at 19:34 But then if I do what you suggest in this comment, it breaks again, with the same error message as before. I'm utterly puzzled. And I feel like I'm missing something fundamental.

– Paul Fisher Jun 22 '09 at 20:59 1 Add elementFormDefault="qualified" to your schema element () and you should be good to go. – Adam Bernier Jun 22 '09 at 21:22 Mr. Bernier: ONE (1) INTERNET TO YOU. – Paul Fisher Jun 22 '09 at 21:23.

The function currently cannot dynamically set the namespaces in the sample instance. Any assistance in getting this to work would be much appreciated. The function requires that the xsd file use the xs namespace prefix (i.e.

Attempts to use a wildcard prefix in the xpath statements did not work for some reason (i.e. An alternative approach is to determine the prefix, assign it to a variable and then concatenate it to all the xpath statements (e.g. $xsdFile/concat($prefix,':schema/',$prefix,'element') but that makes for some pretty ugly code. Another alternative is to use another function to reset whatever the xsd file prefix is to xs.

This does work fine but adds a bit more code. Any more efficient alternative suggestions would be welcome. The function uses two internal queries assigned to variables, $subElementsQuery and $attributesQuery, and then called using util:eval.

This enables the recursive collection sub-elements and attributes without having to call an external function. These two queries could just has easily been declared as external functions.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions