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 SkipVought 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: *

  • Users: JJR
  • Order by date
  1. JJR

    If statement in XSL for an attribute

    If you want better performance (not looping through each node): <xsl:value-of select="/xml/contents/content[@typeid=1][3]"/>
  2. JJR

    address bar variable help...

    <xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;> <xsl:param name=&quot;search&quot;>default value</xsl:param> <xsl:for-each select=&quot;artist/title&quot;> <xsl:sort select=&quot;artist&quot; /> <xsl:if test=&quot;artist = $search&quot;>...
  3. JJR

    zip a file

    Use the winzip command line add on. It's free downloadable from www.winzip.com. As far as I know, there's no free COM add-in. Jordi Reineman
  4. JJR

    msxml2 setAttribute date format bug

    &quot;As everything *should* have been using systems settings it should have gone fine&quot; That's not entirely true. Since you add a date to a node and Microsoft always tries to 'help' you, it is assumed that you try to add a node of the type 'Date'. By design of the W3C a Date node in XML...
  5. JJR

    Namespace error

    Hi Muddmuse, I've had simular problems reading an XSD. Code that worked fine with the 3.0 parser didn't work with the 4.0 parser. I still haven't found the solution but I think it has something to do with the default query language MS uses with the 4.0 parser. So try setting the...
  6. JJR

    Re-assigning a variable's value

    Hi Hameed, Variables in XSL can not be reassigned, thus meaning that once you've assigned a value to a variable, you can't change it anymore. Try to use the sum() function instead. Good luck! Jordi Reineman
  7. JJR

    Silly question really...XSL Translation

    Can this be done via command lines, .net or anything else?? All of the above! It all depends on the proces in which the transformation has to take place (Internet, Client-server app, etc) and what programming language you favor (or which language the business tells you to use ;-) ) Browse this...
  8. JJR

    finding nodes that contain a given string

    Hi Glenn, Are you sure your code doesn't recognize the XPath function contains? What is XMLDocument for kind of object? I guess it's an XMLDomDocument object. What I'm interested in is what version of IE you are using and what verson of XMLDomDocument you're instanciating. If you use the...
  9. JJR

    How To Manage A VB Project carried out by multiple people

    Hi Calvin, Use Sourcesafe, the source code manager from MS. Included with Visual Studio enterprise edition. Take a look here http://msdn.microsoft.com/ssafe/prodinfo/qa.asp Jordi Reineman
  10. JJR

    Writing to top of a file

    Hi, Use Print #1, &quot;The data I need to see in the Log&quot;; Tab(1) Jordi Reineman
  11. JJR

    Excel to XML ?

    Hi all, Not been here for a while.... Ok, you can open a excel sheet like it's a database and transform it to XML using the following VB code: Dim oCon As ADODB.Connection Dim sSql As String Dim oRs As ADODB.Recordset Dim oXml As MSXML2.DOMDocument40 Set oCon = New ADODB.Connection...
  12. JJR

    adding data to an existing xml file in vb6

    Hi Jacques, Download the Microsoft XML Core Services (MSXML) 4.0 from http://www.microsoft.com/downloads/details.aspx?FamilyID=3144b72b-b4f2-46da-b4b6-c5d7485f2b42&DisplayLang=en Then take a look at the DomDocument object. Among others, this object allows you to create xml documents from...
  13. JJR

    xsd:all

    Hi Ladyhawk, The xs:all element is used in schema's if you want to indicate that the group of nodes below this element can appear in any order (e.g. if you use xs:sequence the elements must appear in the exact same order in your xml file) Jordi Reineman
  14. JJR

    Help Please...&lt;xsl:if &gt; not working

    Hi crowsario, Which version of the Microsoft xml parser are you relying on? It looks like you're using a very old version of the parser, which used a working draft version of the xslt specifications and is missing a lot of functionality. Jordi Reineman
  15. JJR

    Multiple Instances of a node

    Hi ashridharan, Try using: <xsl:for-each select=&quot;ROOT\PARENT[not(SOMENODE = &quot;123&quot;)]&quot;> <xsl:value-of select=&quot;@Id&quot;/> </xsl:for-each> Good luck! Jordi Reineman
  16. JJR

    XSL Advanced abilities

    use the last() function in your xPath query. So suppose you want the value of the first field item in the last row and your root element is called Table: <xsl:value-of select=&quot;Table/Rows/Row[last()]/Field[1]&quot;/> More syntax examples can be found here...
  17. JJR

    select DISTINCT items from XML using ASP

    Can you post the code you found. Jordi Reineman
  18. JJR

    How to compare current value with previous or next occurrence?

    There are various ways: You can use [number] to get an occurance of a specific node e.g: myxml/mynodes[1] You can also use the position() function e.g: myxml/mynodes[position() -1] points to the previous node. Good luck, Jordi Reineman
  19. JJR

    Any Suggestions? XML &gt; PDF: XSL-FO

    http://www.xml.com/pub/a/2001/01/17/xsl-fo/index.html Print the recommendation for XSL at http://www.w3.org/TR/xsl/ It's a bit hard to get through in the beginning, but all the syntax is there. Jordi Reineman
  20. JJR

    XSL help

    Could I use an XSL document to place tags around the words link and Link2 ie I don't see these words in your sample xml. Jordi Reineman

Part and Inventory Search

Back
Top