Re: [xslt] indentation problem and some related questions
- From: "Viktor Štujber" <theultramage gmail com>
- To: "The Gnome XSLT library mailing-list" <xslt gnome org>
- Subject: Re: [xslt] indentation problem and some related questions
- Date: Sun, 16 Nov 2008 20:31:36 +0100
> - get rid of unused namespaces by using exclude-result-prefixes on the stylesheet
> - if you create an element in a certain namespace, you can _not_ change the namespace later on as the namespace have become an integral part of the element.
I'm already using exclude-result-prefixes. Also, this is not an
"elements created in a certain namespace problem", I think.
Here's an example:
XML document:
<?xml version="1.0" encoding="UTF-8"?>
<my:entry xmlns:my="http://mynamespace.org/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="test.xsd">
<my:content xmlns="http://www.w3.org/1999/xhtml">
<h1>example data</h1>
<p>hello there</p>
<p>and one more</p>
</my:content>
</my:entry>
When I deep-copy the insides of this thing's <content> element, I get
something like this:
<h1 xmlns:my="http://mynamespace.org/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">example
data</h1>
<p xmlns:my="http://mynamespace.org/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">hello there</p>
<p xmlns:my="http://mynamespace.org/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">and one more</p>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]