Thank you very much Mukul. This is exactly what I am looking for.
One more question.
1. How do you do xsl transformation. When I tried to do xsl transformation
using the following xsl and xml from xml spy, I am receiving the following
error.
This file is not valid.
Error in xpath expression. Function not found in namespace..
2. When I tried to transformation using java:
ByteArrayOutputStream baos = new ByteArrayOutputStream();
SAXTransformerFactory saxTFactory = ((SAXTransformerFactory) tf);
tHandler1 = saxTFactory.newTransformerHandler(new
StreamSource(xsllocation)); --> Missing or incorrect XSLT Namespace.
Transformer tr1 = tHandler1.getTransformer();
xsllocation --> this is the location of xsl file in your local directory.
What is the way that you recomment?
Thanks again for your help
--- On Sun, 11/30/08, Mukul Gandhi <gandhi(_dot_)mukul(_at_)gmail(_dot_)com>
wrote:
From: Mukul Gandhi <gandhi(_dot_)mukul(_at_)gmail(_dot_)com>
Subject: Re: [xsl] Random selection
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Date: Sunday, November 30, 2008, 12:52 PM
Hi Dimitre,
I would prefer a portable solution if it's really required (i.e., my
IT architecture demands it).
If I know my stylesheet will always run in a Java environment, what's
the harm in using the Java extensions provided by the processor?
On Sun, Nov 30, 2008 at 10:32 PM, Dimitre Novatchev
<dnovatchev(_at_)gmail(_dot_)com> wrote:
Hi Mukul,
What about people, who use C#, Python, VB, C++, ..., etc?
I strongly believe that recommending a non-portable solution on this
list when a known, 100% XSLT, portable one exists, should be
discouraged.
--
Cheers,
Dimitre Novatchev
--
Regards,
Mukul Gandhi
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--