[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

AW: Strange Problem with document($variablename)

Subject: AW: Strange Problem with document($variablename)
From: "Torsten Schlabach" <tschlabach@xxxxxxx>
Date: Fri, 11 Jul 2003 19:02:54 +0200
torsten schlabach
Hi folks,

>> white space nodes in the xslt stylesheet are stripped by default so 
>> unless the user has turned that off, eg with  xml:space 
>> then there shouldnt be space between the / and the name

I was thinking along the same lines, so I tried:

<xsl:variable name="filename"><xsl:value-of select="'../content/news/'"
/><xsl:value-of select="@name" /></xsl:variable>

No change. Also I switched to the much more elegant

<xsl:variable name="filename" select="concat('../content/news/',@name)">

Same problem.

I am sure the truncation is happening somewhere on a deeper level. I
will have to check where Cocoon kicks in and how Cocoon can augment a
filename / URL inside Xalan.

What I mean is: Cocoon hands the stylesheet processing over to Xalan and
waits for a result. AFAIK Xalan should not know anything about Cocoon at
all. But on the other hand there needs to be a hook. Otherwise it would
be possible to use document("cocoon://somehinginthesitemap") in an XSL
stylesheet.

I will post to the list as soon as I found out. Unless someone can
straightly point it out. But it might be out-of-scope on a XSL mailing
list anyway.

Torsten

-----Ursprüngliche Nachricht-----
Von: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] Im Auftrag von David
Carlisle
Gesendet: Freitag, 11. Juli 2003 18:51
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff: Re:  Strange Problem with document($variablename)


Hi Stan (I didn't know you were on this list:-)

  <xsl:variable name="filename">
  <xsl:value-of select="'../content/news/'" />
  <xsl:value-of select="@name" />
  </xsl:variable>
white space nodes in the xslt stylesheet are stripped by default
so unless the user has turned that off, eg with  xml:space 
then there shouldnt be space between the / and the name.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.