[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Unable to use count function because of Namespaces...


Subject: RE: [xsl] Unable to use count function because of Namespaces...
From: "Yaswanth" <yaswanth.mtrx@xxxxxxxxx>
Date: Fri, 7 Sep 2007 17:10:30 +0530

Hi David, 
Thanks for the solution . 
My problem is solved, 
I changed my style sheet like this .. '

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:sb="http://www.readiminds.com/infra/readione/workbench/signaturebuilde
r">

Thanks,


Thanks & Regards,
Yaswanth Kumar Ravella

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx] 
Sent: Friday, September 07, 2007 5:05 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Unable to use count function because of Namespaces...

 
> says  prefix should resolve to name space !!
you need to declare the prefix in your xslt (it doesn't have to be the
same prefix but does need to be the same uri) so add

xmlns:sb="http://www.readiminds.com/infra/readione/workbench/signaturebuilde
r"

to your xsl:stylesheet. this is nothing to do with the count() function,
just a basic XPath requirement that to select an eleemnt in a namespace
the namespace needs to be known to the stylesheet.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________


Current Thread
Keywords