Re: Dynamic XSL evaluation

2003-02-13 Thread Yatin Shah
Idhaya, thanks for help. Although the solution is incorrect.
I'll agree with J.Pietschmann, I don't think a simple solution exists!
I think the reasoning is ...
the welcome_title variable is holding a text value and it's not a node set.
text value can not be processed like a node set.

Only hope, I think is with the SQL Transformer. Instead of just laying
the text it should lay the full node set if the sql column value has any 
embeded tags!

-Yatin


J.Pietschmann wrote:

Idhaya Chandran wrote:


You can use 



That's a bad idea. This is a syntax error.


>From: Yatin Shah [mailto:[EMAIL PROTECTED]]


If the welcome_title was " Hello. Welcome to Acme, Inc. </b>"
Then the embeded HTML code is not interperted as HTML tags.




You should not put HTML snippets into a database. If you
want to extract them with Cocoon and have them delivered
as HTML in the output, you'll have to run them through an
XML parser. Just forget about simple solutions.

J.Pietschmann


-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>





-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Dynamic XSL evaluation

2003-02-12 Thread Yatin Shah
My application access DB for content(Using SQL Transformer) which later 
gets transformed into HTML via xml2html transformer.
For example, I have following sniippet in my xml2html transformer:
   
   
   
   

This works fine.
If the welcome_title was " Hello. Welcome to Acme, Inc. "
Then the embeded HTML code is not interperted as HTML tags.
Regardless of how it's embeded in the data(as  or as ) it is 
included as it was embeded.

What I like to do is to dynamically evaluate the content of 
$welcome_title so that embeded HTML tags are detected and parsed as:
   
   
   Hello. Welcome to Acme, Inc.
   
   

Even better would be to be able to include any XML tags and have it 
dynamically evaluated by the xml2html transformer.
Any one have any ideas?
Thanks for your help.
-Yatin


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



xmlform dtd

Hello all,
Anyone know where can I find the dtd for 
xmlform(xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002";)?
I'm interested in learning about all available
UI types for use in the form xml files.
[It's not included in src/documentation/xdocs/drafts, 
src/documentation/xdocs/dtd/ or src/webapp/WEB-INF/entities]

Thanks


--
Yatin Shah, President   mailto:[EMAIL PROTECTED]
Kripa Inc.  http://www.kripa.com
Dayton, New Jersey USA  phone:  732.329.8303
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Developers of real time event driven distributed DB applications




-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



xmlform dtd

Hello all,
Anyone know where can I find the dtd for xmlform(xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002";)?
I'm interested in learning about all available
UI types for use in the form xml files.
[It's not included in src/documentation/xdocs/drafts, src/documentation/xdocs/dtd/ or src/webapp/WEB-INF/entities]

Thanks



--
Yatin Shah, President   mailto:[EMAIL PROTECTED]
Kripa Inc.  http://www.kripa.com
Dayton, New Jersey USA  phone:  732.329.8303
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Developers of real time event driven distributed DB applications



-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: URI parts extraction

 Thanks Steven.

The URI can have variable number of dirs.

So the wildcard matcher with it's keys will not help.
(ie.  where {1} is dir1, {2} is dir2, ..etc 
can't be used since URI does not have fixed number of dirs.)
Are there any other options?
If I use XSL tranform then question still remains as how to get the 
variable number of param values?

Thank

Steven Cummings wrote:

Yatin,

I would suggest writing an XSL Transform that you pass the URI parts to as parameters. You'll have to generate a dummy document to initiate the transformation.

The template will look something like this:








 
cocoon 
 
 
 

 
   
 


I'm assuming you have a fixed number of dirs before the file. Hope this helps.

/S

Yatin Shah <[EMAIL PROTECTED]> wrote:

 

Is there an existing component(a Matcher!) which will extract individual
names from a URI?
What I want is:
Given http://hostname/cocoon/dir1/dir2/dir3/dir4/file1
I want XML file as follows:


 cocoon 
 dir1 
 dir2 
 dir3 
 dir4
 file1



[Although I do not need it, we can have ,, 
tags to the xml file as well].
-Yatin

--
Yatin Shah, President   mailto:[EMAIL PROTECTED]
Kripa Inc.  http://www.kripa.com
Dayton, New Jersey USA  phone:  732.329.8303
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Developers of real time event driven distributed DB applications




-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>


   



 



-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




URI parts extraction

Is there an existing component(a Matcher!) which will extract individual
names from a URI?
What I want is:
Given http://hostname/cocoon/dir1/dir2/dir3/dir4/file1
I want XML file as follows:


 cocoon 
 dir1 
 dir2 
 dir3 
 dir4
  file1



[Although I do not need it, we can have ,, 
tags to the xml file as well].
-Yatin

--
Yatin Shah, President   mailto:[EMAIL PROTECTED]
Kripa Inc.  http://www.kripa.com
Dayton, New Jersey USA  phone:  732.329.8303
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Developers of real time event driven distributed DB applications




-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



Re: Cocoon and Web Applications


This is nice summary for new users like myself. Thanks.

Should the generator be custom coded or are there any
cocoon pre-built generators which would create XML
from request attributes & transport objects?

I'm thinking of the case where transport object is an object
representation of a hierchical database data.
Are there any open source products which can be used
here to do the transformation from object/relational to XML?

Thanks
-Yatin

Bryan Zarnett wrote:

> Thanks for everyone's input on the XML Generation. Taking some of 
> those comments and going through the documentation, I came down with 
> the following simple (and hopefully close to correct) conclusions. The 
> idea here is that Cocoon would be used in a web application with 
> Cocoon responsible for presentation and user navigation and a web 
> service using REST responsible for business rules.
>
> * The user sends down an Action Name which defines the operational 
> request the user wishes to invoke. This action name is used in the 
> site map to determine the appropriate action to apply.
>
> * The action acts as a controller, processing user input and invoking 
> one or more distributed business services (REST, EJB, etc.) that 
> return back one or more transport objects. The action aggregates the 
> transport objects and places them into request attributes.
>
> * The generator takes the request objects and converts them to XML, 
> passing the information onto a transformer.
>
> Any thoughts or comments would be appreciated.
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>



-- 
Yatin Shah, President   mailto:[EMAIL PROTECTED]
Kripa Inc.  http://www.kripa.com
Dayton, New Jersey USA  phone:  732.329.8303
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Developers of real time event driven distributed DB applications



-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>