欢迎来到天天文库
浏览记录
ID:10258561
大小:379.50 KB
页数:21页
时间:2018-06-14
《xml_processing_moves_forward_xslt_20_and_xquery》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、XMLProcessingMovesForwardXSLT2.0andXQuery1.0MichaelKayPrague2005AboutmeDatabasebackgroundStartedusingXMLin1998forcontentmanagementapplicationsAuthorofXSLTProgrammer’sReferenceDeveloperofSaxonXSLTprocessorMemberofW3CXSLandXQueryWorkingGroupsFoundedSAXONICAMarch20042Content
2、sAtourofthenewspecsWhat’ssignificantaboutXSLT2.0AquickdemoWhyXQuery?3TheQTSpecificationFamilyXSLT2.0XQuery1.0XPath2.0DataModelXMLSchemaFunctionsandOperators4XSLT1.0XPath1.0StandardsmaturityMaturityTimeXQueryXSLT2.0XPath2.0XMLSchemaXMLRECCR5XMLSchemaAfamilyofstandard
3、sXPath1.0XPath2.0XQuery1.0XSLT1.0XSLT2.06XSLTandXQueryDocumentsDataXSLTXQuery7What’snewinXSLT2.0NewProcessingModelMajorFeaturesgroupingregularexpressionsfunctionsschemasupportMany“minor”features8Some“minor”featuresXSLT2.0TemporarytreesMultipleOutputFilesFormatdate/timeTun
4、nelparametersDeclaredvariabletypesMulti-modetemplatesxsl:next-matchconditionalcompilationXHTMLserializationxsl:namespaceseparator=“,”charactermapsXPath2.0Sequencesif..then..elsefor$xinXreturnf($x)some/everyexcept/intersect$nis$mFunctionlibraryStringfunctionsRegexfunctions
5、Date/timearithmeticURIhandlingmin(),max(),avg()9Handlingunstructuredtextunparsed-text()functionreadsatextfileintoastringtokenize()functionsplitsastringintosubstringsxsl:analyze-stringparsesastringandgeneratesmarkup10Regularexpressionfunctionsmatches()testifastringmatchesa
6、regexif(matches($in,‘[A-Z]{3}[0-9]{3}’)tokenize()splitastringintosubstringsregexmatchestheseparatorfor$sintokenize($in,‘,s?’)...replace()replaceeveryoccurrenceofamatchreplace($in,‘s’,‘%20’)11GroupingTakesanysequenceasinputDividestheitemsintogroupsAppliesprocessingtoeach
7、groupgroup-by:itemswithacommonvalueforagroupingkeygroup-adjacent:adjacentitemswithacommongroupingkeygroup-starting-with:patterntomatchfirstitemineachgroupgroup-ending-with:patterntomatchlastitemineachgroup12GroupingbyValue8、r”>Publisher:
8、r”>
此文档下载收益归作者所有
点击更多查看相关文章~~