473,568 Members | 2,964 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

xhtml in xml element

I guess this is a well asked question but it is tripping me up!

I'm putting a forum together allowing xhtml markup content. I am validating
against a schema but getting "Could not find schema information for element
<elementName>.. .

I would appreciate if anyone could advice where I am going wrong. TIA

Here's my xsd:

<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="Topics" targetNamespace ="http://www.test.com/Topics.xsd"
elementFormDefa ult="qualified"
xmlns:tes="http ://www.test.com/Topics.xsd"
xmlns="http://www.test.com/Topics.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="ForumTopi c">
<xs:complexType >
<xs:sequence>
<xs:element name="TopicID" type="xs:ID" minOccurs="1" maxOccurs="1" />
<xs:element name="MainThrea d" type="tes:Threa d" minOccurs="1"
maxOccurs="1" />
<xs:choice>
<xs:element name="SubThread s" minOccurs="0" maxOccurs="1">
<xs:complexType >
<xs:sequence>
<xs:element name="Receiving Replys" type="xs:boolea n" />
<xs:element name="SubThread " minOccurs="0" maxOccurs="unbo unded"
type="tes:Threa d" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="IsLockedT hread" type="xs:boolea n" fixed="true" />
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexTy pe name="OnDateTim e">
<xs:sequence>
<xs:element name="OnDate" type="xs:date" minOccurs="1" maxOccurs="1" />
<xs:element name="AtTime" type="xs:time" minOccurs="1" maxOccurs="1" />
</xs:sequence>
</xs:complexType>
<xs:complexTy pe name="Thread">
<xs:sequence>
<xs:element name="ThreadID" type="xs:ID" minOccurs="1" maxOccurs="1" />
<xs:element name="AuthorID" type="xs:string " minOccurs="1" maxOccurs="1"
/>
<xs:element name="Created" type="OnDateTim e" minOccurs="1" maxOccurs="1"
/>
<xs:element name="Modified" type="OnDateTim e" minOccurs="0" maxOccurs="1"
/>
<xs:element name="Subject" type="xs:string " minOccurs="1" maxOccurs="1"
/>
<xs:element name="Content" maxOccurs="1" minOccurs="1">
<xs:complexTy pe mixed="true">
<xs:sequence>
<xs:any maxOccurs="unbo unded" minOccurs="0"
namespace="http ://www.w3.org/1999/xhtml" processContents ="lax" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="ParentThr eadID" type="xs:string " use="required" />
</xs:complexType>
</xs:schema>
And here is my xml

