qexo-general
[Top][All Lists]
Advanced

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

Re: [Qexo-general] problem with namespace and multiple document


From: Per Bothner
Subject: Re: [Qexo-general] problem with namespace and multiple document
Date: Tue, 07 Jan 2003 18:38:49 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021202

address@hidden wrote:
1) I would like to unify data contained in two xml document into a single
file ...
Is it possible to reassemble this two files into one, and to have a single
prefix for http://www.opengis.net/gml ?

I can't off-hand think of a way to do it in the current implemention,
except by brute-force replacing all the elements:

define function convert-children ($x) {
  for $y in $x/node() return convert-node($y)
}

define function convert-node ($x) {
  typeswitch ($x) {
    case element geo:description
      return <gml:description>{convert-children($x)}</gml:description>
    ...
  }
}

This is an open area in the XQuery specification.

2) I write a consumer who must know the prefix name for a namespace, Is it
possible ?

See my previous reply.
--
        --Per Bothner
address@hidden   http://www.bothner.com/per/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]