473,569 Members | 2,552 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XHTML Modularization: Creating XML schema for mixed custom tags andXHTML

I am trying to create XML schema of custom markup language, enriched
by XHTML. In simplified version, the XML documet could look like that:

xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocat ion="alarm-manual alarm-manual.xsd"
<h:p>Text ... <a:par-value name="myName"/... text </h:p>

In full version, the root element and document structure elements are
from custom namespace, the "formating" elements are from xhtml
namespace, and there are also some inline elements from custom

I've tried to create XML Schema based on http://www.w3.org/TR/xhtml-modularization
, however I do not know whether it is correctly done. I have created
two new xsd files:
XML Schema driver: amml.xsd
and custom module definition: amml-module.xsd
(both files see below, of course other XHTML schema files must be

Can someone with better knowledge of XML Schema and/or XHTML
modularization comment it?
Thanks a lot, regards, Martin

<!-- amml.xsd -->
targetNamespace ="http://www.w3.org/1999/xhtml"
xmlns:amml="ala rm-manual"
blockDefault="# all">
<xs:annotatio n>
<xs:documentati on>
This is the XML Schema driver for AMML
</xs:documentatio n>
namespace="http ://www.w3.org/XML/1998/namespace"
schemaLocation= "http://www.w3.org/2001/xml.xsd">
<xs:annotatio n>
<xs:documentati on>
This import brings in the XML namespace attributes
The XML attributes are used by various modules.
</xs:documentatio n>
schemaLocation= "xhtml11.xs d">
<xs:annotatio n>
<xs:documentati on>
Schema that includes original driver for XHTML 1.1
</xs:documentatio n>
schemaLocation= "xhtml11.xs d">
<xs:annotatio n>
<xs:documentati on>
Changes in XHTML 1.1 due to AML
</xs:documentatio n>
<xs:group name="xhtml.Inl ine.extra">
<xs:group ref="xhtml.Inli ne.extra"/>
<xs:group ref="amml:amml. par-value.export"/>

namespace="alar m-manual"
schemaLocation= "amml-module.xsd">
<xs:annotatio n>
<xs:documentati on>
Document Model module for the AMML
This schema file defines all named models used by AMML
</xs:documentatio n>

<!-- amml-module.xsd -->
elementFormDefa ult="qualified"
targetNamespace ="alarm-manual"
xmlns:html="htt p://www.w3.org/1999/xhtml"
<xs:annotatio n>
<xs:documentati on>
This module defines all elements and attributes of private Alarm
Manual ML.
</xs:documentatio n>

<!-- alarm-manual element-->
<xs:attributeGr oup name="amml.alar m-manual.attlist" >
<xs:attribute name="name" type="xs:string "/>
</xs:attributeGro up>
<xs:group name="amml.alar m-manual.content" >
<xs:annotatio n>
<xs:documentati on>
The root element of AMML.
</xs:documentatio n>
<xs:group maxOccurs="unbo unded" minOccurs="0"
ref="html:xhtml .Flow.mix"/>
<xs:complexTy pe name="amml.alar m-manual.type">
<xs:group ref="amml.alarm-manual.content"/>
<xs:attributeGr oup ref="amml.alarm-manual.attlist"/>

<!-- par-value element-->
<xs:attributeGr oup name="amml.par-value.attlist">
<xs:attribute name="name" type="xs:string "/>
</xs:attributeGro up>
<xs:group name="amml.par-value.content">
<xs:complexTy pe name="amml.par-value.type">
<xs:group ref="amml.par-value.content"/>
<xs:attributeGr oup ref="amml.par-value.attlist"/>

Jun 27 '08 #1
0 3351

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Peter Rohleder | last post by:
Hi, I have a few simple questions in order to use modularized xhtml and getting it to work. A simple example may make this obviouse: Lets say we want to create a simple xml-file to reflect a faq-structure.
by: Biblin | last post by:
Is there a way of allowing XHTML tags in an XML document without including them as #PCDATA? I have a DTD for my document but want to include the XHTML DTD as well to allow these extra tags. Can I do this and if so, how? Thanks.
by: Luke Dalessandro | last post by:
I have some XML data that has mixed content XML tags that embed XHTML tags, for instance: <note>Somebody wrote this note in XHTML and wanto to <a href="link.html" target="_new">link</a> to a particular tag, and was also pretty sure that they wanted the following <ul><li>two</li><li>items</li></ul> to appear as a list. To make matters worse...
by: Buford Early | last post by:
I read this in http://annevankesteren.nl/2004/12/xhtml-notes "A common misconception is that XHTML 1.1 is the latest version of the XHTML series. And although it was released a bit more than a year later then the first version of XHTML 1.0, the second edition is actually newer. Furthermore, XHTML 1.1 is not really the follow-up of XHTML...
by: Joris Janssens | last post by:
I'm trying to write a program for validating XHTML 1.1-documents against the XHTML 1.1 DTD (which is actually the same as validating an XML-file) but I always get a "(404) Not found" error. This is the program itself : ******************************************************************** using System; using System.Xml; using...
by: Alex D. | last post by:
How can I stop asp.net from rendering XHTML istead of HTML? My javascripts are rendering wrong because of that. It is rendering &amp; to clients instead of &. Any help? Thanks, Alejandro.
by: Peter C. Chapin | last post by:
Hello! I'm in the process of creating a schema for marking up my personal astronomical observations (yes, I know this has already been done; I'm not worried about that... this is a pet project). What I would like to do is introduce an <entry> element to enclose a log entry. I would like to include, as possible children of <entry> certain...
by: Kidogg | last post by:
Hi all, I'm attempting to write a validator for some email template files we use as part of our e-commerce application (incidentally in C#) and I've run into a problem as I'm not a huge user of XML. Essentially an email template can contain any valid XHTML, but also has tags such as <membershipcardheaderand <membershipcardfooterthat can...
by: C.W.Holeman II | last post by:
As K&R state the hardest part is getting a first instance to work. So I am looking for a "hello, world!" example for adding an additional element to an XHTML file. <html> <head><title>Hello, World</title> <body> <h1>Hello, World</h1> <myHello> <p>My hello.</p>
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.