<?xml version="1.0" encoding="utf-8" ?>
<tes:ForumTop ic xmlns:tes="http ://www.test.com/Topics.xsd"
xmlns:xh="http://www.w3.org/1999/xhtml">
<tes:TopicID>to pic2</tes:TopicID>
<tes:MainThre ad ParentThreadID= "topic2">
<tes:ThreadID>t hrd1</tes:ThreadID>
<tes:AuthorID>w olex</tes:AuthorID>
<tes:Created>
<tes:OnDate>200 4-11-08</tes:OnDate>
<tes:AtTime>10: 14:21</tes:AtTime>
</tes:Created>
<tes:Subject>Te st post</tes:Subject>
<tes:Content>
<xh:p>Par<xh:b> agr</xh:b>aph 1</xh:p>
<xh:p>Paragra ph 2</xh:p>
<xh:p>Paragra ph 3</xh:p>
</tes:Content>
</tes:MainThread>
<tes:SubThreads >
<tes:ReceivingR eplys>true</tes:ReceivingRe plys>
<tes:SubThrea d ParentThreadID= "thrd1">
<tes:ThreadID>t hrd2</tes:ThreadID>
<tes:AuthorID>w olex</tes:AuthorID>
<tes:Created>
<tes:OnDate>200 4-11-08</tes:OnDate>
<tes:AtTime>10: 19:32</tes:AtTime>
</tes:Created>
<tes:Subject>Yo ur post makes no sense</tes:Subject>
<tes:Content>
<xh:p>Paragra ph 1 is not right.</xh:p>
</tes:Content>
</tes:SubThread>
<tes:SubThrea d ParentThreadID= "thrd2">
<tes:ThreadID>t hrd3</tes:ThreadID>
<tes:AuthorID>A nonymous</tes:AuthorID>
<tes:Created>
<tes:OnDate>200 4-11-27</tes:OnDate>
<tes:AtTime>14: 17:09</tes:AtTime>
</tes:Created>
<tes:Subject>RE : Test</tes:Subject>
<tes:Content>
<xh:p><xh:b>Pol ice searches</xh:b></xh:p>
<xh:p>"We want justice done. Some one killed him and that person has to
be locked up." </xh:p>
<xh:p>Mr Taylor said he still found the loss of his son "difficult to
cope with". </xh:p>
<xh:p>Police said in October they had searched several Peckham homes the
previous month. </xh:p>
<xh:p>At the time Scotland Yard said it was confident the case would be
solved. </xh:p>
<xh:p>Mr Taylor said he hopes to pass on positive lessons learned from
his son's death to young people in London and to raise awareness among
children of the danger of carrying weapons. </xh:p>
<xh:p>However , he urged parents to take a stronger role in looking after
their children. </xh:p>
<xh:p>"From leaving home in the morning to when he comes back in the
evening because what the child does outside - [parents are] oblivious to
it," he said. </xh:p>
<xh:p>Dean of Southwark Colin Slee said police had done a lot of work in
the Peckham to improve safety. </xh:p>
<xh:p>"I think children feel safe when they are in school, both primary
and secondary, but it's when they are on the streets that there's a
difficulty." </xh:p>
</tes:Content>
</tes:SubThread>
<tes:SubThrea d ParentThreadID= "thrd3">
<tes:ThreadID>t hrd4</tes:ThreadID>
<tes:AuthorID>A nonymous</tes:AuthorID>
<tes:Created>
<tes:OnDate>200 4-11-27</tes:OnDate>
<tes:AtTime>14: 31:36</tes:AtTime>
</tes:Created>
<tes:Subject>RE : Test</tes:Subject>
<tes:Content>
<xh:p xmlns="">Differ ences Between HTML and XHTML<xh:br />
The &lt;blockquote& gt; tag is supposed to contain only block-level elements
within it, and not just plain text.</xh:p>
<xh:p xmlns="">To validate the page as strict XHTML, you must add a
block-level element around the text within the &lt;blockquote& gt; tag, like
this:</xh:p>
<xh:p xmlns="">&lt;bl ockquote&gt;<xh :br />
&lt;p&gt;her e is a long quotation here is a long quotation&lt;/p&gt;<xh:br
/>
&lt;/blockquote&gt;</xh:p>
<xh:p xmlns="">
</xh:p>
</tes:Content>
</tes:SubThread>
<tes:SubThrea d ParentThreadID= "thrd4">
<tes:ThreadID>t hrd5</tes:ThreadID>
<tes:AuthorID>A nonymous</tes:AuthorID>
<tes:Created>
<tes:OnDate>200 4-11-27</tes:OnDate>
<tes:AtTime>14: 43:50</tes:AtTime>
</tes:Created>
<tes:Subject>RE : Test</tes:Subject>
<tes:Content>
<xh:p xmlns="">
<xh:b>Parenta l problems</xh:b>
</xh:p>
<xh:p xmlns="">He too was confident the killer would be caught as
the "gap" between police and the community was changing for the better.
</xh:p>
<xh:p xmlns="">"I think ultimately the killers will be found."
</xh:p>
<xh:p xmlns="">He said the role of parents was the most important
aspect. </xh:p>
<xh:p xmlns="">"All of the head teachers that I speak to say that
they are fairly content with the security of the children in school and not
content with the way parents are behaving." </xh:p>
<xh:p xmlns="">He said children "are kicked out in the morning and
told to go to school by themselves in street that are quite dark", children
frequently return home to empty houses, or wander the streets, often in
groups "purely because they are bored".</xh:p>
</tes:Content>
</tes:SubThread>
<tes:SubThrea d ParentThreadID= "thrd5">
<tes:ThreadID>t hrd6</tes:ThreadID>
<tes:AuthorID>A nonymous</tes:AuthorID>
<tes:Created>
<tes:OnDate>200 4-11-27</tes:OnDate>
<tes:AtTime>14: 46:11</tes:AtTime>
</tes:Created>
<tes:Subject>RE : Test</tes:Subject>
<tes:Content>
<xh:p xmlns="">
<xh:b>Parenta l problems</xh:b>
</xh:p>
<xh:p xmlns="">He too was confident the killer would be caught as
the "gap" between police and the community was changing for the better.
</xh:p>
<xh:p xmlns="">"I think ultimately the killers will be found."
</xh:p>
<xh:p xmlns="">He said the role of parents was the most important
aspect. </xh:p>
<xh:p xmlns="">"All of the head teachers that I speak to say that
they are fairly content with the security of the children in school and not
content with the way parents are behaving." </xh:p>
<xh:p xmlns="">He said children "are kicked out in the morning and
told to go to school by themselves in street that are quite dark", children
frequently return home to empty houses, or wander the streets, often in
groups "purely because they are bored".</xh:p>
</tes:Content>
</tes:SubThread>
<tes:SubThrea d ParentThreadID= "thrd5">
<tes:ThreadID>t hrd6</tes:ThreadID>
<tes:AuthorID>A nonymous</tes:AuthorID>
<tes:Created>
<tes:OnDate>200 4-11-27</tes:OnDate>
<tes:AtTime>15: 12:06</tes:AtTime>
</tes:Created>
<tes:Subject>RE : Test</tes:Subject>
<tes:Content>
<xh:p>
<xh:img
src="http://newsimg.bbc.co. uk/media/images/40566000/jpg/_40566183_india _also66.jpg"
wole="4" />
</xh:p>
</tes:Content>
</tes:SubThread>
</tes:SubThreads>
</tes:ForumTopic>
Jul 20 '05 #1
6 2438
May I just add that I am only having problems with the xhtml elements inside
the Content node. Thanks.

