Yesterday
-
-
-
-
r53
(Now merges adjacent text nodes when comparing actual and exp...) committed by jeni.tennison
- Now merges adjacent text nodes when comparing actual and expected results
Now merges adjacent text nodes when comparing actual and expected results
Last 30 days
-
r52
(Added two summaries of results for instant gratification. A...) committed by dev.xs...@menteithconsulting.com
- Added two summaries of results for instant gratification. Added two
'callback' functions for handling @pending and separator between
scenario texts so can be customised by using a stylesheet that imports
this stylesheet, e.g.:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:x="http://www.jenitennison.com/xslt/xspec"
exclude-result-prefixes="x xs"
xmlns="http://www.w3.org/1999/xhtml">
<xsl:import href="format-xspec-report.xsl" />
<xsl:param name="ticket-url" select="'https://example.com/ticket/%d'"/>
<xsl:function name="x:pending-callback" as="node()*">
<!-- returns formatted output for $pending. -->
<xsl:param name="pending" as="xs:string?"/>
<xsl:if test="$pending">
<xsl:text>(</xsl:text>
<strong>
<!-- Turn ticket numbers into links to tickets. -->
<xsl:analyze-string
select="$pending"
regex="#(\d+)">
<xsl:matching-substring>
<xsl:variable name="ticket-number"
select="regex-group(1)"/>
<a href="{replace($ticket-url, '%d', $ticket-number)}">#<xsl:value-of select="$ticket-
number"/></a>
</xsl:matching-substring>
<xsl:non-matching-substring>
<xsl:value-of select="."/>
</xsl:non-matching-substring>
</xsl:analyze-string>
</strong>
<xsl:text>) </xsl:text>
</xsl:if>
</xsl:function>
<xsl:function name="x:separator-callback" as="node()*">
<!-- returns formatted output for separator between scenarios. -->
<span class="separator"><xsl:text> / </xsl:text></span>
</xsl:function>
</xsl:stylesheet>
Added two summaries of results for instant gratification. Added two
'callback' functions for handling @pending and separator between
scenario texts so can be customised by using a stylesheet that imports
this stylesheet, e.g.:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:x="http://www.jenitennison.com/xslt/xspec"
exclude-result-prefixes="x xs"
xmlns="http://www.w3.org/1999/xhtml">
<xsl:import href="format-xspec-report.xsl" />
<xsl:param name="ticket-url" select="'https://example.com/ticket/%d'"/>
<xsl:function name="x:pending-callback" as="node()*">
<!-- returns formatted output for $pending. -->
<xsl:param name="pending" as="xs:string?"/>
<xsl:if test="$pending">
<xsl:text>(</xsl:text>
<strong>
<!-- Turn ticket numbers into links to tickets. -->
<xsl:analyze-string
select="$pending"
regex="#(\d+)">
<xsl:matching-substring>
<xsl:variable name="ticket-number"
select="regex-group(1)"/>
<a href="{replace($ticket-url, '%d', $ticket-number)}">#<xsl:value-of select="$ticket-
number"/></a>
</xsl:matching-substring>
<xsl:non-matching-substring>
<xsl:value-of select="."/>
</xsl:non-matching-substring>
</xsl:analyze-string>
</strong>
<xsl:text>) </xsl:text>
</xsl:if>
</xsl:function>
<xsl:function name="x:separator-callback" as="node()*">
<!-- returns formatted output for separator between scenarios. -->
<span class="separator"><xsl:text> / </xsl:text></span>
</xsl:function>
</xsl:stylesheet>
Older
-
-
r51
(Fixed problem with namespace prefixes in generate-xspec-test...) committed by jeni.tennison
- Fixed problem with namespace prefixes in generate-xspec-tests.xsl stylesheet.
Fixed problem with namespace prefixes in generate-xspec-tests.xsl stylesheet.
-
r50
(Fix for bug that you get if you select something (eg a strin...) committed by jeni.tennison
- Fix for bug that you get if you select something (eg a string) with curly braces in it.
Fix for bug that you get if you select something (eg a string) with curly braces in it.
-
-
-
r49
(Removed debugging messages!) committed by jeni.tennison
- Removed debugging messages!
Removed debugging messages!
-
r48
(Fixed bug whereby element content wasn't compared if its val...) committed by jeni.tennison
- Fixed bug whereby element content wasn't compared if its value was '...', even if it contained
element (or other) content.
Fixed bug whereby element content wasn't compared if its value was '...', even if it contained
element (or other) content.
-
-
r47
(Tidying up echoing of @label and @pending during a test run.) committed by dev.xs...@menteithconsulting.com
- Tidying up echoing of @label and @pending during a test run.
Tidying up echoing of @label and @pending during a test run.
-
-
r45
(Added XSpec namespaces to list of omitted namespaces. Re Is...) committed by dev.xs...@menteithconsulting.com
- Added XSpec namespaces to list of omitted namespaces. Re Issue 6.
Added XSpec namespaces to list of omitted namespaces. Re Issue 6.
-
-
issue 5
(test="self::bogus" always succeeds) Labels changed by jeni.tennison
-
Labels:
Type-Enhancement Priority-Low
−Type-Defect −Priority-Medium
Labels:
Type-Enhancement Priority-Low
−Type-Defect −Priority-Medium
-
-
r44
(Fixed bug where 'report' output format wasn't provided.) committed by jeni.tennison
- Fixed bug where 'report' output format wasn't provided.
Fixed bug where 'report' output format wasn't provided.
-
r43
(Fixed a problem with the generation of external result docum...) committed by jeni.tennison
- Fixed a problem with the generation of external result documents, in that it was adding XSpec markup
to them. Now not.
Fixed a problem with the generation of external result documents, in that it was adding XSpec markup
to them. Now not.
-
-
-
-
-
r41
(Changed behaviour when reporting results of large documents;...) committed by jeni.tennison
- Changed behaviour when reporting results of large documents; these now get output as separate
documents rather than embedded in the report, otherwise (for large results) Ant has problems opening
the report to check whether the tests have succeeded or not. (It's also better for viewing the
report, as these are now links to XML files rather than embedded serialised XML.)
Changed behaviour when reporting results of large documents; these now get output as separate
documents rather than embedded in the report, otherwise (for large results) Ant has problems opening
the report to check whether the tests have succeeded or not. (It's also better for viewing the
report, as these are now links to XML files rather than embedded serialised XML.)
-
r40
(Added support for <label> element as well as label attribute...) committed by jeni.tennison
- Added support for <label> element as well as label attribute.
Added support for <label> element as well as label attribute.
-
r39
(Fixed xspec.rnc to allow <x:like> elements within scenarios.) committed by jeni.tennison
- Fixed xspec.rnc to allow <x:like> elements within scenarios.
Fixed xspec.rnc to allow <x:like> elements within scenarios.
-
r38
(Fixed bug that prevented the use of shared scenarios.) committed by jeni.tennison
- Fixed bug that prevented the use of shared scenarios.
Fixed bug that prevented the use of shared scenarios.
-
r37
(ant script for running XSpec) committed by jeni.tennison
- ant script for running XSpec
ant script for running XSpec
-
r36
(Removed a couple of errors in regular expressions that were ...) committed by jeni.tennison
- Removed a couple of errors in regular expressions that were spoiling the algorithm matching text to
node in the coverage report.
Removed a couple of errors in regular expressions that were spoiling the algorithm matching text to
node in the coverage report.
-
r35
(Work on coverage reporting. It's still buggy, and won't work...) committed by jeni.tennison
- Work on coverage reporting. It's still buggy, and won't work for large transformations due to memory
issues, but it's a start.
Work on coverage reporting. It's still buggy, and won't work for large transformations due to memory
issues, but it's a start.
-
r34
(Updated serialization options to indent report; updated enco...) committed by jsulak
- Updated serialization options to indent report; updated encoding to match stylesheets.
Updated serialization options to indent report; updated encoding to match stylesheets.
-
r33
(Fixed problem with manual recursion in item:deep-equal() cau...) committed by jeni.tennison
- Fixed problem with manual recursion in item:deep-equal() causing infinite recursion detection; used
every...satisfies... instead.
Fixed problem with manual recursion in item:deep-equal() causing infinite recursion detection; used
every...satisfies... instead.
-
issue 3
(Contribution: XProc XSpec pipeline) changed by jeni.tennison
-
Status:
Done
Labels:
Type-Enhancement
−Type-Defect
Status:
Done
Labels:
Type-Enhancement
−Type-Defect
-
-
r31
(XSpec XProc pipeline from James Sulak) committed by jeni.tennison
- XSpec XProc pipeline from James Sulak
XSpec XProc pipeline from James Sulak
-
-
issue 3
(Contribution: XProc XSpec pipeline) reported by jsulak
-
-
r29
(Added an error message for when a good prefix can't be ident...) committed by jeni.tennison
- Added an error message for when a good prefix can't be identified for a namespace.
Added an error message for when a good prefix can't be identified for a namespace.
-
r28
(Changed the locations of the comments a little so that they'...) committed by jeni.tennison
- Changed the locations of the comments a little so that they're picked up by Oxygen as applying to
elements.
Changed the locations of the comments a little so that they're picked up by Oxygen as applying to
elements.
-
r27
(Work on a utility for automatically generating XSpec tests.) committed by jeni.tennison
- Work on a utility for automatically generating XSpec tests.
Work on a utility for automatically generating XSpec tests.
-
issue 2
(Unable to produce HTML report when testing a stylesheet that...) commented on by jsulak
-
-
r26
(preserve-space attribute should be optional. Also changed de...) committed by jeni.tennison
- preserve-space attribute should be optional. Also changed definition of msxsl:node-set() to deal
better with sequences of nodes.
preserve-space attribute should be optional. Also changed definition of msxsl:node-set() to deal
better with sequences of nodes.
-
issue 2
(Unable to produce HTML report when testing a stylesheet that...) Status changed by jeni.tennison
-
-
r25
(Customisable whitespace handling: use preserve-space on <x:d...) committed by jeni.tennison
- Customisable whitespace handling: use preserve-space on <x:description> to list the QNames of
elements that appear within <x:context>, <x:expect> or <x:param> whose child whitespace should be
preserved.
Also a bug fix to ensure that the templates from the generated test stylesheet override any of those
in the stylesheet being tested. This is important if there are any mode="#all" templates in the
stylesheet being tested.
Customisable whitespace handling: use preserve-space on <x:description> to list the QNames of
elements that appear within <x:context>, <x:expect> or <x:param> whose child whitespace should be
preserved.
Also a bug fix to ensure that the templates from the generated test stylesheet override any of those
in the stylesheet being tested. This is important if there are any mode="#all" templates in the
stylesheet being tested.
-
r24
(Added some better support for whitespace handling within XSp...) committed by jeni.tennison
- Added some better support for whitespace handling within XSpecs.
Whitespace within XSpec context and expected trees is now significant if the elements are XHTML
spans and paragraphs. It's also possible to use <x:space> to mark whitespace that is significant
either in the source or result. And still possible to use xml:space="preserve".
Added some better support for whitespace handling within XSpecs.
Whitespace within XSpec context and expected trees is now significant if the elements are XHTML
spans and paragraphs. It's also possible to use <x:space> to mark whitespace that is significant
either in the source or result. And still possible to use xml:space="preserve".
-
-
r22
(Another fix to xspec.bat to handle whitespace in Windows fil...) committed by jeni.tennison
- Another fix to xspec.bat to handle whitespace in Windows file paths.
Another fix to xspec.bat to handle whitespace in Windows file paths.
-
issue 2
(Unable to produce HTML report when testing a stylesheet that...) reported by jsulak
-
|