Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Include Elements from other namespace in own XML

From: Benjamin Kalytta <bkausbk@---.-->
To: NULL
Date: 7/1/2007 3:32:00 PM

Hello,

I'm wondering if it is possible to include elements from other 
namespaces in own xml files.

My Schema file looks like:

[...]
  <xs:element name="string">
    <xs:complexType mixed="true">
      <xs:sequence minOccurs="0">
        <xs:any namespace="http://www.w3.org/1999/xhtml" 
processContents="strict" />
      </xs:sequence>
      <xs:attribute name="name" type="xs:string" use="required" />
    </xs:complexType>
  </xs:element>

Corresponding xml could be:

[...]
<string id="xyz">This is a <html:strong>test</html:strong></string>

You see, what I want is first to allow such xml tags within xml file and 
second transform it into corresponding <strong>.

If I use some XML DOM API like:

element = document.getElementbyId("xyz");

element should not contain of one textnode "This is a test" only, but it 
should contain the text node "This is a", and one child element 
"strong". Is this possible?

The document if loaded and validated would look like:

<string name="xyz">
    This is a
    <strong>
        test
    </strong>
</string>

Any Idea?

regards

Benjamin Kalytta


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent