blob: 4f6cdab5eb65397230b0bca294babed8dfd9da32 [file] [log] [blame]
<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Exclude-Result-Prefixes</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xsleditor_contentassist.html" title="Content Assist"><link rel="prev" href="xsleditor_contentassist_selecttest.html" title="Select, Test, and Match Attributes"><link rel="next" href="xsleditor_contentassist_modeassist.html" title="Mode attribute assistance"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="ExcludeResultPrefixesContentAssist"></a>Exclude-Result-Prefixes</h3></div></div></div><p>
The
<span class="emphasis"><em>exclude-result-prefixes</em></span>
attribute in both XSLT 1.0 and XSLT 2.0 allows for the exclusion of
certain namespace declarations in the output document. The content
assistance populates a list of available namespaces that have been defined
in the stylseheet and provides them as proposals as shown in
<a class="xref" href="xsleditor_contentassist_exclude.html#fig_ExcludeResultPrefixesContentAssist1" title="Figure&nbsp;2.&nbsp;Exclude-result-prefixes Content Assistance">Figure&nbsp;2, &ldquo;Exclude-result-prefixes Content Assistance
&rdquo;</a>
.
</p><div class="figure"><a name="fig_ExcludeResultPrefixesContentAssist1"></a><p class="title"><b>Figure&nbsp;2.&nbsp;Exclude-result-prefixes Content Assistance
</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/ExcludeContentAssist1.png" align="middle" alt="Exclude-result-prefixes Content Assistance"></div></div></div><br class="figure-break"><p>
If the attribute has no values defined, then the
<span class="emphasis"><em>#all</em></span>
value will be available in the list. If #all is already in the attributes
value, then no content assistance will be available.
</p><div class="figure"><a name="fig_ExcludeResultPrefixesContentAssist2"></a><p class="title"><b>Figure&nbsp;3.&nbsp;Filtered exclude-result-prefixes proposals</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/ExcludeContentAssist2.png" align="middle" alt="Filtered exclude-result-prefixes proposals"></div></div></div><br class="figure-break"><p>Content assistance is intelligent enough to know when a namespace
prefix is already in the list of excluded namespaces. In this case it will
not show the namespace in the proposal list.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title"> Why isn't the XSL Namespace prefix in the proposals?</h3><p>Currently the xsl prefix or any prefix that uses the XSL
namespace is excluded from the list. This may be changed at a future
date. This will depend on user feedback.</p></div></div></body></html>