Subject: RE: JSP Tag library .tld files to HTML: DOCTYPE mangles it...
From: "Jon Archer" <jon@xxxxxxxxxxxxxx>
Date: Tue, 19 Nov 2002 11:49:48 -0700
|
Thanks Paul, it was more or less that, except the stylesheet wasn't built
for any particular version as opposed to being built for a specific but
different to that which I was using. I change my <xls:stylesheet ... > to
this
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:tld="http://java.sun.com/JSP/TagLibraryDescriptor"
>
and updated the stylesheet like (for example) <xsl:template
match="tld:taglib"> and all works wonderfully.
Cheers,
Jon
>
> > From: Jon Archer [mailto:jon@xxxxxxxxxxxxxx]
> > Has anyone else been here before and found an answer?
>
> I you look in the JSP 1.2 taglib DTD, you'll find:
>
> <!ATTLIST taglib id ID #IMPLIED
> xmlns CDATA #FIXED
> "http://java.sun.com/JSP/TagLibraryDescriptor"
> >
>
> If you look in the JSP 1.1 taglib DTD, you'll find:
>
> <!ATTLIST taglib id ID #IMPLIED
> xmlns CDATA #FIXED
> "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"
> >
>
> and that means that there is a default xmlns attribute applied to
> the taglib element in each case.
>
> If the stylesheet was built for one version, it won't match the
> other -- because of the different namespaces.
>
> -- Paul
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|