"Wole Ogunremi" <wo************ *@SPAMntlworld. com> wrote in message
news:gs******** ******@newsfe5-win.ntli.net...
I guess this is a well asked question but it is tripping me up!

I'm putting a forum together allowing xhtml markup content. I am
validating
against a schema but getting "Could not find schema information for
element
<elementName>.. .

I would appreciate if anyone could advice where I am going wrong. TIA

Here's my xsd:

<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="Topics" targetNamespace ="http://www.test.com/Topics.xsd"
elementFormDefa ult="qualified"
xmlns:tes="http ://www.test.com/Topics.xsd"
xmlns="http://www.test.com/Topics.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="ForumTopi c">
<xs:complexType >
<xs:sequence>
<xs:element name="TopicID" type="xs:ID" minOccurs="1" maxOccurs="1" />
<xs:element name="MainThrea d" type="tes:Threa d" minOccurs="1"
maxOccurs="1" />
<xs:choice>
<xs:element name="SubThread s" minOccurs="0" maxOccurs="1">
<xs:complexType >
<xs:sequence>
<xs:element name="Receiving Replys" type="xs:boolea n" />
<xs:element name="SubThread " minOccurs="0" maxOccurs="unbo unded"
type="tes:Threa d" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="IsLockedT hread" type="xs:boolea n" fixed="true" />
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexTy pe name="OnDateTim e">
<xs:sequence>
<xs:element name="OnDate" type="xs:date" minOccurs="1" maxOccurs="1" />
<xs:element name="AtTime" type="xs:time" minOccurs="1" maxOccurs="1" />
</xs:sequence>
</xs:complexType>
<xs:complexTy pe name="Thread">
<xs:sequence>
<xs:element name="ThreadID" type="xs:ID" minOccurs="1" maxOccurs="1" />
<xs:element name="AuthorID" type="xs:string " minOccurs="1" maxOccurs="1"
/>
<xs:element name="Created" type="OnDateTim e" minOccurs="1" maxOccurs="1"
/>
<xs:element name="Modified" type="OnDateTim e" minOccurs="0"
maxOccurs="1"
/>
<xs:element name="Subject" type="xs:string " minOccurs="1" maxOccurs="1"
/>
<xs:element name="Content" maxOccurs="1" minOccurs="1">
<xs:complexTy pe mixed="true">
<xs:sequence>
<xs:any maxOccurs="unbo unded" minOccurs="0"
namespace="http ://www.w3.org/1999/xhtml" processContents ="lax" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="ParentThr eadID" type="xs:string " use="required" />
</xs:complexType>
</xs:schema>
And here is my xml

