You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Create a stylesheet & scenario where the expected output includes xsl:text eg
<x:scenario label="simple paragraph">
<x:context>
<p>Here is some content</p>
</x:context>
<x:expect label="Correctly formatted as an fo:block">
<fo:block
font-size="12pt"
font-family="Helvetica"
font-weight="normal"
color="#404040"
space-after="6pt"><xsl:text>Here is some content</xsl:text></fo:block>
</x:expect>
</x:scenario>
2. Run the xspec
What is the expected output? What do you see instead?
Expect: Spec should run
Actual output: Fails to run with messages:
[xslt] Processing ../sample.xspec to ../xspec/resolveVariables.xsl
[xslt] Loading stylesheet ../xspec/src/compiler/generate-xspec-tests-oxygen.xsl
[xslt] ../xspec/src/compiler/generate-tests-helper.xsl:104: Fatal Error! Undeclared prefix in element name: o
[xslt] Failed to process ../sample.xspec
What version of the product are you using? On what operating system?
Using the version of xspec bundled with Oxygen XML.
Please provide any additional information below.
Within generate-tests-helper-xsl, I think you need to change 'o' to '__x' in
the following templates:
<xsl:template match="xsl:*" mode="test:create-xslt-generator">
<xsl:element name="__x:{ local-name() }">
<xsl:apply-templates select="@*|node()" mode="test:create-xslt-generator"/>
</xsl:element>
</xsl:template>
<xsl:template match="@xsl:*" mode="test:create-xslt-generator">
<xsl:attribute name="__x:{ local-name() }" select="."/>
</xsl:template>
Original issue reported on code.google.com by [email protected] on 1 Jan 2014 at 11:39
The text was updated successfully, but these errors were encountered:
Ahh, it's actually already been fixed - my bad! Just the version with oxygen is
out of date.
https://code.google.com/p/xspec/source/diff?spec=svn244&r=236&format=side&path=/
trunk/src/compiler/generate-tests-helper.xsl&old_path=/trunk/src/compiler/genera
te-tests-helper.xsl&old=229
* remove output and set up and clean test environment expath#57expath#64
- remove directories containing output of XSpec unit tests
- add directories and files to .gitignore
- set up and clean the bats testing environment
Original issue reported on code.google.com by
[email protected]
on 1 Jan 2014 at 11:39The text was updated successfully, but these errors were encountered: