Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 12th, 2006, 11:01 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default Hints for a good XSLT post

If you are making a post to the XSLT forum please bear the following hints in mind as this will make it more likely that someone can reproduce, examine and provide an answer to your problem:
  • Please use the search facility at the top of most pages before posting.
  • Please give your post a sensible subject. As this is an XSLT forum subjects such as XSLT problem are unlikely to stand out. Also avoid generic Help me requests. A good subject means the post will stand a better chance of being answered and make it easier to search the archives.
  • Please state which processor you are using along with the version, e.g. MSXML 4.0, .NET 2.0 or Saxon 8. The platform your running on, e.g. Windows XP will also help.
  • Please supply your source XML or at least a well-formed sample. Make sure that spurious characters, e.g. those appearing in Internet Explorer such as + and -, are removed.
  • Please show the XSLT you currently have.
  • Please show the desired output. If you can't specify the desired output, especially for complex HTML pages then there's little chance of anyone being able to guess what is needed.
  • If any errors occur please give the exact text.
  • Please be specific if the output is not what is required, rather than it doesn't work.

The two URLs below have solutions to many common questions.

For grouping problems, especially using XSLT version 1.0 see Jeni Tennison's XSLT site.

For a comprehensive FAQ see Dave Pawson's site.

Dave Pawson's site is especially good for namespace problems such as selecting items in a namespace or a default namespace, the most common cause of nodes not being selected when you think they should be.


Joe (Microsoft MVP - XML)
The Following 2 Users Say Thank You to joefawcett For This Useful Post:
iceandrews (January 13th, 2009), jminatel (December 15th, 2008)
Old December 21st, 2011, 02:01 PM
Registered User
Join Date: Dec 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default xslt question

Being new to xml/xslt/solr, I am hoping someone can explain and help me with the following:

I am basing everything off the solr example that comes with the download, including xslt. I am using a php page for submitting the search, and display the result in html.

I indexed a 1.5MB size pdf document (400 pages). Using the admin interface with *:* query everything is there.

I then try using highlighting in the query, and modified the xsl file to return the highlighting.
It works fine for the text in the beginning of the document. I can query with a phrase between " " and it returns the exact match.

When searching content approx. beyond the first 100 pages, I see this behavior:
I must include common words in a phrase to get a result returned. For example if I search using the word handymen, that only appears in one place towards the end of the document, nothing is returned, but if I add a common word that appears in the sentence where handymen is; e.g. 'handymen that', then both are returned in the highlighting including many other occurrences of 'that'. If I query with "handymen that", nothing is returned.

Old December 21st, 2011, 02:35 PM
samjudson's Avatar
Friend of Wrox
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts

A) don't reply to a post that has nothing to do with your question. especially this post.

B) what is solr and what does your question have to do with xslt anyway?
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
Old November 24th, 2014, 06:17 AM
Registered User
Join Date: Nov 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

giat tham
Old October 30th, 2017, 03:23 AM
Registered User
Join Date: Oct 2017
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Thank you for your useful hints
vệ sinh văn phòng
ve sinh van phong
vệ sinh căn hộ
ve sinh can ho

Last edited by tuonglun; November 7th, 2017 at 12:40 AM..

Similar Threads
Thread Thread Starter Forum Replies Last Post
Good XSLT coding Architecture for transformation anil2020 XSLT 0 August 27th, 2007 12:10 PM
Getting post/get parameters with XSLT? snorripall XSLT 2 October 6th, 2006 11:39 AM
Search engine with hints arnabghosh PHP Databases 0 February 22nd, 2006 09:14 AM
Hints NoeCH VB Components 1 January 20th, 2004 01:37 PM
Hints on controls.... NoeCH VB.NET 2002/2003 Basics 1 January 20th, 2004 01:36 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.