P
__PPS__
Hello, I'm newbe to xml/dtd (and probably I don't use all the termins
correctly). I'm writing an application that parses xhtml file with
custom elements and splits it into 2 parts - valid xhtml1.0 and a
script file.
basicly I have this:
....
<MYML:form action="">
<MYML:input type="text"> ... ...
</MYML:form>
....
then my parser searches for MYML:form transforms it to xhtml1:
<form action="">
<input type="text"> ... ...
</form>
and produces script that handles submition of this form.
I'm using xerces validating parser (is it a good choice?) and I want to
write a module to extend xhtml_1.0 dtd to include my custom element. I
read w3.ord TRs (Modularization of XHTML, w3schools tutorials and
others) but I still have some trouble.
My goal is to make sure that MYML dtd is superset of xhtml_1.0 - any
valid xhtml1 is also valid MYML document (when I followed examples on
the w3.org site I always have some troble - somtimes valid xhtml docs
don't validate against MYML dtd. For instance, I have problems with
<script ...> tag - it doesn't seem to be recognized anymore). The
second thing is that I want to make sure that my new MYML:form element
may appear only where XHTML:form element may appear and (if that's
possible) MYML:form could include HTML:input or MYML:input and so on
for other form elements (when a form element is used with MYML prefix
then there will be some extra code generated for this element). MYML
form elements (such as MYML:input) should have all the attributes from
the usual input element plus some extra MYML.attribs
It should be modular - I want to be able to make custom dtd's for all
xhtml1.0 dtd's (strict, transitional, frameset). From the beginning I
downloaded xhtml1-strict.dtd and tried to edit it to add the extra
attributes, then I would have to repeat the same task with other dtd's.
I gave up this aproach when I googled to Modularization of XHTML, which
seem to be a better solution.
If someone on this group knows something about
dtd/extending/modularization, please help me with this task (by an
advice, or a link to a good source on this subject)
Thank you
correctly). I'm writing an application that parses xhtml file with
custom elements and splits it into 2 parts - valid xhtml1.0 and a
script file.
basicly I have this:
....
<MYML:form action="">
<MYML:input type="text"> ... ...
</MYML:form>
....
then my parser searches for MYML:form transforms it to xhtml1:
<form action="">
<input type="text"> ... ...
</form>
and produces script that handles submition of this form.
I'm using xerces validating parser (is it a good choice?) and I want to
write a module to extend xhtml_1.0 dtd to include my custom element. I
read w3.ord TRs (Modularization of XHTML, w3schools tutorials and
others) but I still have some trouble.
My goal is to make sure that MYML dtd is superset of xhtml_1.0 - any
valid xhtml1 is also valid MYML document (when I followed examples on
the w3.org site I always have some troble - somtimes valid xhtml docs
don't validate against MYML dtd. For instance, I have problems with
<script ...> tag - it doesn't seem to be recognized anymore). The
second thing is that I want to make sure that my new MYML:form element
may appear only where XHTML:form element may appear and (if that's
possible) MYML:form could include HTML:input or MYML:input and so on
for other form elements (when a form element is used with MYML prefix
then there will be some extra code generated for this element). MYML
form elements (such as MYML:input) should have all the attributes from
the usual input element plus some extra MYML.attribs
It should be modular - I want to be able to make custom dtd's for all
xhtml1.0 dtd's (strict, transitional, frameset). From the beginning I
downloaded xhtml1-strict.dtd and tried to edit it to add the extra
attributes, then I would have to repeat the same task with other dtd's.
I gave up this aproach when I googled to Modularization of XHTML, which
seem to be a better solution.
If someone on this group knows something about
dtd/extending/modularization, please help me with this task (by an
advice, or a link to a good source on this subject)
Thank you