I want to create the following element:
<exercises xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="mySchema.xsd">
If I use something like this:
<xsl:element name="excercises"> <xsl:attribute name="xmlns:xsi" namespace="http://www.w3.org/2001/XMLSchema-instance"/>
Then it creates soemthing like this:
<excercises xp_0:xsi="" xmlns:xp_0="http://www.w3.org/2001/XMLSchema-instance">
Which doesn’t look like what I want…
Try the following instead:
The key concern is to declare the xsi namespace in the declaration.
I’ve just made up the template match on just to test.