* exit XML suing .xsd schema
@ 2014-05-19 21:24 Grant Edwards
2014-05-19 22:00 ` Grant Edwards
0 siblings, 1 reply; 2+ messages in thread
From: Grant Edwards @ 2014-05-19 21:24 UTC (permalink / raw)
To: help-gnu-emacs
I need to create/edit some XML files for which I have .xsd schema
files. nxml-mode seems to the preferred way to edit XML in emacs, but
nxml-mode only understands the .rnc schema language.
The general advice seems to be to use rngconv for .xsd->.rng and then
trang for .rng->.rnc.
I was able to convert from .xsd -> .rng using rngconv-20060319, but
the convertion from .rng->.rnc fails:
$ java -jar /home/grant/rngconv-20060319/rngconv.jar asdf.xsd > asdf.rng
$ trang asdf.rng asdf.rnc
/home/nextgen/profinetio/schema/asdf.rng:1112:65: error: "any(lax:##any)" is not a valid local name
/home/nextgen/profinetio/schema/asdf.rng:1213:60: error: "any(lax:##other)6" is not a valid local name
/home/nextgen/profinetio/schema/asdf.rng:1220:37: error: "any(lax:##other)" is not a valid local name
/home/nextgen/profinetio/schema/asdf.rng:1237:59: error: "any(lax:##other)" is not a valid local name
/home/nextgen/profinetio/schema/asdf.rng:1255:35: error: "any(lax:##any)" is not a valid local name
[...]
/home/nextgen/profinetio/schema/asdf.rng:2661:55: error: "any(lax:##other)" is not a valid local name
/home/nextgen/profinetio/schema/asdf.rng:2844:56: error: "any(lax:##other)3" is not a valid local name
/home/nextgen/profinetio/schema/asdf.rng:2874:38: error: "any(lax:##other)8" is not a valid local name
/home/nextgen/profinetio/schema/asdf.rng:2891:60: error: "any(lax:##other)8" is not a valid local name
/home/nextgen/profinetio/schema/asdf.rng:2952:38: error: "any(lax:##other)9" is not a valid local name
/home/nextgen/profinetio/schema/asdf.rng:2969:60: error: "any(lax:##other)9" is not a valid local name
So am I just plain SOL?
If nxml isn't going to be useful, what other XML editor is
recommended for an emacs user?
[Have I mentioned yet how much I hate and despise XML and anything
associated with it?]
--
Grant Edwards grant.b.edwards Yow! Thousands of days of
at civilians ... have produced
gmail.com a ... feeling for the
aesthetic modules --
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: exit XML suing .xsd schema
2014-05-19 21:24 exit XML suing .xsd schema Grant Edwards
@ 2014-05-19 22:00 ` Grant Edwards
0 siblings, 0 replies; 2+ messages in thread
From: Grant Edwards @ 2014-05-19 22:00 UTC (permalink / raw)
To: help-gnu-emacs
On 2014-05-19, Grant Edwards <invalid@invalid.invalid> wrote:
> I need to create/edit some XML files for which I have .xsd schema
> files. nxml-mode seems to the preferred way to edit XML in emacs, but
> nxml-mode only understands the .rnc schema language.
Yow, did I butcher the subject line in my OP.
> $ trang asdf.rng asdf.rnc
> /home/nextgen/profinetio/schema/asdf.rng:1112:65: error: "any(lax:##any)" is not a valid local name
> /home/nextgen/profinetio/schema/asdf.rng:1213:60: error: "any(lax:##other)6" is not a valid local name
> /home/nextgen/profinetio/schema/asdf.rng:1220:37: error: "any(lax:##other)" is not a valid local name
I went through the .rng file and changed those names like this:
"any(lax:##other)6" -> "any_other_6"
That seems to have made trang happy and nxml seems to be verify files
(mostly) using the resulting .rnc.
--
Grant Edwards grant.b.edwards Yow! Why are these athletic
at shoe salesmen following
gmail.com me??
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-19 22:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-19 21:24 exit XML suing .xsd schema Grant Edwards
2014-05-19 22:00 ` Grant Edwards
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.