Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. TonyMarston

    How to iterate through a node's attributes

    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...
  2. TonyMarston

    Error with client-side XSL when switching from HTTPS to HTTP

    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...
  3. TonyMarston

    How to get value of previous node in sorted order, not document order

    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...
  4. TonyMarston

    Cannot declare xsl:variable inside xsl:choose block

    Is there any good reason why the following code does not work? <xsl:choose> <xsl:when test=&quot;foo&quot;> <xsl:variable name=&quot;var&quot; select=&quot;'foo'&quot; /> </xsl/when> <xsl:otherwise> <xsl:variable name=&quot;var&quot; select=&quot;'something else'&quot; />...
  5. TonyMarston

    Can you pass a string literal with xsl:call-template?

    I have created the following template: <xsl:template name=&quot;column_hdg&quot;> <xsl:param name=&quot;item&quot;/> <xsl:param name=&quot;string&quot;/> <!-- create hyperlink to sort on this field --> <a><xsl:attribute name=&quot;href&quot;><xsl:value-of...
  6. TonyMarston

    How to compare current value with previous or next occurrence?

    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?
  7. TonyMarston

    How to use an element's position to create links

    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=&quot;1.0&quot;?> <?xml-stylesheet...

Part and Inventory Search

Back
Top