Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wtp-incubator-dev] Exclude-Result-Prefixes content assistance

I just checked in code and unit tests for content assistance for the
exclude-result-prefixes xsl attribute.  The following stylesheet will be
used as an example:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
   exclude-result-prefixes="xhtml "
   xmlns:xhtml="http://www.w3.org/1999/xhtml";
   xmlns:test="http://www.examples.org/";>
   <xsl:template match="/">
       <!-- TODO: Auto-generated template -->
   </xsl:template>
</xsl:stylesheet>

When content assistance is invoked here, the proposal that will be
available will be the prefix for the http://www.exmaples.org
namespace.   The exclude-result-prefixes is a space separated list of
namespace prefixes that should not be included in the output
document.    Any value that is already in the list, is excluded from the
proposal list (i.e. xhtml is already defined so it won't show up).
Also, if the #all default value is in the list, then no proposals will
be shown as #all says to exclude all result prefixes.   If the list is
empty, then all available result prefixes will be in the proposal.

This should work on both XSLT 1.0 and XSLT 2.0 elements that support the
exclude-result-prefixes attribute.

This is available in the latest integration build.  Any problems or
bugs, please open them and I'll create appropriate unit tests for those
cases as well.






Back to the top