Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 17th, 2008, 11:45 AM
Authorized User
 
Join Date: Jan 2007
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Martin Honnen
 Which XSLT processor are you using?
good question - i honestly don't know! im using a web content management system called Ektron CMS 400.NET

steve
 
Old March 17th, 2008, 11:49 AM
Authorized User
 
Join Date: Jan 2007
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Martin Honnen
 Does it help if you put xml:space="preseve" on your stylesheet e.g
Code:
<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  version="1.0"
  xml:space="preserve">
?
putting xml:space="preserve" actually has the effect producing no output what so ever.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xml:space="preserve">
  <xsl:output method="html" indent="yes" />
  <xsl:template match="/">
...
 
Old March 17th, 2008, 12:01 PM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

Sorry, you have lost me, are you saying that the stylesheet produced a HTML document before but now with xml:space="preserve" you get no output at all?
That is rather strange, do you get any error messages at least that and why the transformation failed?
 
Old March 17th, 2008, 12:42 PM
Authorized User
 
Join Date: Jan 2007
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes, that's correct. with xml:space="preserve" included within my xsl:stylesheet tag, it produces no HTML at all and does not provide any error message.

"strange" is beginning to describe all my XSLT issues.
steve
 
Old March 17th, 2008, 12:55 PM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

This documentation http://dev.ektron.com/kb_article.aspx?id=9240 suggests that XslCompiledTransform is used as the XSLT processor. I don't understand why it should fail to work with xml:space="preserve" applied on the stylesheet. And it does not when I use it with some C#/.NET 2.0 code.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Line Breaks in Access? chroniclemaster1 Access 0 February 13th, 2008 04:55 AM
How to do line breaks! Apocolypse2005 Beginning VB 6 2 December 11th, 2006 03:20 PM
Line breaks question gkirk Beginning PHP 2 February 27th, 2005 10:40 AM
Want to detect line breaks conundrum Classic ASP Basics 1 October 3rd, 2003 04:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.