Re: Debugging Solr XSL

2013-06-14 Thread O. Olson
Thank you Upayavira & Miguel. I decided to use Visual Studio – since I can at
least set breakpoints and do interactive debugging in the UI. I hope the way
Visual Studio treats XSL is the same as Solr - else I would have problems
:-).
Thanks again,
O.O.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Debugging-Solr-XSL-tp4070368p4070572.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Debugging Solr XSL

2013-06-14 Thread Miguel

Hi

  You can use an online xsl validator, example: 
http://xslttest.appspot.com/
but I think it's better use XSLT editor. It's sure visual studio should 
have someone.


regars.

El 13/06/2013 23:45, O. Olson escribió:

Hi,

I am attempting to transform the XML output of Solr using the
XsltResponseWriter http://wiki.apache.org/solr/XsltResponseWriter to HTML.
This works, but I am wondering if there is a way for me to debug my creation
of XSL. If there is any problem in the XSL you simply get a stack trace in
the Solr Output.

For e.g. In adding a HTML Link Tag to my XSL, I forgot the closing i.e. 
I
did “>” instead of a “/>”. I would just get a stack trace, nothing to tell
me what I did wrong. Another time I had a template match that was very
specific. I expected it to have precedence over the more general template.
It did not, and I have no clue. I ultimately put in a priority to get my
expected value.

I am new to XSL. Is there any other free tool that would help me debug 
XSL
that Solr would accept? I have Visual Studio (full version) that has XSLT
debugging – but I have not tried this as yet. Would Solr accept as valid
what Visual Studio OKs?

I’m sorry I am new to this. I’d be grateful for any pointers.

Thank you,
O.O.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Debugging-Solr-XSL-tp4070368.html
Sent from the Solr - User mailing list archive at Nabble.com.





Re: Debugging Solr XSL

2013-06-13 Thread Upayavira
Use command line Xalan, debug the stylesheet outside of Solr. You can
save the XML output to disk, and then transform that with xalan. 

Upayavira

On Thu, Jun 13, 2013, at 10:45 PM, O. Olson wrote:
> Hi,
> 
>   I am attempting to transform the XML output of Solr using the
> XsltResponseWriter http://wiki.apache.org/solr/XsltResponseWriter to
> HTML.
> This works, but I am wondering if there is a way for me to debug my
> creation
> of XSL. If there is any problem in the XSL you simply get a stack trace
> in
> the Solr Output. 
> 
>   For e.g. In adding a HTML Link Tag to my XSL, I forgot the closing i.e. 
> I
> did “>” instead of a “/>”. I would just get a stack trace, nothing to
> tell
> me what I did wrong. Another time I had a template match that was very
> specific. I expected it to have precedence over the more general
> template.
> It did not, and I have no clue. I ultimately put in a priority to get my
> expected value. 
> 
>   I am new to XSL. Is there any other free tool that would help me debug 
> XSL
> that Solr would accept? I have Visual Studio (full version) that has XSLT
> debugging – but I have not tried this as yet. Would Solr accept as valid
> what Visual Studio OKs?
> 
>   I’m sorry I am new to this. I’d be grateful for any pointers. 
> 
> Thank you,
> O.O.
> 
> 
> 
> 
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Debugging-Solr-XSL-tp4070368.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Debugging Solr XSL

2013-06-13 Thread O. Olson
Hi,

I am attempting to transform the XML output of Solr using the
XsltResponseWriter http://wiki.apache.org/solr/XsltResponseWriter to HTML.
This works, but I am wondering if there is a way for me to debug my creation
of XSL. If there is any problem in the XSL you simply get a stack trace in
the Solr Output. 

For e.g. In adding a HTML Link Tag to my XSL, I forgot the closing i.e. 
I
did “>” instead of a “/>”. I would just get a stack trace, nothing to tell
me what I did wrong. Another time I had a template match that was very
specific. I expected it to have precedence over the more general template.
It did not, and I have no clue. I ultimately put in a priority to get my
expected value. 

I am new to XSL. Is there any other free tool that would help me debug 
XSL
that Solr would accept? I have Visual Studio (full version) that has XSLT
debugging – but I have not tried this as yet. Would Solr accept as valid
what Visual Studio OKs?

I’m sorry I am new to this. I’d be grateful for any pointers. 

Thank you,
O.O.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Debugging-Solr-XSL-tp4070368.html
Sent from the Solr - User mailing list archive at Nabble.com.