XSLT piav qhia nrog piv txwv li cas?
XSLT piav qhia nrog piv txwv li cas?

Video: XSLT piav qhia nrog piv txwv li cas?

Video: XSLT piav qhia nrog piv txwv li cas?
Video: OSIsoft: Create a Custom Web, Part. v2010 2024, Kaum ib hlis
Anonim

XSLT yog hom lus hloov pauv rau XML . Qhov ntawd txhais tau tias, siv XSLT, koj tuaj yeem tsim lwm yam ntaub ntawv los ntawm ib qho XML ntaub ntawv. Piv txwv li, koj tuaj yeem coj XML cov ntaub ntawv tso tawm los ntawm ib lub database rau hauv ib co duab.

Tib neeg kuj nug, XSLT hom ntawv yog dab tsi?

XSLT (Extensible Stylesheet Language Transformations) yog ib hom lus rau kev hloov cov ntaub ntawv XML mus rau lwm cov ntaub ntawv XML, lossis lwm hom ntawv xws li HTML rau nplooj ntawv web, ntawv dawb lossis XSL Formatting Cov khoom, uas tom qab ntawd tuaj yeem hloov mus rau lwm hom, xws li PDF, PostScript thiab PNG.

Puas muaj leej twg siv XSLT ntxiv lawm? XSLT zoo nkauj heev tuag vim tsuas muaj ob peb tus neeg txhawb nqa xwb siv nws. Txawm li cas los xij, tsis muaj lwm txoj hauv kev rau nws. Yog tias koj twb muaj ib daim ntawv XML thiab yuav tau hloov nws mus rau ib yam dab tsi kom ua tau siv koj lub cuab tam, koj nyob nraum tej zaum zoo dua ntawm tsuas yog ua koj cov ntaub ntawv nrog XSLT (los yog XQuery).

Tib neeg kuj nug, Kuv yuav siv cov ntaub ntawv XSLT li cas?

Yog tias koj ua haujlwm hauv Microsoft Visual Studio 2005, koj tuaj yeem ua tau siv tus XSLT Cov ntaub ntawv template (hauv Visual Studio, nyem Cov ntaub ntawv , taw tes rau Tshiab, thiab tom qab ntawd nyem Cov ntaub ntawv.

  1. Tshem tawm cov lus hauv qab no XML code. Nov yog qhov uas koj sau koj tus lej XSLT.
  2. Tsim koj tus lej XSLT.
  3. Txuag cov ntaub ntawv raws li ProjectTransform.

XML puas yog lus programming?

XML tsis yog a programming lus . Muaj programming lus uas siv XML syntax, tshwj xeeb tshaj yog XSL. Muaj ntau yam kawm txog XML , txawm li cas los. XML tsis yog a programming lus ntxiv dua li HTML yog, txawm li cas los xij tons ntawm cov neeg tseem yuav sau HTML ua ib qho programming lus , yog li nws tsis xav tsis thoob.

Pom zoo: