Re: (Easy) Passing a Variable From Sitemap to StyleSheet?

2004-04-14 Thread Jan Hoskens
one to me) Hope this helps, Kind Regards, Jan - Original Message - From: David Swearingen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 4:37 AM Subject: Re: (Easy) Passing a Variable From Sitemap to StyleSheet? Ok, I see the source of the problem now. I am

Re: (Easy) Passing a Variable From Sitemap to StyleSheet?

2004-04-14 Thread Jan Hoskens
- From: Steve Schwarz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 5:36 AM Subject: Re: (Easy) Passing a Variable From Sitemap to StyleSheet? David You can't do it directly within the document. But maybe you just need to think about the problem a little

RE: (Easy) Passing a Variable From Sitemap to StyleSheet?

2004-04-13 Thread David Swearingen
I posted earlier this week about needing to pass a variable from the sitemap to a stylesheet, and I understand how to do this, but I'm getting a weird error now. [NOT SURE HOW TO ESCAPE HTML FOR POSTS TO MAILING LIST.] I'm setting the variable in the sitemap as follows: map:match

RE: (Easy) Passing a Variable From Sitemap to StyleSheet?

2004-04-13 Thread Steve Schwarz
David I think you want: ... xsl:param name=requestedfile/ ... thebody cinclude:include src={$requestedfile}/ /thebody ... I highly recommend Michael Kay's XSLT 2nd Edition Hope this helps Steve _ Tax headache? MSN Money

Re: (Easy) Passing a Variable From Sitemap to StyleSheet?

2004-04-13 Thread David Swearingen
Ok, I see the source of the problem now. I am trying to resolve the value of a variable from within an xml document, not within the stylesheet. I'm using the xml document to collect a bunch of xml documents using cinclude. That's where I need to have the name of a file requested in the uri by

Re: (Easy) Passing a Variable From Sitemap to StyleSheet?

2004-04-13 Thread Steve Schwarz
David You can't do it directly within the document. But maybe you just need to think about the problem a little differently. Remember you don't need this aggregate document to physically exist. It just needs to be assembled at some point in your pipeline. So I'd use a stylesheet to get what

(Easy) Passing a Variable From Sitemap to StyleSheet?

2004-04-11 Thread David Swearingen
I thought this would be easy...I'm trying to pass a variable defined in the Sitemap, and retrieve it in the Stylesheet. Specifically, I have {1} defined in the sitemap, which is the basename of a file, and I want to refer to this filename in a stylesheet that's called by a transformer. I'm then

RE: (Easy) Passing a Variable From Sitemap to StyleSheet?

2004-04-11 Thread Philipp Burkert
Hi, I thought this would be easy...I'm trying to pass a variable defined in the Sitemap, and retrieve it in the Stylesheet. first you have to handle the parameter to the transformer within the sitemap. ---sitemap-- map:match pattern=*/show.html map:generate

RE: (Easy) Passing a Variable From Sitemap to StyleSheet? - One complication

2004-04-11 Thread David Swearingen
Indeed I can use the variable in the stylesheet as described below by Philip but I failed to anticipate that I have to use the variable INSIDE of another tag, that is, I have a variable foo that represents a filename and I have to use it as follows: [cinclude:include src=foo.xml] I'm assuming

RE: (Easy) Passing a Variable From Sitemap to StyleSheet? - One complication

2004-04-11 Thread Conal Tuohy
:[EMAIL PROTECTED] Sent: Monday, 12 April 2004 12:21 To: [EMAIL PROTECTED] Subject: RE: (Easy) Passing a Variable From Sitemap to StyleSheet? - One complication Indeed I can use the variable in the stylesheet as described below by Philip but I failed to anticipate that I have to use