I have a stylesheet with the following code:
<xsl:for-each select="//structure/table/column">
<col>
<xsl:if test="@width">
<xsl:attribute name="width" ><xsl:value-of select="@width" /></xsl:attribute>
</xsl:if>
<xsl:if test="@class">
<xsl:attribute...
This error only appears with IE.
I have a demo application on my website at http://www.radicore.org/demo.php in which all HTML is built using XSL transformations. The page contains 2 links:
http://www.radicore.org/demo/menu/logon.php for server-side transformations...
I wish to process my XML data in a particular oder, so I am using the following code:
<xsl:apply-templates select="SYSTEM/TABLE/OCC">
<xsl:sort select="FIELD3"/>
<xsl:sort select="FIELD4"/>
</xsl:apply-templates>
Within the template I wish to obtain a value from the previous node...
Is there any good reason why the following code does not work?
<xsl:choose>
<xsl:when test="foo">
<xsl:variable name="var" select="'foo'" />
</xsl/when>
<xsl:otherwise>
<xsl:variable name="var" select="'something else'" />...
I have created the following template:
<xsl:template name="column_hdg">
<xsl:param name="item"/>
<xsl:param name="string"/>
<!-- create hyperlink to sort on this field -->
<a><xsl:attribute name="href"><xsl:value-of...
After sorting my XML data I want to detect when one of the values changes so that I can do something extra, such as insert another line break. I cannot find how to compare an item value with the previous or next occurrence in the structure. Can anyone help me please?
I am trying to extract the value of an element's position in the XML file so that I can create references to the current, previous and next element. Can anyone give a newbie some advice?
My XML file looks something like this:
<?xml version="1.0"?>
<?xml-stylesheet...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.