This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Generating namespace nodes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]