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

RE: Weird behavior with attributes and >

Subject: RE: Weird behavior with attributes and >
From: "Nesbitt, David" <DNesbitt@xxxxxxxxxx>
Date: Tue, 4 Sep 2001 11:50:25 -0700
RE:  Weird behavior with attributes and >
Mike,

> The CDATA sections are only a convenience for input so that you don't
> have to escape markup characters. It has exactly the same meaning as 
> if escaped the markup characters and didn't wrap it in the CDATA tags.
> 
> This would be more efficient for the processor:
> 
> <xsl:variable name="open.expression" select="'&lt;%= '"/>
> <xsl:variable name="open.expression" select="' &gt;'"/>
> 
> because it would create strings rather than result tree fragments.

Thanks!  This is a great explanation and I understand alot better what
is going on now.

> disable-output-escaping applies to the instructions that create text
> nodes, but if the instruction is creating the content template for
> xsl:attribute, the flag won't apply to the attribute node.
> 
> XSLT doesn't allow for attributes to have their escaping disabled, so
> vendors have implemented their own solutions to this 
> "problem". SAXON, for
> example, has a saxon:disable-output-escaping for 
> xsl:attribute elements.

Mike, this did the trick.  Thanks so much for taking the time to answer
my post.  I was really getting discouraged and was wondering if I was
going to be able to use XSLT after all.  Fortunately, I was already
using Saxon and now it is working perfectly!!!

> A pure XSLT solution would involve some very ugly, but not 
> impossible, 
> simulation of element start and end tags using text nodes 
> with disabled 
> output escaping.

I am glad I don't have to go through this!  Thanks again.

Best Regards,
Dave

 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.