xsl:template/@exclude-result-prefixes

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
DavidPérez
Posts: 44
Joined: Fri Aug 05, 2005 2:18 pm

xsl:template/@exclude-result-prefixes

Post by DavidPérez » Fri Aug 19, 2005 3:49 pm

With Eclipse 3.1 and Oxygen 6.1, I don't get any autocompletion for entering
xsl:template/@exclude-result-prefixes in the XSLT editor

<xs:template xmlns:xs='....' >
....
</xs:template>

I have the cursor inside <xs:template> and press 'excl' and then hit Ctrl+espace and nothing happens.

I expect to autocomplete 'exclude-result-prefixes'.

george
Site Admin
Posts: 2100
Joined: Thu Jan 09, 2003 2:58 pm

Post by george » Fri Aug 19, 2005 4:06 pm

Hi David,

I can reproduce this behavior only with a version 1.0 XSLT stylesheet. That is because the exclude-result-prefixes attribute is not allowed inside xsl:template in XSLT 1.0, you should place it in the xsl:stylesheet element.

If I set the xsl:version to 2.0 then oXygen offers the exclude-result-prefixes attribute inside an xsl:template.

If you still have problems please post a cut down but complete XSLT stylesheet and a short description to reproduce the behavior.

Best Regards,
George

DavidPérez
Posts: 44
Joined: Fri Aug 05, 2005 2:18 pm

xs:stylesheet/@exclude-result-prefixes

Post by DavidPérez » Mon Aug 22, 2005 10:23 am

Sorry I meant xs:stylesheet/@exclude-result-prefixes.

This is a 1.0 feature and doesn't work.

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache » Mon Aug 22, 2005 3:10 pm

Hello,

It works for me. If I have

Code: Select all

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

</xsl:stylesheet>
in a XSL editor panel and I write excl after version="1.0" I see exclude-result-prefixes in the content completion window. Post the xsl:stylesheet tag of your stylesheet. Did you create the stylesheet with New - XSL Stylesheet ?

Best Regards,
Sorin

Post Reply