|
Subject: Re: [xsl] Generating JSP/JSTL From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 25 Apr 2007 11:53:24 +0200 |
It's not possible with pure XSLT to generate XML that isn't namespace-well-formed (for example, XML that uses a namespace prefix that isn't declared). Does JSP/JSTL really require that?
Your best bet for achieving this output is to do some non-XSLT post-processing of the XSLT result tree, for example generate the element names as c_choose and then post-process to convert that to c:choose. You could do that easily enough by sending the transformation output to a SAXResult.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:f = "http://functions" exclude-result-prefixes="#all" version="2.0">
<xsl:character-map name="non-wellformed">
<xsl:output-character character="" string="<"/>
<xsl:output-character character="" string=">"/>
</xsl:character-map>Cheers, -- Abel Braaksma
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Generating JSP/JSTL, Joe Dane | Thread | RE: [xsl] Generating JSP/JSTL, Michael Kay |
| [xsl] output Entity, jingjun long | Date | Re: [xsl] output Entity, Jeff Sese |
| Month |