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

Re: Missing a template, I think

Subject: Re: Missing a template, I think
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Tue, 27 Mar 2007 12:29:34 +0200
Re:  Missing a template
Robert Hamburger wrote:

This works fine with every situation, producting output like this:


Node | Node | Node
R1
(final node text)

Except with nodes that contain sub-nodes AND "R" nodes, like this:

MAP
--Node
--Node
------Node @TEXT=R1
----------Node
----------------Node @TEXT=R1
 ---------------------Node

 For some reason, they don't parse, and I just don't know why. Can anyone
share any insight why my code isn't working? It's driving me crazy!

I don't know what you mean with "parse" let alone what you expect from these other nodes. Can you update with an XML example of your input, and an XML example of your expected output? Test it against a stripped down version of your stylesheet (i.e., with only the templates you showed above) and include that stylesheet. That will also tell us you use XSLT 2.0 (I assume that from your syntax).


Note that in XSLT 2.0, a statement like

*/@TEXT

selects *all* nodes @TEXT with a parent node, whereas the same would select only the first */@TEXT in XSLT 1.0. But without seeing your real input and expected output, I cannot say for sure that this is part of your problem.

Cheers,
-- Abel

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.