Re: [xslt] Suppressing namespace attributes
- From: "Hans Guijt" <hg terma com>
- To: xslt gnome org
- Subject: Re: [xslt] Suppressing namespace attributes
- Date: Wed, 6 Jun 2007 18:51:29 +0200 (CEST)
Brett Zamir wrote:
>I believe you need to add the prefixes that you have on your match
>patterns to the "exclude-result-prefixes" attribute (white-space
>separated list) in <xsl:stylesheet> ....
Thanks for the quick response. I've tried adding that to the stylesheet
element, but that only moves the problem around, now I get:
<?xml version="1.0"?>
<section><para xmlns:ur="http://whatever.com">foo bar</para></section>
...so now the <section> element is fine, but the <para> elements gets the
xmlns:ns attribute. Am I doing something wrong here?
I guess <para> is assumed to be in the ur: namespace in the source
document (although it is not my intention for it to be). Can I mark it to
be in the default namespace, somehow?
Regards,
Hans Guijt
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]