xsl-list
[Top] [All Lists]

[xsl] Generating JSP/JSTL

2007-04-24 10:03:04
Hello,

In the archives I found one with a similar problem:
http://www.biglist.com/lists/xsl-list/archives/200102/msg01662.html

Just to recap and to bring my problem to some attention: I want
to create a JSP with some JSTL for later processing on a application
server.

<?xml version="1.0"?>
<xsl:stylesheet 
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
        xmlns:c="http://java.sun.com/jsp/jstl/core";
        exclude-result-prefixes="c"
        version="2.0">

<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:template match="/">
<ul>
        <c:choose>
                foo
        </c:choose>
</ul>
</xsl:template>

The target document should look like 

<ul>
        <c:choose>
                foo
        </c:choose>
</ul>

But this it what it looks:

<ul>
        <c:choose xmlns:c="http://java.sun.com/jsp/jstl/core";>
                foo
        </c:choose>
</ul>

Is it possible to achieve the wanted result and omit the xmlns
declaration in each element?

Grüße,
 
Kai Weber

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>