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

Re: Conditional extraction of data

Subject: Re: Conditional extraction of data
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Wed, 10 Nov 2004 07:12:09 +0100
Re:  Conditional extraction of data
Wendell Piez wrote:

Depends on what you mean by content. The default templates preserve the character data of the data file. Note that this includes character data in attributes, though you are not using them currently.

Unless I mistake your meaning: almost but not quite.

No, you actually didn't mistake my meaning, though my words can be interpreted the both ways. Attributes are not processed by default (I tested it ;), though the default template for atts indeed preserves the character data..


Thanks for the rectification.

I have the habit of _always_ including identity templates as 'defaults' at the top of my script, so no one get confused by implicit ones. Most of the time, I'm doing conversion stuff and you don't want to lose structure by default then. :-P

(And yes, I tend to use select="@*|node()" also...)

Though I regret it is difficult to specify your own 'defaults' for templates with a mode. You have to explicitly mention the mode and cannot use a wildcard or something. Something for XSLT 2?

Grtz,
Geert

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.