[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hddm/xalan question



Mark,

Your simple.hddm example is missing an important tag in the document 
(HDDM) element.  It needs to look like <HDDM class="whatever" 
version="N.M" xmlns="http://www.gluex.org/hddm">.  You can look at 
examples like hitexam.xml in the hddm directory in subversion.  Without 
that xmlns tag, your tags will not show up in the namespace of the 
target document, so they will not be included in the schema.

I have updated the index.html file in the hddm subversion directory to 
reflect this requirement.  I will also update the document on docdb.

Richard Jones

Mark M. Ito wrote:
> Richard,
>
> I'm running hddm-schema on a plain-text hddm template file (or at 
> least what I think is one) and the output (on standard output) has no 
> imprint of the input template file, i. e., the output is just the hddm 
> bits and not the user defined bits, i. e. again, the output is 
> independent of the input. Here is the input template, the contents of 
> "simple.hddm":
>  =========begin cut here==============
> <?xml version="1.0"?>
> <HDDM class="example" version="1.0">
> <toplevel value="string" index="int">
> <midlevel value="string" index="int" minOcuurs="0" maxOccurs="unbounded">
> <bottomlevel value="string" index="int" minOcuurs="0" 
> maxOccurs="unbounded" />
> </midlevel>
> </toplevel>
> </HDDM>
>  =========end cut here============
> and here is the command I am using:
>
>  hddm-schema simple.hddm
>
> hddm-schema.xsl exists in the local directory (as a soft link). I am 
> using xalan-c as installed on my Fedora 9 box as part of the 
> distribution. Note that xerces-c is also installed (it is a dependency 
> for xalan-c).
>
> I tried the event.hddm example from GlueX Note 65 and got identical 
> results.
>
> My best guess is that I am not thinking about this correctly. Guidance 
> please?
>
>  -- Mark
>
>