[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Problems with sort.

Subject: Re: Problems with sort.
From: "Brian Burridge" <brian_burridge@xxxxxxxxxxxxx>
Date: Tue, 13 Jun 2000 16:41:37 -0400
xslt sort namespace error
Ok, I got it to work. I upgraded the version of my Xalan (I was using 1.0) and I
changed my namespace and now it's working great.

Thanks for all your help everyone, I greatly appreciate it.

Brian

Raimond Brookman wrote:

> Hi,
>
> Notice the difference in namespaces.... you are using:
> XSL Warning: Old XSLT Namespace: http://www.w3.org/XSL/Transform/1.0,
> Location
>
> And the namespace that should be used is
> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version
> > ="1.0">
>
> See both fragments lower in earlier messages...
>
> Grtz,
> Raimond
>
> ----- Original Message -----
> From: "Brian Burridge" <brian_burridge@xxxxxxxxxxxxx>
> To: <xsl-list@xxxxxxxxxxxxxxxx>
> Sent: Tuesday, June 13, 2000 5:40 PM
> Subject: Re: Problems with sort.
>
> I've done this, and I still get the same error:
>
> <xsl:template match="projects">
>   <xsl:variable name="sortType" select="'numeric'"/>
>   <xsl:apply-templates>
>    <xsl:sort select="*[name()=/PAGE/@sort]" data-type="{$sortType}"/>
>   </xsl:apply-templates>
>  </xsl:template>
>
> Again, the error is:
>
> XSL Warning: Old XSLT Namespace: http://www.w3.org/XSL/Transform/1.0,
> Location
> file:/app/webdocroot/insidectm/projectutility/display_projects_xsl/default.x
> sl,
> line 3, offset 79
> XSL Error: Attribute: data-type has an illegal value: {$sortType}, Location
> file:/app/webdocroot/insidectm/projectutility/display_projects_xsl/default.x
> sl,
> line 148, offset 70
> XSL Error: Could not parse
> /app/webdocroot/insidectm/projectutility/display_projects_xsl/default.xsl
> document!, Location
> file:/app/webdocroot/insidectm/projectutility/display_projects_xsl/default.x
> sl,
> line 148, offset 70
> XSL Error: SAX Exception, Location
> file:/app/webdocroot/insidectm/projectutility/display_projects_xsl/default.x
> sl,
> line 148, offset 70
>
> Brian
>
> Scott Boag/CAM/Lotus wrote:
>
> > "Brian Burridge" <brian_burridge@xxxxxxxxxxxxx> wrote:
> > > > >    <xsl:sort select="*[name()=/PAGE/@sort]"
> data-type="{$sortType}"/>
> > > >
> > > > That one's correct. Which XSLT processor are you using?
> > > I'm using Lotus XSL.
> >
> > I haven't been keeping up with this thread, but the fragment should work
> in
> > LotusXSL/Xalan.  If I do:
> >
> > <?xml version="1.0"?>
> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version
> > ="1.0">
> >   <xsl:template match="a">
> >      <out>
> >           <xsl:variable name="sortType" select="'text'"/>
> >           <xsl:for-each select="c">
> >                <xsl:sort select="*[name()=/PAGE/@sort]" data-type="
> > {$sortType}"/>
> >           </xsl:for-each>
> >      </out>
> > </xsl:template>
> > </xsl:stylesheet>
> >
> > It seems fine.  Notice the quote around the value in the variable, since
> > the value needs to be a string... an rather odd case where a string can
> > hold a qname.
> >
> > Or:
> >
> > <xsl:variable name="sortType">text'</xsl:variable>
> >
> > Seems fine also.  Or:
> >
> > <xsl:variable name="sortType" select="foo"/>
> >
> > where foo holds a "text" or "number", seems to be fine also.  However,
> note
> > that LotusXSL/Xalan ONLY recognizes "text" or "number" at this time, and
> > will throw the error you're giving if you pass it a qname.  This should be
> > considered a bug.
> >
> > -scott
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
> --
>
> Brian N. Burridge
> Internet Architect
> (727) 399-3000 Ext 3515
> The Internet Group - ITSS
> Cox Target Media
>
> "Until a person can say deeply and honestly, "I am what I am today because
> of
> the choices I made yesterday," that person cannot say, "I choose otherwise."
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

--

Brian N. Burridge
Internet Architect
(727) 399-3000 Ext 3515
The Internet Group - ITSS
Cox Target Media

"Until a person can say deeply and honestly, "I am what I am today because of
the choices I made yesterday," that person cannot say, "I choose otherwise."



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.