[AOLSERVER] tdom question

2004-03-05 Thread Ross Simpson
I'm having a problem with tDom. I was going to ask on their mailing list, but they use Yahoo groups, which happens to be down. Hoping someone here may know what's going on :) I'm trying to include an xslt template from within another (included) xslt template. - The inclusion (from within

Re: [AOLSERVER] tdom question

2004-03-05 Thread Dossy
On 2004.03.05, Ross Simpson [EMAIL PROTECTED] wrote: The inclusion (from within map_results.xsl): ?xml version=1.0 encoding=ISO-8859-1? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; version=1.0 xsl:include href=poi_list.xsl/ and the error: couldn't open

Re: [AOLSERVER] tdom question

2004-03-05 Thread Rob Crittenden
Dossy wrote: - if so, how can I get around it (and who desires it??) :) xsl:include href=../poi_list.xsl/ ? Really? Can you include relative files like this? rob -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to [EMAIL PROTECTED] with the

Re: [AOLSERVER] tdom question

2004-03-05 Thread Ross Simpson
On Fri, 2004-03-05 at 12:52, Rob Crittenden wrote: Dossy wrote: - if so, how can I get around it (and who desires it??) :) xsl:include href=../poi_list.xsl/ ? Really? Can you include relative files like this? rob If I may further clarify, my problem does not occur when testing

Re: [AOLSERVER] tdom question

2004-03-05 Thread Dossy
On 2004.03.05, Ross Simpson [EMAIL PROTECTED] wrote: Sorry, should have mentioned what I tried.. xsl:include href=../poi_list.xsl/ and xsl:include href=/poi_list.xsl/ both give errors: couldn't open map_results.xsl/../poi_list.xsl: no such file or direc.. and couldn't open

Re: [AOLSERVER] tdom question

2004-03-05 Thread Dossy
On 2004.03.05, Rob Crittenden [EMAIL PROTECTED] wrote: Dossy wrote: xsl:include href=../poi_list.xsl/ Really? Can you include relative files like this? According to Ross, no, not in tDOM's XSLT processor, at least. However, the XSLT spec. doesn't forbid it, and one would think it ought to

Re: [AOLSERVER] tdom question

2004-03-05 Thread Rob Crittenden
Dossy wrote: On 2004.03.05, Rob Crittenden [EMAIL PROTECTED] wrote: Dossy wrote: xsl:include href=../poi_list.xsl/ Really? Can you include relative files like this? According to Ross, no, not in tDOM's XSLT processor, at least. However, the XSLT spec. doesn't forbid it, and one would think

Re: [AOLSERVER] tdom question

2004-03-05 Thread Jeremy Vinding
Rob Crittenden wrote on 3/5/2004, 1:42 PM: Sorry, poor wording on my part. Should any webserver allow including via relative directories like this? What is to prevent an xslt from including ../../../etc/passwd? Or is there an explicit limitation to the document root? or is this

Re: [AOLSERVER] tdom question

2004-03-05 Thread Dossy
On 2004.03.05, Rob Crittenden [EMAIL PROTECTED] wrote: xsl:include href=../poi_list.xsl/ [...] Should any webserver allow including via relative directories like this? What is to prevent an xslt from including ../../../etc/passwd? Or is there an explicit limitation to the document root? My

[AOLSERVER] tDOM question

2003-07-01 Thread Alexander Leyke
How do I create leading tag ?xml version=1.0? in an XML document (or make such tag visible in return from domDoc asXML command)? Rest of my document is nested element and text nodes. Thanks - Alex -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email

Re: [AOLSERVER] tDOM question

2003-07-01 Thread Alexander Leykekh
... and another one - why does the following snippet of code fail? What is the proper way to swap values of 2 Tcl variables holding domNodes? Thanks -Alex server1:nscp 218 dom createDocument root doc domDoc0x248e90 server1:nscp 219 $doc createElement foo n1 domNode0x249088 server1:nscp 220 set

Re: [AOLSERVER] tDOM question

2003-07-01 Thread Michael A. Cleverly
On Tue, 1 Jul 2003, Alexander Leykekh wrote: ... and another one - why does the following snippet of code fail? What is the proper way to swap values of 2 Tcl variables holding domNodes? If you specify [$doc createElement foo n1] then when n1 is changed or unset (i.e., if within a proc that