Does LINQ to XML replace XSLT?

Is there anything in XSLT that cannot be done in LINQ to XML ? Still important to learn XSLT? When will you choose one by one?

+3
source share
3 answers

Is there anything you can do in XSLT that cannot be done in Linq for XML?

No, because LINQ to XML is the API used by the Turing programming languages ​​and covers more XML Infoset than the XSLT document model (for example, you can completely control the difference between text and CDATA nodes in L2X).

How important is learning XSLT?

Depending on what you do. In general, yes.

When do you pick one over the other?

XSLT , - , - XML. . , XSLT , ?: L2X, . * , (, " " " , " ), , - / node , L2X. , XPath , L2X ( , #), , , , , XSLT.

L2X , node. , (XPath , L2X ), XmlNamespaceManager cruft - API . , from let XQuery.

L2X , , , , - - XSLT 't .

+5

, XSLT. LINQ to XML , .NET Apps.

XSLT ... XML XSLT .

, .NET Application API (, CMS-) - , XSLT XML . , , .

+3

Not for those who do not use .NET.

+2
source

Source: https://habr.com/ru/post/1723681/


All Articles