|
[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








