Hello,

No, the default validator is Saxon 9 because the XSL editor will detect automatically the XSLT version from <xsl:stylesheet version="2.0" ...

Your XSLT 2.0 code fragment is valid. I just tried that in Oxygen. Just to make sure the error refers to that code fragment please run the action Validate Document (the Validate toolbar or the Document -> Validate menu) on the attached stylesheet. Is there any validation error?


Regards,
Sorin


Tommy Nordgren wrote:
    Check what xslt transformer is used for the actual transformation.
As far as I know, it's Saxon 6.5 , (which is an xslt 1.0 transformer) by default.
A snippet of the XSL code is:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" ...
...

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
      xmlns:xs="http://www.w3.org/2001/XMLSchema";
      xmlns:gmd="ns2"
      xmlns:dif="ns3"
      exclude-result-prefixes="xs"
      version="2.0">

    <xsl:template match="/">
        <xsl:for-each
            select="dif:ISO_Topic_Category">
            <gmd:topicCategory>
                <gmd:MD_TopicCategoryCode>
                    <xsl:value-of select="lower-case(normalize-space(.))"/>
                </gmd:MD_TopicCategoryCode>
            </gmd:topicCategory>
        </xsl:for-each>
    </xsl:template>
</xsl:stylesheet>
_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Reply via email to