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 Chriss Miller 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. MrT2005

    How to paginate results?

    any ideas?
  2. MrT2005

    How to paginate results?

    the existing code (posted above) displays the results based on the parameters put in. This all works fine. The thing that is missing is the XSL code to paginate the results. Pagination is when you split the results into pages and have links like "Previous, Next, page 1, page 2, page 3, page...
  3. MrT2005

    How to paginate results?

    ..."/> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr class="myBkgnd_{position() mod 2 -1}"> <td width="*" class="pad"> <a> <xsl:attribute name="href"> <xsl:text>page-g.php?key=</xsl:text> <xsl:value-of...
  4. MrT2005

    Sort order - dynamic select

    Ok I found the solution <xsl:sort order="{$sorder}" select=" texte/fichetitre[$sterm='a'] | texte/typeheberg[$sterm='b'] | region/regionnseo[$sterm='c'] "/> works 100% =)
  5. MrT2005

    Sort order - dynamic select

    still doesnt work, I think the problem is that $searchTerm will only work if its just the name of one element, but not if it's a full path. any ideas on full path string variable?
  6. MrT2005

    Sort order - dynamic select

    ...including the $searchTerm I have to use the $order in the select field? the $order value is ascending/descending and the $searchTerm is a node item. when I use: <xsl:sort order="{$sorder}" select="*[name()=$searchTerm]" /> it makes the page load infinately, no error or content shown. any...
  7. MrT2005

    Sort order - dynamic select

    Is it possible to use a parameter as the select element in a sort tag? <xsl:sort order="{$sorder}" select="$searchTerm"/> Im trying to get the order based on the $searchTerm ie. so if $searchTerm = books/authors then in the xsl it would sort by books/authors. <xsl:sort order="{$sorder}"...
  8. MrT2005

    passing multiple parameters

    perfect, thanks :)
  9. MrT2005

    passing multiple parameters

    additionally, how would you do it so that both parameters MUST be found and not just one or the other?
  10. MrT2005

    passing multiple parameters

    perfect, thank you very much!
  11. MrT2005

    passing multiple parameters

    to select records based on one parameter im using this <xsl:for-each select="fiches/fiche[texte/cattouristique=$keyword]"> is it possible to pass a second parameter also? i want to do this also <xsl:for-each select="fiches/fiche[region/regionnseo=$keyword2]"> is there a way to combine both...
  12. MrT2005

    xpath and for-each

    thanks JontyMC works perfect!
  13. MrT2005

    xpath and for-each

    demo xml file <books> <book> <title>My Book</title> <author> <name>Mr. McGillicuddy</name> <dob>01.01.1901</dob> <city>Falafel</city> </author> </book> </books> Im trying to search the books and find the name of the authors that match the $keyword...
  14. MrT2005

    Whats Wrong with this XSLT ??

    ...encoding="ISO-8859-1" indent="yes"/> <xsl:param name="keyword">none</xsl:param> <xsl:template match="fiches/fiche"> <xsl:if test="texte/*= $keyword"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <xsl:attribute name="bgcolor"> <xsl:choose>...
  15. MrT2005

    Whats Wrong with this XSLT ??

    *bump*
  16. MrT2005

    Whats Wrong with this XSLT ??

    ...<xsl:template match="fiches/fiche"> <xsl:for-each select="//fiche"> <xsl:sort order="descending" select="texte/fichetitre"/> <xsl:if test="texte/*= $keyword"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="*" class="pad"> <xsl:value-of...
  17. MrT2005

    Whats Wrong with this XSLT ??

    ...<xsl:template match="fiches/fiche"> <xsl:for-each select="//fiche"> <xsl:sort order="descending" select="texte/fichetitre"/> <xsl:if test="texte/*= $keyword"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="*" class="pad"> <xsl:value-of...
  18. MrT2005

    PHP & XML - Load node via dynamic url variables

    ok, PHP5 is more flexible than PHP4 with sablotron. can create functions,classes to my hearts content! sweet!
  19. MrT2005

    PHP & XML - Load node via dynamic url variables

    still getting errors, I'm going to udgrade to php5 and try the code on there. thanks
  20. MrT2005

    PHP & XML - Load node via dynamic url variables

    Im running PHP Version 4.3.3 which uses domxml as opposed to PHP 5 which uses dom. your code causes "Fatal error: Cannot instantiate non-existent class: DomDocument" any ideas? thanks!

Part and Inventory Search

Back
Top