299 else if (stylesheet
is string text)
341 for (
int i = 0; i < attributes.Length; i++)
394 object entity =
xmlResolver.GetEntity(uri,
null,
null);
418 string baseURI = reader.
BaseURI;
714 ReportNYI(
"xsl:output/@byte-order-mark");
721 for (
int i = 0; i <
array.Length; i++)
771 ReportNYI(
"xsl:output/@escape-uri-attributes == flase()");
775 ReportNYI(
"xsl:output/@include-content-type == flase()");
799 ReportNYI(
"xsl:output/@normalization-form");
825 ReportNYI(
"xsl:output/@undeclare-prefixes == true()");
830 ReportNYI(
"xsl:output/@use-character-maps");
852 if (
output.MediaTypePrec ==
int.MinValue)
862 switch (
item.NodeType)
881 switch (
attSet.CycleCheck)
924 if (
text ==
null == (
list.Count == 0))
928 else if (
text ==
null)
973 char[]
array =
new char[8];
974 for (
int i = 0; i < 8; i++)
978 for (
int j = 0;
j < 7;
j++)
980 for (
int k =
j + 1;
k < 7;
k++)
997 for (
int l = 0;
l < 8;
l++)
1016 string text2 =
null;
1017 string text3 =
null;
1110 double num =
double.NaN;
1165 if (
text ==
"http://www.w3.org/1999/XSL/Transform")
1226 if (nodeType !=
XmlNodeType.SignificantWhitespace)
1254 instruction = (
Ref.
Equal(localName,
_atoms.
ApplyImports) ?
XslApplyImports() : (
Ref.
Equal(localName,
_atoms.
ApplyTemplates) ?
XslApplyTemplates() : (
Ref.
Equal(localName,
_atoms.
CallTemplate) ?
XslCallTemplate() : (
Ref.
Equal(localName,
_atoms.
Copy) ?
XslCopy() : (
Ref.
Equal(localName,
_atoms.
CopyOf) ?
XslCopyOf() : (
Ref.
Equal(localName,
_atoms.
Fallback) ?
XslFallback() : (
Ref.
Equal(localName,
_atoms.
If) ?
XslIf() : (
Ref.
Equal(localName,
_atoms.
Choose) ?
XslChoose() : (
Ref.
Equal(localName,
_atoms.
ForEach) ?
XslForEach() : (
Ref.
Equal(localName,
_atoms.
Message) ?
XslMessage() : (
Ref.
Equal(localName,
_atoms.
Number) ?
XslNumber() : (
Ref.
Equal(localName,
_atoms.
ValueOf) ?
XslValueOf() : (
Ref.
Equal(localName,
_atoms.
Comment) ?
XslComment() : (
Ref.
Equal(localName,
_atoms.
ProcessingInstruction) ?
XslProcessingInstruction() : (
Ref.
Equal(localName,
_atoms.
Text) ?
XslText() : (
Ref.
Equal(localName,
_atoms.
Element) ?
XslElement() : (
Ref.
Equal(localName,
_atoms.
Attribute) ?
XslAttribute() : (
Ref.
Equal(localName,
_atoms.
Variable) ?
XslVarPar() : (
Ref.
Equal(localName,
_atoms.
Param) ?
XslVarPar() : (
Ref.
Equal(localName,
_atoms.
Sort) ?
XslSort(num++) :
LoadUnknownXsltInstruction(elementName)))))))))))))))))))));
1328 if (
list.Count != 0)
1341 if (
list.Count != 0)
1343 ReportNYI(
"xsl:apply-imports/xsl:with-param");
1380 ReportNYI(
"xsl:copy[@copy-namespaces = 'no']");
1384 ReportNYI(
"xsl:copy[@inherit-namespaces = 'no']");
1402 ReportNYI(
"xsl:copy-of[@copy-namespaces = 'no']");
1512 if (
list.Count != 0)
1560 if (!
string.IsNullOrEmpty(
value2))
1571 return SetInfo(
AstFactory.
Number(level,
count,
from,
value,
text2, lang,
letterValue,
groupingSeparator,
groupingSize,
_input.
XslVersion),
null, attributes);
1584 text2 = ((
text !=
null) ?
" " :
string.Empty);
1605 if (
list.Count != 0)
1630 ReportNYI(
"xsl:param/@required == true()");
1648 ReportNYI(
"xsl:param/@tunnel == true()");
1674 if (
list.Count != 0)
1688 ReportNYI(
"xsl:processing-instruction/@select");
1704 if (nodeType ==
XmlNodeType.Text || (uint)(nodeType - 13) <= 1
u)
1725 ReportNYI(
"xsl:copy[@inherit-namespaces = 'no']");
1781 if (
list.Count != 0)
1888 if (
list.Count == 0)
1904 if (!
V1 &&
value ==
"#default")
1908 else if (!
V1 &&
value ==
"#current")
1910 ReportNYI(
"xsl:apply-templates[@mode='#current']");
1913 else if (!
V1 &&
value ==
"#all")
1936 if (
value ==
"#all")
1938 ReportNYI(
"xsl:template[@mode='#all']");
1944 if (
array.Length == 0)
1961 ReportNYI(
"xsl:apply-templates[@mode='#current']");
2000 if (
list.Count == 0)
2092 if (elements ==
null || elements.Length == 0)
2097 for (
int i = 0; i <
array.Length; i++)
2116 int index = ((localName ==
null) ? 1 : 0) + ((
text ==
null) ? 1 : 0);
2158 foreach (
string qname
in array)
2175 foreach (
string qname
in array)
2256 goto case "preserve";
2262 goto case "preserve";
2340 if (content !=
null && content.
Count == 0)
2344 node.SetContent(content);
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool ContainsKey(TKey key)
void AddRange(IEnumerable< KeyValuePair< TKey, TValue > > collection)
void Add(TKey key, TValue value)
bool Contains(object key)
void Add(object key, object? value)
static bool LimitXPathComplexity
static string Xslt_ModeListDup
static string Xslt_ModeListAll
static string Xslt_NonTemplateTunnel
static string Xslt_ReservedNS
static string Xslt_RequiredAndSelect
static string Xslt_MissingAttribute
static string Xslt_InputTypeAnnotations
static string Xslt_EmptyNsAlias
static string Xslt_BistateAttribute
static string Xslt_PriorityWithoutMatch
static string Xslt_EmptyAttrValue
static string Xslt_NoSelectNoContent
static string Xslt_DupTemplateName
static string Xslt_CharAttribute
static string Xslt_InvalidMethod
static string Xslt_InvalidApplyImports
static string Xslt_WrongStylesheetElement
static string Xslt_DupOtherwise
static string Xslt_InvalidAttrValue
static string Xslt_ModeListEmpty
static string Xslt_SortStable
static string Xslt_NoWhen
static string Xslt_BothMatchNameAbsent
static string Xslt_NotAtTop
static string Xslt_KeyCntUse
static string Xslt_AttributeRedefinition
static string Xslt_CantResolve
static string Xslt_NullNsAtTopLevel
static string Xslt_NotEmptyContents
static string Xslt_DupGlobalVariable
static string Xslt_InputTooComplex
static string Xslt_WhenAfterOtherwise
static string Xslt_UnknownExtensionElement
static string Xslt_CircularInclude
static string Xslt_SchemaAttributeValue
static string Xslt_DupNsAlias
static string Xslt_NotYetImplemented
static string Xslt_TextNodesNotAllowed
static string Xslt_DecimalFormatRedefined
static string Xslt_InvalidEncoding
static string Xslt_SchemaAttribute
static string Xslt_ScriptXsltNamespace
static string Xslt_ModeWithoutMatch
static string Xslt_CircularAttributeSet
static string Xslt_CannotLoadStylesheet
static string CompilingScriptsNotSupported
static string Xslt_ElementCntSel
static string Xslt_DecimalFormatSignsNotDistinct
static string Xslt_UnexpectedElement
static string Xslt_DuplicateWithParam
static Encoding GetEncoding(int codepage)
override string ToString()
static bool Equal(string strA, string strB)
static XPathNavigatorReader Create(XPathNavigator navToRead)
static string[] SplitString(string value)
static bool IsCatchableException(Exception e)
static readonly XmlNullResolver Singleton
virtual Uri ResolveUri(Uri? baseUri, string? relativeUri)
XmlOutputMethod OutputMethod
List< XmlQualifiedName > CDataSectionElements
XmlReader CreateReader(Stream stream, string baseUri)
static unsafe double StringToDouble(string s)
static string CreateMessage(ISourceLineInfo lineInfo, string res, params string[] args)
static XsltException Create(string res, params string[] args)
static XslNode CopyOf(string select, XslVersion xslVer)
static XslNode Text(string data)
static XslNode LiteralElement(QilName name)
static XslNodeEx CallTemplate(QilName name, XsltInput.ContextInfo ctxInfo)
static XslNode XslNode(XslNodeType nodeType, QilName name, string arg, XslVersion xslVer)
static XslNode Message(bool term)
static AttributeSet AttributeSet(QilName name)
static Sort Sort(string select, string lang, string dataType, string order, string caseOrder, XslVersion xslVer)
static Number Number(NumberLevel level, string count, string from, string value, string format, string lang, string letterValue, string groupingSeparator, string groupingSize, XslVersion xslVer)
static QilName QName(string local, string uri, string prefix)
static NodeCtor Attribute(string nameAvt, string nsAvt, XslVersion xslVer)
static Key Key(QilName name, string match, string use, XslVersion xslVer)
static VarPar VarPar(XslNodeType nt, QilName name, string select, XslVersion xslVer)
static NodeCtor Element(string nameAvt, string nsAvt, XslVersion xslVer)
static XslNode If(string test, XslVersion xslVer)
static XslNode Error(string message)
static XslNodeEx ApplyTemplates(QilName mode, string select, XsltInput.ContextInfo ctxInfo, XslVersion xslVer)
static XslNode LiteralAttribute(QilName name, string value, XslVersion xslVer)
static XslNode PI(string name, XslVersion xslVer)
static XslNodeEx ForEach(string select, XsltInput.ContextInfo ctxInfo, XslVersion xslVer)
static XslNode ApplyImports(QilName mode, Stylesheet sheet, XslVersion xslVer)
static XslNode UseAttributeSet(QilName name)
static Template Template(QilName name, string match, QilName mode, double priority, XslVersion xslVer)
static XslNode Otherwise()
string CreatePhantomNamespace()
bool ParseNameTest(string nameTest, out string prefix, out string localName, IErrorHelper errorHelper)
Dictionary< QilName, AttributeSet > AttributeSets
bool IsPhantomNamespace(string namespaceName)
void MergeWithStylesheet(Stylesheet sheet)
readonly string PhantomNCName
Stylesheet CreateStylesheet()
void ReportWarning(ISourceLineInfo lineInfo, string res, params string[] args)
void EnterForwardsCompatible()
bool ExitForwardsCompatible(bool fwdCompat)
void ReportError(ISourceLineInfo lineInfo, string res, params string[] args)
DecimalFormats DecimalFormats
bool SetNsAlias(string ssheetNsUri, string resultNsUri, string resultPrefix, int importPrecedence)
void AddModule(string baseUri)
string inputTypeAnnotations
List< ProtoTemplate > AllTemplates
bool ParseQName(string qname, out string prefix, out string localName, IErrorHelper errorHelper)
string ProcessingInstruction
TrimSafeDictionary ScriptClasses
bool AddVarPar(VarPar var)
Dictionary< QilName, AttributeSet > AttributeSets
bool AddTemplate(Template template)
void AddWhitespaceRule(int index, WhitespaceRule rule)
void SaveExtendedLineInfo(XsltInput input)
void LoadGlobalVariableOrParameter(NsDecl stylesheetNsList, XslNodeType nodeType)
void Load(XmlReader reader)
readonly XsltInput.XsltAttribute[] _scriptAttributes
readonly XsltInput.XsltAttribute[] _usingAttributes
readonly XsltInput.XsltAttribute[] _messageAttributes
readonly XsltInput.XsltAttribute[] _valueOfAttributes
void LoadKey(NsDecl stylesheetNsList)
XslNode LoadLiteralResultElement(bool asStylesheet)
readonly XsltInput.XsltAttribute[] _decimalFormatAttributes
void ReportError(string res, params string[] args)
List< XslNode > LoadInstructions(InstructionFlags flags)
void LoadStripSpace(NsDecl stylesheetNsList)
Stylesheet LoadStylesheet(Uri uri, bool include)
void ReportWarning(string res, params string[] args)
readonly XsltInput.XsltAttribute[] _ifAttributes
readonly XsltInput.XsltAttribute[] _applyTemplatesAttributes
void ParseValidationAttribute(int attNum, bool defVal)
QueryReaderSettings _readerSettings
readonly XsltInput.XsltAttribute[] _callTemplateAttributes
void LoadMsScript(NsDecl stylesheetNsList)
readonly XsltInput.XsltAttribute[] _attributeSetAttributes
List< QilName > ParseUseCharacterMaps(int attNum)
List< XslNode > LoadContent(bool hasSelect)
void LoadRealStylesheet()
static void AddInstruction(List< XslNode > content, XslNode instruction)
readonly XsltInput.XsltAttribute[] _forEachAttributes
static NsDecl MergeNamespaces(NsDecl thisList, NsDecl parentList)
XmlQualifiedName ParseOutputMethod(string attValue, out XmlOutputMethod method)
readonly XsltInput.XsltAttribute[] _sortAttributes
readonly XsltInput.XsltAttribute[] _loadStripSpaceAttributes
string ParseNCNameAttribute(int attNum)
TriState ParseYesNoAttribute(int attNum, string attName)
Stylesheet _curStylesheet
readonly XsltInput.XsltAttribute[] _paramAttributes
QilName ParseQNameAttribute(int attNum)
XslNode LoadUnknownXsltInstruction(string parentName)
readonly XsltInput.XsltAttribute[] _attributeAttributes
readonly XsltInput.XsltAttribute[] _copyAttributes
void CheckError(bool cond, string res, params string[] args)
void AddUseAttributeSets(List< XslNode > list)
void ProcessOutputSettings()
string ParseStringAttribute(int attNum, string attName)
List< XslNode > LoadInstructions()
XmlReader CreateReader(Uri uri, XmlResolver xmlResolver)
List< XslNode > LoadWithParams(InstructionFlags flags)
void ReportNYI(string arg)
bool ResolveQName(bool ignoreDefaultNs, string qname, out string localName, out string namespaceName, out string prefix)
QilName ParseModeListAttribute(int attNum)
readonly XsltInput.XsltAttribute[] _keyAttributes
Stylesheet LoadStylesheet(XmlReader reader, bool include)
readonly XsltInput.XsltAttribute[] _stylesheetAttributes
void LoadNamespaceAlias(NsDecl stylesheetNsList)
XslNode XslApplyTemplates()
readonly XsltInput.XsltAttribute[] _processingInstructionAttributes
void ParseInputTypeAnnotationsAttribute(int attNum)
XslNode XslApplyImports()
List< XslNode > LoadFallbacks(string instrName)
void ParseTypeAttribute(int attNum)
readonly XsltInput.XsltAttribute[] _withParamAttributes
QilName ParseModeAttribute(int attNum)
List< XslNode > LoadInstructions(List< XslNode > content, InstructionFlags flags)
readonly XsltInput.XsltAttribute[] _templateAttributes
void CheckWithParam(List< XslNode > content, XslNode withParam)
static XslNode SetInfo(XslNode to, List< XslNode > content, XsltInput.ContextInfo info)
XslNode XslSort(int sortNumber)
void LoadAttributeSet(NsDecl stylesheetNsList)
int _loadInstructionsDepth
readonly XsltInput.XsltAttribute[] _commentAttributes
XslNode XslCallTemplate()
readonly XsltInput.XsltAttribute[] _elementAttributes
void ParseWhitespaceRules(string elements, bool preserveSpace)
Uri ResolveUri(string relativeUri, string baseUri)
readonly XsltInput.XsltAttribute[] _copyOfAttributes
readonly XsltInput.XsltAttribute[] _numberAttributes
ISourceLineInfo SkipEmptyContent()
void CheckAttributeSetsDfs(AttributeSet attSet)
static XslNode SetLineInfo(XslNode node, ISourceLineInfo lineInfo)
void LoadTemplate(NsDecl stylesheetNsList)
char ParseCharAttribute(int attNum, string attName, char defVal)
readonly XsltInput.XsltAttribute[] _namespaceAliasAttributes
readonly XsltInput.XsltAttribute[] _outputAttributes
void LoadDecimalFormat(NsDecl stylesheetNsList)
readonly XsltInput.XsltAttribute[] _textAttributes
readonly HybridDictionary _documentUriInUse
List< XslNode > LoadEndTag(List< XslNode > content)
List< XslNode > LoadInstructions(List< XslNode > content)
readonly XsltInput.XsltAttribute[] _importIncludeAttributes
static void SetContent(XslNode node, List< XslNode > content)
XslNode XslProcessingInstruction()
string ParseCollationAttribute(int attNum)
QilName CreateXPathQName(string qname)
void Load(Compiler compiler, object stylesheet, XmlResolver xmlResolver)
XmlQualifiedName ResolveQName(bool ignoreDefaultNs, string qname)
void LoadPreserveSpace(NsDecl stylesheetNsList)
readonly XsltInput.XsltAttribute[] _assemblyAttributes
readonly XsltInput.XsltAttribute[] _variableAttributes
void AtomizeAttributes(XsltInput.XsltAttribute[] attributes)
void CheckUseAttrubuteSetInList(IList< XslNode > list)
void LoadSimplifiedStylesheet()