Re: xsp util and file contents

2003-02-12 Thread Christian Haul
On 11.Feb.2003 -- 09:13 PM, Tom Place wrote:
 Hi,
 
 I’m trying to insert xml into my xsp, this xml is for navigation
 purposes so ideally I would like to use one navigation file in many
 different xsp documents.
 I have looked at the mail archive to find out the details about this but
 I cant seam to get it to work!
 
 My example is below:
 
 ?xml version=1.0 encoding=UTF-8?
 
 xsp:page language=java 
   xmlns:xsp=http://apache.org/xsp;
 xmlns:util=”http://apache.org/xsp/util/2.0”

  content !-- mind you: xsp:logic outside first non xsp tag
 goes outside generate() method --

 util:include-file 
name=/tomcat/webapps/cocoon/autorevs/docs/templates/logged-out-navigation.xml/

  /content

 /xsp:page
 
 I am getting compilation errors – any ideas?

Alternatives are aggregation (see samples) or any of the
*IncludeTransformers. 

Chris.

Please follow up summarizing your problem and which suggested solution
/ information worked for you when you consider your problem
solved. Add SUMMARY:  to the subject line. This will make FAQ
generation and searching the list easier. In addition, it makes
helping you more fun. Thank you.

And if you are really cool, add a page at http://wiki.cocoondev.org

-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
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]




xsp util and file contents

2003-02-11 Thread Tom Place
Hi,

I’m trying to insert xml into my xsp, this xml is for navigation
purposes so ideally I would like to use one navigation file in many
different xsp documents.
I have looked at the mail archive to find out the details about this but
I cant seam to get it to work!

My example is below:

?xml version=1.0 encoding=UTF-8?

xsp:page language=java 
  xmlns:xsp=http://apache.org/xsp;
  xmlns:util=”http://apache.org/xsp/util/2.0”
xsp:logic
  XSPUtil u = new XSPUtil();
  String navigation =
u.getFileContents(/tomcat/webapps/cocoon/autorevs/docs/templates/logged-
out-navigation.xml);
  util:include-expr
util:expr
  xsp:exprnavigation/xsp:expr
/util:expr
  /util:include-expr
/xsp:logic
/xsp:page

I am getting compilation errors – any ideas?

Cheers

Tom 
 



-
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: xsp util and file contents

2003-02-11 Thread Leszek Gawron
On wto, lut 11, 2003 at 09:13:08 -, Tom Place wrote:
 Hi,
 
 I’m trying to insert xml into my xsp, this xml is for navigation
 purposes so ideally I would like to use one navigation file in many
 different xsp documents.
Apart from your problem : why don't you use aggregation?
ouzo
-- 
__
 | /  \ |Leszek Gawron//  \\
\_\\  //_/  [EMAIL PROTECTED]  _\\()//_
 .'/()\'. Phone: +48(600)341118 / //  \\ \
  \\  //  recursive: adj; see recursive  | \__/ |


-
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: xsp util and file contents

2003-02-11 Thread Robert Simmons
XSP is just XML. Just write a transformer that copies the XML into the XSP
file. Run this transformer before you run the XSP transformer in the sitemap
and viola, problem solved.

Hmm, I'm starting to get the hang of this thing  scary.

-- Robert

- Original Message -
From: Leszek Gawron [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 10:33 PM
Subject: Re: xsp util and file contents


 On wto, lut 11, 2003 at 09:13:08 -, Tom Place wrote:
  Hi,
 
  I'm trying to insert xml into my xsp, this xml is for navigation
  purposes so ideally I would like to use one navigation file in many
  different xsp documents.
 Apart from your problem : why don't you use aggregation?
 ouzo
 --
 __
  | /  \ |Leszek Gawron//  \\
 \_\\  //_/  [EMAIL PROTECTED]  _\\()//_
  .'/()\'. Phone: +48(600)341118 / //  \\ \
   \\  //  recursive: adj; see recursive  | \__/ |


 -
 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]




RE: xsp util and file contents

2003-02-11 Thread Tom Place
Thanks for your help.

Just to clarify, you mean put an XSL transform between the XSP page and
the original XSL transformer?

This could work however is there not an easier way of doing this as I am
going to be inserting several different things at several points on
different sheets - this will take a lot of XSL files!

Going back to my original example, should that not work, have I got the
wrong end of the stick?!?!

Also what is aggregation?

(Sorry but I'm new to all this!)

-Original Message-
From: Robert Simmons [mailto:[EMAIL PROTECTED]] 
Sent: 11 February 2003 21:39
To: [EMAIL PROTECTED]
Subject: Re: xsp util and file contents

XSP is just XML. Just write a transformer that copies the XML into the
XSP
file. Run this transformer before you run the XSP transformer in the
sitemap
and viola, problem solved.

Hmm, I'm starting to get the hang of this thing  scary.

-- Robert

- Original Message -
From: Leszek Gawron [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 10:33 PM
Subject: Re: xsp util and file contents


 On wto, lut 11, 2003 at 09:13:08 -, Tom Place wrote:
  Hi,
 
  I'm trying to insert xml into my xsp, this xml is for navigation
  purposes so ideally I would like to use one navigation file in many
  different xsp documents.
 Apart from your problem : why don't you use aggregation?
 ouzo
 --
 __
  | /  \ |Leszek Gawron//  \\
 \_\\  //_/  [EMAIL PROTECTED]  _\\()//_
  .'/()\'. Phone: +48(600)341118 / //  \\ \
   \\  //  recursive: adj; see recursive  | \__/ |


 -
 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]


-
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]