[XML-SIG] Stripping a namespace

Douglas Bates bates@stat.wisc.edu
18 Jun 2002 17:27:08 -0500

Thanks again for the replies to my earlier question about a deep copy
of an element into another document.

I have another complication with this operation.  The element that I
am copying has an xmlns attribute defined and this is propagated when I
copy the children.  In the new document I end up with

<i xmlns='http://purl.org/dc/elements/1.1/'>S</i>

and I want only


I'm not sure of the terminology but I think this is a result of the original
document defining a default namespace in the enclosing element.  I am
copying the description element from a "Dublin Core" element like

<dc xmlns="http://purl.org/dc/elements/1.1/" xsi:schemaLocation="http://purl.org/dc/elements/1.1/ http://www.openarchives.org/OAI/1.1/dc.xsd" >
   <title>On the infinite cluster of Bernoulli bond percolation in Scherk's graph </title>
   <creator>Chen, Dayue</creator>
   <subject>60J15 (MSC2000)</subject>
   <subject>60K35 (MSC2000)</subject>
   <subject>Bernoulli bond percolation </subject>
   <subject>Scherk's graph </subject>
   <subject>transience </subject>
   <description>Scherk's graph is a subgraph of the three-dimensional lattice. It was shown by Markvorsen, McGuinness and Thomassen (1992) that Scherk's graph is transient. Consider the Bernoulli bond percolation in Scherk's graph. We prove that the infinite cluster is transient for <i>p</i> &gt; &#194;&#189; and is recurrent for <i>p</i> &lt; &#194;&#189;. This implies the well-known result of Grimmett, Kesten and Zhang (1993) on the transience of the infinite cluster of the Bernoulli bond percolation in the three-dimensional lattice for <i>p</i> &gt; &#194;&#189;. On the other hand, Scherk's graph exhibits a new dichotomy in the supercritical region.</description>
   <publisher>The Applied Probability Trust</publisher>
   <date>2001-12 (Issued)</date>
   <identifier>Citation: J. Appl. Probab. 38 (2001), no. 4, 828-840</identifier>
   <rights>Copyright 2001 The Applied Probability Trust</rights>