如何在C#中使用XSLT将XML转换为HTML

时间:2018-06-19 14:23:01

标签: xml xslt

如何使用XSLT和C#.Net将XML转换为HTML?

<?xml version="1.0" encoding="ISO-8859-1"?>

<doc xmlns:lnci="http://www.lexis-nexis.com/lnci" xmlns:lnv="http://www.lexis-nexis.com/lnv" xmlns:lndocmeta="http://www.lexis-nexis.com/lndocmeta" xmlns:ref="http://www.lexisnexis.com/xmlschemas/content/shared/reference/1/">

<lnv:LEVEL-1>
    Chapter 1.  The State and Its Subdivisions.
</lnv:LEVEL-1> 

<lnv:LEVEL-2>
    Article 1.  Limits and Jurisdiction.
</lnv:LEVEL-2>

<lnv:CITE>
    <ref:cite4thisresource>
        <lnci:cite>
            <lnci:content>
                W. Va. Code § 1-1-1
            </lnci:content>
        </lnci:cite>
    </ref:cite4thisresource>
</lnv:CITE>

<lnv:SECTION-1>
    <emph typestyle="bf">
        § 1-1-1.  Counties comprising State of West Virginia.
    </emph>
</lnv:SECTION-1>

<lnv:TEXT-1>
    The state of West Virginia includes all the territory formerly belonging to the state of Virginia and now comprising the following counties, to wit: Barbour, Berkeley, Boone, Braxton, Brooke, Cabell, Calhoun, Clay, Doddridge, Fayette, Gilmer, Grant, Greenbrier, Hampshire, Hancock, Hardy, Harrison, Jackson, Jefferson, Kanawha, Lewis, Lincoln, Logan, Marion, Marshall, Mason, McDowell, Mercer, Mineral, Mingo, Monongalia, Monroe, Morgan, Nicholas, Ohio, Pendleton, Pleasants, Pocahontas, Preston, Putnam, Raleigh, Randolph, Ritchie, Roane, Summers, Taylor, Tucker, Tyler, Upshur, Wayne, Webster, Wetzel, Wirt, Wood and Wyoming.
</lnv:TEXT-1>

</doc>

0 个答案:

没有答案