[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: test for ancestral attribute returning variant re
Attached is a small(ish) test case. Run test_version.xsl with control.xml as input and control.txt as output. Repeat with fail.xml and fail.txt. Both XML documents contain the same note (it's a cnote element) whose paragraph children specify the same version as the parent note. The relevant part of the output TXT files is the final 11 lines; you will see that control.txt has determined that the cnote should be rendered with a version while its descendants should not. However fail.txt shows that the version is repeated for all descendants. cheers T From: Michael Kay mike@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Monday, 25 October 2021 08:37 To: xsl-list <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: Re: test for ancestral attribute returning variant results You're going to ask for a small failing test case; unfortunately there isn't one :-( Just send the smallest one you can construct. Even if it appears complex, debugging something you can actually run is vastly easier than debugging something you can't. And remember: if you can't find the bug, that's usually because you're looking in the wrong place, and by only sending us part of the code, you might well be sending us only the part where the bug isn't. Michael Kay Saxonica XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/1349719> (by email <> ) [demime 1.01d removed an attachment of type application/x-zip-compressed which had a name of versiontest.zip]
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|