Testing a version 3.0 stylesheet

17 views
Skip to first unread message

Alex Jitianu

unread,
May 22, 2012, 5:58:33 AM5/22/12
to XSpec Developments
Hi,

I'm trying to test a version 3.0 stylesheet with XSpec 0.3. My
stylesheet has version "3.0" and my xspec file has the "xslt_version"
attribute set to 3.0 too. Executing the test gives errors like
"XTSE0010: Unknown XSLT element: iterate". Indeed, I'm using the
"xsl:iterate" element.

I've noticed that the compiled XSL has version "2.0" so I edited
generate-xspec-tests.xsl in template match="x:description" and changed
the line "<stylesheet version="2.0">" into "<stylesheet
version="{( @xslt-version, '2.0' )[1]}">". After this change the tests
are run successfully. Is this the correct way to do it or supporting
version 3.0 stylesheets in XSpec is more complex than that?

Thanks,
Alex

Florent Georges

unread,
May 22, 2012, 7:56:25 AM5/22/12
to xspe...@googlegroups.com
On 22 May 2012 11:58, Alex Jitianu wrote:

Hi,

> I'm trying to test a version 3.0 stylesheet with XSpec 0.3.

Interesting. I have first a question: does that mean oXygen 14 is
going to use XSpec 0.3? We have a 0.4 release pending acceptance for
quite a while now, it's maybe a good opportunity to release it before
oXygen 14 is released...?

> [...] and changed the line "<stylesheet version="2.0">" into
> "<stylesheet version="{( @xslt-version, '2.0' )[1]}">".

Good catch! I'll double-check it before, but I am going to check
that change in. Thanks!

Regards,

--
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/
Reply all
Reply to author
Forward
0 new messages