freelanceprogrammers.org Forum Index » XML / XSL
Re: inquiry
Joined: 13 Jun 2003
Posts: 5
Re: inquiry
Your content model only allows <command/> elements to occur within <step/>s
and your first <step/> contains a <command/> followed by a <parameter/>.
You should also remove the second `+` from the content model for <step/>.
> -----Original Message-----
> From: calvin wang [mailto:calvinwangxi@...]
> Sent: Friday, June 20, 2003 6:27 AM
> To: xml-doc@yahoogroups.com
> Subject: [xml-doc] inquiry
>
>
> Sorry if my question is too newby but I have been
> checking the dtd and the xml file and honestly
> speaking I am do not see the error....
> I only need to capture some parameters for some
> command line programs. the GUIs are created, they
> capture all the information. now I want to capture
> that info in to an xml file, where the command,
> parameters and sequence of commands be sotrred. By
> seqeunce of commands just think as it is a seuqence of
> steps. this is my dtd file:
>
> <!-- edited with -->
> <!-- DTD for pipe descriptions
> <pepe@...>
> -->
> <!ENTITY % word "CDATA">
> <!ENTITY % number "CDATA">
> <!ENTITY % boolean "CDATA">
> <!ELEMENT pipe_pipe (description*, step+)>
> <!ELEMENT description (#PCDATA)>
> <!ELEMENT step (command+)+>
> <!ELEMENT command (parameter*)>
> <!ELEMENT parameter (name, set_value+)>
> <!ELEMENT name (#PCDATA)>
> <!ELEMENT set_value (#PCDATA)>
> <!ATTLIST command
> name CDATA #REQUIRED
> identifier ID #REQUIRED
> cmdref IDREFS #REQUIRED
> >
>
> The xml file is:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE pipe_pipe SYSTEM "C:jjjpipe2.dtd">
> <pipe_pipe>
> <description>EXAMPLE</description>
> <step>
> <command name="runone" identifier="a" cmdref="b"/>
> <parameter>
> <name>command1</name>
> <set_value>fa</set_value>
> </parameter>
> </step>
> <step>
> <command name="runtwo" identifier="b" cmdref="c d"/>
> </step>
> <step>
> <command name="runfour" identifier="c" cmdref="c"/>
> <command name="runfive" identifier="d" cmdref="d"/>
> </step>
> </pipe_pipe>
>
>
> I am getting an error msg that is:
>
> Mandatory element command placed instead of
> parameter...
> sorry but I do not see it.... the element command is
> defined, and the rest is done acording to the dtd
> file.. can some one give me an input.. please it is my
> first time with dtd and xml files.. so far I had used
> basictly txt files..
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> -------------------------------------------------------------------
> Post a message: mailto:xml-doc@yahoogroups.com
> Unsubscribe: mailto:xml-doc-unsubscribe@yahoogroups.com
> Switch to digest: mailto:xml-doc-digest@yahoogroups.com
> Put mail on hold: mailto:xml-doc-nomail@yahoogroups.com
> Contact adminstrator: mailto:xml-doc-owner@yahoogroups.com
> Make changes via Web: http://groups.yahoo.com/subscribe/xml-doc/
> Read archived messages: http://groups.yahoo.com/messages/xml-doc/
> -------------------------------------------------------------------
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







