[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Need some Advice

Subject: Re: Need some Advice
From: "Christophe Marchand cmarchand@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 7 Feb 2022 14:12:51 -0000
Re:  Need some Advice
Just to point out some rules on how a XSLT should be written, you can 
have a look at Sonar-Xsl[1], by Jim Etevenard, and its talk at XML 
Prague[2]. When this project was presented at Prague, there were very 
few discussions on good or poor writing rules, but a lot of interest 
from community for such a tool ; the entire community agreed the rules used.

I'm sure your guy uses Sonar to check code, and relies on it ! Just ask 
to add a new plugin to Sonar, and have an independant analysis result !

Behing the scene, this plugin is based on some schematron rules, written 
by Matthieu Ricaud[3], and based on various sources, Mukul Gandi, Gerrit 
Imsieke, and others

Hope this helps you to make the other guy take the right road !
Christophe

[1] https://github.com/sonar-xsl/Sonar-XSL-Plugin
[2] https://www.xmlprague.cz/day3-2019/#sonar and 
https://www.youtube.com/watch?v=qWFHsVQjJPA&list=PLQpqh98e9RgVcYmjmJ9OXrkHNDXuYB035&index=19
[3] https://github.com/mricaud/xslt-quality

Le 04/02/2022 C  19:01, Mailing Lists Mail daktapaal@xxxxxxxxx a C)critB :
> Hello All,
> I need some advice from you all. I have been working with XSLT for 
> last 15 years and I have now come across a contract opportunity with a 
> financial firm in Australia and I am like weeks into it. I was told 
> that the clients are bound with XSLT1.0 and XSLT 2.0 does not work. I 
> was wondering why it does not work. I asked if they used MS parser 
> etc. and nothing of that sort is happening. When I looked into the 
> code i figured why xslt2.0 wont work. it wont because of the wrong 
> coding. xml elements are coded as text using &lt; and &gt; and the 
> textB  is not in the xsl:text andB  xpaths areB  all unbelievable . No 
> one with even 1 year of exp with xslt will even fathom such xpaths. 
> there are circular xpaths, no keys .. no variables. using the same 
> complicated xpaths over and over again in consecutive lines of code. 
> and its all a mess. Super mess and it makes me cry.B  So messed up that 
> you can not format the code because you will break the spacing in the 
> text nodes..The reasoning.? The one who did the initial work was a 
> contractor who did not know Xslt.
>
> part 2 of the story..
> I started coding and I have a muscle memory of doing the things in a 
> certain way ( hopefully the right way ).. I was pulled in into a 
> meeting saying that my code is messed up and that I am doing things 
> the way that is against the coding standards practice of company .. 
> every line of the code was changed to how they do it/// . keys 
> removed, xsl:text removed, and every nightmare i imagine was asked to 
> make and by me. I checked in the code now they way they do, knowing 
> very well that it is messy..
>
> I am pulled everyday and told that my XSLT coding is not correct. I 
> have always stood as the XSLT conscience and people have learnt from 
> me. Not blowing trumpets of myself, but the current situation is very 
> basic very very basic. I did not do these mistakes on my first job 
> with no experience.
>
> What do I do??
> 1.Resign and let them be as they want to ?
> 2. continue and do the coding the way they want and hopefully I will 
> get used to it in a couple of months and I suffer until then
>
> My heart breaks here to see the attitude that someone is holding my 
> hand to make me do bad things..... The attitude is clear. "you shall 
> do as we say". You can chuck your XSLT coding practices..
>
> Makes me remember a contractor who came home to cut trees. I asked him 
> to do it a certain way and he said he wouldn't do it even if I gave 
> him 2000 GBP.
>
> Please advice.
> Dr. Tapaal Dakota
> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
> EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/2837134> 
> (by email <>)

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.