<?xml version="1.0" encoding="utf-8" ?>
<tes:ForumTop ic xmlns:tes="http ://www.test.com/Topics.xsd"
xmlns:xh="http://www.w3.org/1999/xhtml">
<tes:TopicID>to pic2</tes:TopicID>
<tes:MainThre ad ParentThreadID= "topic2">
<tes:ThreadID>t hrd1</tes:ThreadID>
<tes:AuthorID>w olex</tes:AuthorID>
<tes:Created>
<tes:OnDate>200 4-11-08</tes:OnDate>
<tes:AtTime>10: 14:21</tes:AtTime>
</tes:Created>
<tes:Subject>Te st post</tes:Subject>
<tes:Content>
<xh:p>Par<xh:b> agr</xh:b>aph 1</xh:p>
<xh:p>Paragra ph 2</xh:p>
<xh:p>Paragra ph 3</xh:p>
</tes:Content>
</tes:MainThread>
<tes:SubThreads >
<tes:ReceivingR eplys>true</tes:ReceivingRe plys>
<tes:SubThrea d ParentThreadID= "thrd1">
<tes:ThreadID>t hrd2</tes:ThreadID>
<tes:AuthorID>w olex</tes:AuthorID>
<tes:Created>
<tes:OnDate>200 4-11-08</tes:OnDate>
<tes:AtTime>10: 19:32</tes:AtTime>
</tes:Created>
<tes:Subject>Yo ur post makes no sense</tes:Subject>
<tes:Content>
<xh:p>Paragra ph 1 is not right.</xh:p>
</tes:Content>
</tes:SubThread>
<tes:SubThrea d ParentThreadID= "thrd2">
<tes:ThreadID>t hrd3</tes:ThreadID>
<tes:AuthorID>A nonymous</tes:AuthorID>
<tes:Created>
<tes:OnDate>200 4-11-27</tes:OnDate>
<tes:AtTime>14: 17:09</tes:AtTime>
</tes:Created>
<tes:Subject>RE : Test</tes:Subject>
<tes:Content>
<xh:p><xh:b>Pol ice searches</xh:b></xh:p>
<xh:p>"We want justice done. Some one killed him and that person has to
be locked up." </xh:p>
<xh:p>Mr Taylor said he still found the loss of his son "difficult to
cope with". </xh:p>
<xh:p>Police said in October they had searched several Peckham homes the
previous month. </xh:p>
<xh:p>At the time Scotland Yard said it was confident the case would be
solved. </xh:p>
<xh:p>Mr Taylor said he hopes to pass on positive lessons learned from
his son's death to young people in London and to raise awareness among
children of the danger of carrying weapons. </xh:p>
<xh:p>However , he urged parents to take a stronger role in looking after
their children. </xh:p>
<xh:p>"From leaving home in the morning to when he comes back in the
evening because what the child does outside - [parents are] oblivious to
it," he said. </xh:p>
<xh:p>Dean of Southwark Colin Slee said police had done a lot of work in
the Peckham to improve safety. </xh:p>
<xh:p>"I think children feel safe when they are in school, both primary
and secondary, but it's when they are on the streets that there's a
difficulty." </xh:p>
</tes:Content>
</tes:SubThread>
<tes:SubThrea d ParentThreadID= "thrd3">
<tes:ThreadID>t hrd4</tes:ThreadID>
<tes:AuthorID>A nonymous</tes:AuthorID>
<tes:Created>
<tes:OnDate>200 4-11-27</tes:OnDate>
<tes:AtTime>14: 31:36</tes:AtTime>
</tes:Created>
<tes:Subject>RE : Test</tes:Subject>
<tes:Content>
<xh:p xmlns="">Differ ences Between HTML and XHTML<xh:br />
The &lt;blockquote& gt; tag is supposed to contain only block-level
elements
within it, and not just plain text.</xh:p>
<xh:p xmlns="">To validate the page as strict XHTML, you must add a
block-level element around the text within the &lt;blockquote& gt; tag,
like
this:</xh:p>
<xh:p xmlns="">&lt;bl ockquote&gt;<xh :br />
&lt;p&gt;her e is a long quotation here is a long quotation&lt;/p&gt;<xh:br
/>
&lt;/blockquote&gt;</xh:p>
<xh:p xmlns="">
</xh:p>
</tes:Content>
</tes:SubThread>
<tes:SubThrea d ParentThreadID= "thrd4">
<tes:ThreadID>t hrd5</tes:ThreadID>
<tes:AuthorID>A nonymous</tes:AuthorID>
<tes:Created>
<tes:OnDate>200 4-11-27</tes:OnDate>
<tes:AtTime>14: 43:50</tes:AtTime>
</tes:Created>
<tes:Subject>RE : Test</tes:Subject>
<tes:Content>
<xh:p xmlns="">
<xh:b>Parenta l problems</xh:b>
</xh:p>
<xh:p xmlns="">He too was confident the killer would be caught as
the "gap" between police and the community was changing for the better.
</xh:p>
<xh:p xmlns="">"I think ultimately the killers will be found."
</xh:p>
<xh:p xmlns="">He said the role of parents was the most important
aspect. </xh:p>
<xh:p xmlns="">"All of the head teachers that I speak to say that
they are fairly content with the security of the children in school and
not
content with the way parents are behaving." </xh:p>
<xh:p xmlns="">He said children "are kicked out in the morning and
told to go to school by themselves in street that are quite dark",
children
frequently return home to empty houses, or wander the streets, often in
groups "purely because they are bored".</xh:p>
</tes:Content>
</tes:SubThread>
<tes:SubThrea d ParentThreadID= "thrd5">
<tes:ThreadID>t hrd6</tes:ThreadID>
<tes:AuthorID>A nonymous</tes:AuthorID>
<tes:Created>
<tes:OnDate>200 4-11-27</tes:OnDate>
<tes:AtTime>14: 46:11</tes:AtTime>
</tes:Created>
<tes:Subject>RE : Test</tes:Subject>
<tes:Content>
<xh:p xmlns="">
<xh:b>Parenta l problems</xh:b>
</xh:p>
<xh:p xmlns="">He too was confident the killer would be caught as
the "gap" between police and the community was changing for the better.
</xh:p>
<xh:p xmlns="">"I think ultimately the killers will be found."
</xh:p>
<xh:p xmlns="">He said the role of parents was the most important
aspect. </xh:p>
<xh:p xmlns="">"All of the head teachers that I speak to say that
they are fairly content with the security of the children in school and
not
content with the way parents are behaving." </xh:p>
<xh:p xmlns="">He said children "are kicked out in the morning and
told to go to school by themselves in street that are quite dark",
children
frequently return home to empty houses, or wander the streets, often in
groups "purely because they are bored".</xh:p>
</tes:Content>
</tes:SubThread>
<tes:SubThrea d ParentThreadID= "thrd5">
<tes:ThreadID>t hrd6</tes:ThreadID>
<tes:AuthorID>A nonymous</tes:AuthorID>
<tes:Created>
<tes:OnDate>200 4-11-27</tes:OnDate>
<tes:AtTime>15: 12:06</tes:AtTime>
</tes:Created>
<tes:Subject>RE : Test</tes:Subject>
<tes:Content>
<xh:p>
<xh:img
src="http://newsimg.bbc.co. uk/media/images/40566000/jpg/_40566183_india _also66.jpg"
wole="4" />
</xh:p>
</tes:Content>
</tes:SubThread>
</tes:SubThreads>
</tes:ForumTopic>

