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

Re: acessing attribute values and adding them to a par

Subject: Re: acessing attribute values and adding them to a param, looping
From: Dan Diebolt <dandiebolt@xxxxxxxxx>
Date: Tue, 15 May 2001 07:07:21 -0700 (PDT)
acessing countries
I am having a hard time understanding your problem basically because
you have a lot of detail in your xsl fragment. Can you simplify
your problem description removing details like background color,
gifs references, img attributes etc.? Most of the details prevent
someone from cutting and pasting your code and the missing pieces
insure there will be extraneous errors. We can better understand the
problem if you can give examples of how you want the input xml 
transformed under various conditions but with the unnecessary detail
removed.

In essense, I gather you need to insert a variable number of elements 
based on attributes values of the incoming XML. But there are some 
things in your xsl that appear overly complicated:

1) compound predicate [][] with position() reference

  <xsl:when test="parent::table/child::tr[position() =1]
    /child::td[position() = $i][attribute::colspan]">

2) no apparent reference to attribute @cols-id but reference to 
   undefined variable $cols-id

3) complicated xpath expressions:

  <xsl:if test="parent::table/child::tr[position() = 1]
    /child::td[position() =$i]
    /child::design[attribute::key = 'vruler']">

4) calling instead of matching templates 

Regards,

Dan

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

 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.