-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
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 daniel.s...@gmail.com on 1 Jan 2014 at 11:39