|
next
|
 Subject: Strange going on Author: Greg Kerdemelidis Date: 27 Aug 2004 12:48 AM
|
Hi!
I've been using Stylus for a couple of days, and I really like the interface and
functionality. However, there's a bit of a problem I've encountered that
is causing me anguish. It's not a show-stopper, since it's always the
same problem, but it does make things difficult:
I have a (sub)template that takes a parameter, called rowId, and is passed
into the <xsl:template> from another variable called $myId. The problem
always occurs switching between WYSIWYG and source view - your application
sticks an <xsl:value-of select="$myId"/> before the <xsl:param name="rowId"/>
line, which violates the structural rules of XSLT. Further, it explicitly
adds a style="" attribute to a <tr> in my document which screws up the layout
badly (it shouldn't have the style attr, it should use the <style> defined elsewhere
in the document).
So, everytime I switch to WYSIWYG view, i have to remove the <xsl:value-of> calls
in my templates, and remove the annoying "style: top=765px" from my <tr>'s (it
kills the header/footer in the div). FYI The css style in the document for the element
id in question is { top: expression(this.offsetParent.scrollTop); }.
Why does it keep sticking, essentially, trash in my source?? Ideas?
I can supply the template if required, but would rather not post it
onto the board.
Cheers,
-Greg
|
|
|