Jul 20 '05 #2


Wole Ogunremi wrote:

I'm putting a forum together allowing xhtml markup content. I am validating
against a schema but getting "Could not find schema information for element
<elementName>.. .

I would appreciate if anyone could advice where I am going wrong. TIA
Well how are you validating that document? Which XML parser are you
using, how are you using it?
When I save your files here locally and use the following JScript to
validate with MSXML 5 or MSXML 4

var xmlSchemaCache = new ActiveXObject(' Msxml2.XMLSchem aCache.5.0');
xmlSchemaCache. add('http://www.test.com/Topics.xsd',
'test2004112801 Xsd.xml');

var xmlDocument = new ActiveXObject(' Msxml2.DOMDocum ent.5.0');
xmlDocument.sch emas = xmlSchemaCache;

xmlDocument.asy nc = false;
var valid = xmlDocument.loa d('test20041128 01.xml');

then I get an error message
'Die ID 'thrd6' kommt doppelt vor.'
meaning the ID 'thrd6' is duplicated. And indeed looking into your
instance you have:
<tes:SubThrea d ParentThreadID= "thrd5">
<tes:ThreadID>t hrd6</tes:ThreadID>
<tes:AuthorID>A nonymous</tes:AuthorID>
<tes:Created>
<tes:OnDate>200 4-11-27</tes:OnDate>
<tes:AtTime>14: 46:11</tes:AtTime>
</tes:Created>
<tes:SubThrea d ParentThreadID= "thrd5">
<tes:ThreadID>t hrd6</tes:ThreadID>
<tes:AuthorID>A nonymous</tes:AuthorID>
<tes:Created>
<tes:OnDate>200 4-11-27</tes:OnDate>
<tes:AtTime>15: 12:06</tes:AtTime>
</tes:Created>


