 |
 |
 |
Hi tom tom,
I think you should also add a reference to that second XSLT file.
The whole chain of stylesheets needs to know that <help> resides in the
namespace xmlns="http://purl.org/rss/1.0/".
HTH,
<prs/>
-----Original Message-----
From: tom tom [mailto:tomxsllist@xxxxxxxxxxx]
Sent: Friday, October 01, 2004 11:15 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] unwanted xmlns="" attribute
Thankyou, this solves half of my problem.
However the included file is also included from a second XSLT file with
contains no existing namespace references. If I add
xmlns="http://purl.org/rss/1.0/" to <help> this renders as <help
xmlns="http://purl.org/rss/1.0/"/> - I do not want the attribute to appear
in the second file.
>From: "Michael Kay" <mike@xxxxxxxxxxxx>
>Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
>Subject: RE: [xsl] unwanted xmlns="" attribute
>Date: Fri, 1 Oct 2004 16:35:58 +0100
>
>When you say you don't want the xmlns="" to appear on the <help/>
>element, what you presumably mean is that you want the <help> element
>to be in the namespace "http://purl.org/rss/1.0/". The answer is to put
>it in that namespace, for example by writing it in the stylesheet as
>
><help xmlns="http://purl.org/rss/1.0/"/>
>
>Michael Kay
>http://www.saxonica.com/
>
>
> > -----Original Message-----
> > From: tom tom [mailto:tomxsllist@xxxxxxxxxxx]
> > Sent: 01 October 2004 15:47
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: [xsl] unwanted xmlns="" attribute
> >
> > In my including file I have:
> >
> > <xsl:template match="test">
> > <rdf:RDF xmlns="http://purl.org/rss/1.0/"
> > xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> > xmlns:dc="http://purl.org/dc/elements/1.1/">
> > <xsl:apply-templates select="." mode="testy"/>
> > </rdf:RDF>
> > </xsl:template>
> >
> > In my included file I have:
> >
> > <xsl:template match="test" mode="testy">
> > <help/>
> > </xsl:template>
> >
> > My output comes out as:
> >
> > <rdf:RDF xmlns="http://purl.org/rss/1.0/"
> > xmlns:dc="http://purl.org/dc/elements/1.1/"
> > xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
> > <help xmlns=""/>
> > </rdf:RDF>
> >
> >
> > I do not want the xmlns="" attribute to appear on the help element.
> > I have tried numerous permutations using the exclude-result-prefixes
> > on xsl:stylesheet to no avail. I am using MSXML 3. Can anyone
> > advise?
> >
> > _________________________________________________________________
> > Express yourself with cool new emoticons
> > http://www.msn.co.uk/specials/myemo
>
_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger
http://www.msn.co.uk/messenger
|
 | 

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |