hmm, I'm still confused, but..
If you are using another namespace within the XSL file, you need to
declare it, Here is an example with the 'aws' namespace:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" exclude-result-prefixes="aws"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:aws="http://webservices.amazon.com/AWSECommerceService/2005-10-05">
<xsl:template match="/">
<xsl:apply-templates
select="aws:CartGetResponse/aws:Cart" />
</xsl:template>
<xsl:template match="aws:Cart">
<div id="cart">
<table>
<th/><th>quantity</th><th>total</th>
<xsl:apply-templates
select="aws:CartItems/aws:CartItem"/>
<td colspan="2"/><td><xsl:value-of
select="aws:SubTotal/aws:FormattedPrice"/></td>
</table>
<a class="button"
href="{aws:PurchaseURL}">proceed to checkout</a>
</div>
</xsl:template>
<xsl:template match="aws:CartItem">
<tr>
<td><xsl:value-of select="aws:Title"/></td>
<td><xsl:value-of select="aws:Quantity"/></td>
<td><xsl:value-of
select="aws:ItemTotal/aws:FormattedPrice"/></td>
</tr>
</xsl:template>
</xsl:stylesheet>
------------------------------
If you are using XSL only because you need to create templates, maybe
you should use JSP imports or custom tags?
Brian
On 7/12/07, grant_grant <[EMAIL PROTECTED]> wrote:
>
> Cool thanx. Well, basically I would like to make use of XSL to render
> the jsp page.By making use of the templates in XSL and apply-template,
> I can represent a bunch of markup using these templates. The end
> result is a xsl page that isnt cluttered. When I put the wall tags
> into the XSL, it says it couldnt compile the xsl. Its obvious it
> doesnt seem to recognize the custom wall taglib. I just wanted to know
> if there was way to actually get a JSP rendering with the wall tags or
> any custom taglib, for that matter. Maybe I'm just asking the
> impossible, barking up the wrong tree, or perhaps theres a better,
> different way/strategy to achieve the result? Open to ideas here :)
>
> regards
> dudley
>
> On Jul 11, 3:21 pm, "Brian Silberbauer" <[EMAIL PROTECTED]>
> wrote:
> > OK, I never new about WURFL and WALL, interesting.
> >
> > I'm still not 100% sure what you are actually, e.g. where is the XSLT
> > happening?
> >
> > From what I gather about wall, depending on your user agent (browser),
> > wall should generate a different output (WML, CHTML, XHTML, etc..). So
> > if you use you desktop browser to test, you should be getting XHTML
> > back.
> >
> > Are you using an XSLT file to convert the JSP page to something else??
> > Perhaps a drawing of what you are trying to achieve would help me.
> >
> > If you were converting the JSP page, the JSP page would first have to
> > be XML compliant: no <%@ tags, they would be
> > <jsp:directive.[directiveName]...
> > (http://ndpsoftware.com/JSPXMLCheatSheet.html). You would need to
> > include the XML namespace for wall as well.
> >
> > Brian
> >
> > On 7/11/07, grant_grant <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Thanx for the reponse. I dont think this is a Spring issue, so no
> > > problem there.
> > > Basically, this is the JSP I'm trying to get rendered using XSLT
> > > wall is just a taglib. I'm not getting any errors, as I've no idea how
> > > the xsl should look and even whether it will work :)
> >
> > > <%@ taglib uri="/WEB-INF/tld/wall.tld" prefix="wall"
> > > %><wall:document><wall:xmlpidtd />
> >
> > > <wall:head>
> > > <wall:title enforce_title="true">My Document</wall:title>
> > > <!--sent to all devices as it is -->
> > > <meta name="value" content="value" />
> > > </wall:head>
> > > <wall:body>
> > > <wall:block>
> > > UA :<wall:marquee><%= request.getHeader("User-Agent") %></
> > > wall:marquee>
> > > <wall:br />
> > > Body part 2
> > > </wall:block>
> > > </wall:body>
> > > </wall:document>
> >
> > > On Jul 11, 10:58 am, "Brian Silberbauer" <[EMAIL PROTECTED]>
> > > wrote:
> > > > Hi
> >
> > > > What sort of error are you getting?
> >
> > > > Are you using XSLT to generate the JSP? (else why would your custom
> > > > tags be in the XSL?)
> >
> > > > oh, and I know nothing about SpringMVC, so bare with me.
> >
> > > > Brian
> >
> > > > On 7/11/07, grant_grant <[EMAIL PROTECTED]> wrote:
> >
> > > > > Hi there,
> >
> > > > > Anyone had any experience with mixing XSLT, SPRINGMVC and custom
> > > > > taglibs?
> > > > > I managed to get the custom taglib working in SPRINGMVC, pretty
> > > > > straightforward. Now I'm trying to get a XSL page to render but XSLT
> > > > > doesnt like it when u mix taglibs in the XSL stylesheet. Anyone got
> > > > > any ideas or cool ways to work it?
> > > > > Appreciate any suggestions, thanx
> >
> > > > --
> > > > Brian Silberbauer
> > > > Consultant
> >
> > > > +27 (0)83 566 2705
> > > > skype: brian.silberbauer
> >
> > --
> > Brian Silberbauer
> > Consultant
> >
> > +27 (0)83 566 2705
> > skype: brian.silberbauer- Hide quoted text -
> >
> > - Show quoted text -
>
>
> >
>
--
Brian Silberbauer
Consultant
+27 (0)83 566 2705
skype: brian.silberbauer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CTJUG Tech" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.za/group/CTJUG-Tech?hl=en
-~----------~----~----~----~------~----~------~--~---