Re: Generating JavaBean from XML

Erica Leung <[email protected]> Fri, 14 Feb 2003 12:47:50 -0800
Newsgroups gmane.comp.java.sun.xml.general
Message-ID <[email protected]>
I have tried
xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"
xmlns:redirect="org.apache.xalan.lib.Redirect"

both cases throw an exception as:
java.lang.reflect.InvocationTargetException

when I tried
xmlns:redirect="http://xml.apache.org/xalan/redirect"
I got a ClassNotFoundException:redirect

I am using jdk1.4.0_03 compiler, and the JAVA_HOME\bin is in the path.

Thx,
Erica

-----Original Message-----
From: XML technologies in the Java Platform
[mailto:[email protected]]On Behalf Of Markus Spath
Sent: Thursday, February 13, 2003 10:45 PM
To: [email protected]
Subject: Re: Generating JavaBean from XML


Erica Leung wrote:
> Hi, there
>
...
> The following command can transform  the result on the screen correctly,
> java org.apache.xalan.xslt.Process -in xmlSource  -xsl stylesheet
>
> But if I want to write the result out, how can I specify the out put name
> respectively for each bean.
>


you can specify xalan's redirect namespace in the xsl:stylesheet element

   xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"

and then write to seperate files:

   <redirect:write select="... build a nice name here">

    ... content of

   </redirect:write>

hth,
markus

-----------------------------------------------------
xml-interest: A list for discussing XML technologies in the Java Platform.
To post, mailto:[email protected]
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:[email protected] the following message;
signoff xml-interest.

-----------------------------------------------------
xml-interest: A list for discussing XML technologies in the Java Platform.
To post, mailto:[email protected]
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:[email protected] the following message;
signoff xml-interest.