This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Generating namespace nodes
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Generating namespace nodes
- From: Francis Norton <francis at redrice dot com>
- Date: Tue, 04 Sep 2001 10:22:13 +0100
- References: <NEBBKEMADKBBCJEIPGBJEEOPCFAA.norbert.hranitzky@mch20.sbs.de>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Interesting - in what way does ASP.NET not like it? And have you tried
generating output as XML?
Francis.
Norbert Hranitzky wrote:
>
> I have the following problem:
>
> The XML file has th form:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <pageTemplate
> xmlns:xscap="urn:xscap">
> <main>
> <xscap:wc id="e1"/>
> </main>
> </pageTemplate>
>
> The XSLT stylesheet does not know which elements the element "main" contains,
> (the same is true for the namespaces used in these elements) it copies the
> content to the output. What I expect (more exactly ASP.NET) is:
>
> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xscap="urn:xscap>
> ...
> <span>
> <xscap:wc id="e1" />
> </span>
> ...
> </html>
>
> The problem is, xsl:copy-of creates an namespace node in the element xscap:wc, but
> ASP.NET does not like it.
>
> Are there any tricks to generate the expected output?
>
> Thanks
> Norbert
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list