so that instance is not valid.

Also note that you shouldn't use the type xs:ID for element values, it
should only be used on attribute values to be compatible with the XML
1.0 specification and the XML DTD type ID. You can use xs:unique or
xs:key to define such element values as unique.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #3
Martin

Thanks for your reply. I am developing using Visual Studio .NET 2003. I'm
working within the XML designer.

You are right about the mixed up IDs but actually the xml I pasted here is
an edited subset of my data. The real file respects ID uniqueness, so that's
not the issue. But thanks for the point on not using xs:ID for elements.

The errors I get when I ask the designer to validate the file are all "Could
not find schema information for the element
'http://www.w3.org/1999/xhtml:b'" and similar for the other elements within
the Content node.

Hope you can see some sense in it. I will email you the full file if you
don't mind.

TIA
Wole

"Martin Honnen" <ma*******@yaho o.de> wrote in message
news:41******** *************** @newsread2.arco r-online.net...


Wole Ogunremi wrote:

I'm putting a forum together allowing xhtml markup content. I am
validating
against a schema but getting "Could not find schema information for
element
<elementName>.. .

I would appreciate if anyone could advice where I am going wrong. TIA


Well how are you validating that document? Which XML parser are you using,
how are you using it?
When I save your files here locally and use the following JScript to
validate with MSXML 5 or MSXML 4

var xmlSchemaCache = new ActiveXObject(' Msxml2.XMLSchem aCache.5.0');
xmlSchemaCache. add('http://www.test.com/Topics.xsd',
'test2004112801 Xsd.xml');

var xmlDocument = new ActiveXObject(' Msxml2.DOMDocum ent.5.0');
xmlDocument.sch emas = xmlSchemaCache;

xmlDocument.asy nc = false;
var valid = xmlDocument.loa d('test20041128 01.xml');

then I get an error message
'Die ID 'thrd6' kommt doppelt vor.'
meaning the ID 'thrd6' is duplicated. And indeed looking into your
instance you have:
<tes:SubThrea d ParentThreadID= "thrd5">
<tes:ThreadID>t hrd6</tes:ThreadID>
<tes:AuthorID>A nonymous</tes:AuthorID>
<tes:Created>
<tes:OnDate>200 4-11-27</tes:OnDate>
<tes:AtTime>14: 46:11</tes:AtTime>
</tes:Created>


<tes:SubThrea d ParentThreadID= "thrd5">
<tes:ThreadID>t hrd6</tes:ThreadID>
<tes:AuthorID>A nonymous</tes:AuthorID>
<tes:Created>
<tes:OnDate>200 4-11-27</tes:OnDate>
<tes:AtTime>15: 12:06</tes:AtTime>
</tes:Created>


so that instance is not valid.

Also note that you shouldn't use the type xs:ID for element values, it
should only be used on attribute values to be compatible with the XML 1.0
specification and the XML DTD type ID. You can use xs:unique or xs:key to
define such element values as unique.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #4


Wole Ogunremi wrote:

I am developing using Visual Studio .NET 2003. I'm
working within the XML designer.
I see, then you should post in a Visual Studio .NET group or .NET xml
group, I think you have done that already but if your particular problem
is with that tool then you should mention it so that people can help
that use that tool too.

I will email you the full file if you
don't mind.


No, let's take that to the proper newsgroup, there someone using that
tool can help.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #5
OK. Sorry I posted before getting your reply. Thanks for your help.

"Martin Honnen" <ma*******@yaho o.de> wrote in message
news:41******** *************** @newsread2.arco r-online.net...


Wole Ogunremi wrote:

I am developing using Visual Studio .NET 2003. I'm working within the XML
designer.


I see, then you should post in a Visual Studio .NET group or .NET xml
group, I think you have done that already but if your particular problem
is with that tool then you should mention it so that people can help that
use that tool too.

I will email you the full file if you don't mind.


No, let's take that to the proper newsgroup, there someone using that tool
can help.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #6
I don't immediately see anything wrong with your use of
wildcards/XHTML. Once the id problem already mentioned is patched,
and the namespaces are lined up, your instance [from this message]
validates without error with your schema [subsequent message], using
XSV [1]

ht

[1] http://www.ltg.ed.ac.uk/~ht/xsv-status.html
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Jul 20 '05 #7

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

Similar topics

0
1647
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.
1
2114
by: Gordon - Adelphia | last post by:
I have a question regarding xhtml. Why, why, why does the ELEMENT <body> allow “unblocked” text. HTML does not (though, most browsers will render). Xhtml (transitional) however allows text nodes (PCDATA). All of HTML 4, xhtml – transitional, and xhtml-strict allow <div> to contain “unblocked” text. Does anybody know why – I’m looking for the...
4
3056
by: Binesh Bannerjee | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi. In another thread, Martin Honnen <mahotrash@yahoo.de> wrote: > XHTML is XML so there is no problem to use it inside of an XML document e.g. > <root> > <description> > <p xmlns="http://www.w3.org/1999/xhtml">description goes here</p> > </description>
47
10270
by: Chuck | last post by:
Is there any logical reason why one should convert if css is already being used? What possible, immediate, benefit would there be? I am at a loss to see what, pragmatic, difference it would make.
2
473
by: Wole Ogunremi | last post by:
I guess this is a well asked question but it is tripping me up! I'm putting a forum together allowing xhtml markup content. I am validating against a schema but getting "Could not find schema information for element <elementName>... I would appreciate if anyone could advice where I am going wrong. TIA Here's my xsd:
12
2401
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.
2
1483
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...
11
2184
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...
3
1747
by: dantohester | last post by:
Hi there, I have the following situation: I want to create an XML document that contains 2 parts: a) a XHTML part (it can be either version 1.0 or 1.1 ) b) a non XHTML part that contains some information about the first part - like the location of that content or some other info on different constituents of the first part The elements...
0
7693
marktang
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...
0
7604
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...
0
7916
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8117
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7660
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7962
tracyyun
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...
0
6275
agi2029
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...
0
5217
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...
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.