Subject: Re: [xsl] 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) |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] acessing attribute values, Jeni Tennison | Thread | [xsl] Validate XSD, Sachidanandam E.K |
[xsl] FPSE 2002 side note, Jonathan Moore | Date | [xsl] Validate XSD, Sachidanandam E.K |
Month |