Google Search Within



研究了一下Mambo系统,现在开始构建大致的框架,首先我选择使用xhtml 1.1来展示web内容,不过发现似乎使用这一标准的网站比较少,比较明显的一个例子就是w3c的官网都是xhtml 1.0,只有其xhtml 1.1标准文档采用的的确是xhtml 1.1。不过还是有个不小的收获,通过查看xhtml 1.1标准文档的源代码,发现了一个可以验证xhtml的工具Tidy。随即我便在SLED 11上安装了tidy,安装时,会自动将依赖库libtidy安装上。tidy的使用也很简单,例如,对用wget命令下载到本地的php网站输出index.html文件进行xhtml验证,只需在终端输入以下命令即可:
opentiss@tiss:~/Documents/tmp> tidy -asxhtml -utf8 < index.html > index.tidy.html
Info: Doctype given is "-//W3C//DTD XHTML 1.1//EN"                             
Info: Document content looks like XHTML 1.1                                    
No warnings or errors were found.                                              

To learn more about HTML Tidy see
Please send bug reports to
HTML and CSS specifications are available from
Lobby your company to join W3C, see
如果输出信息为“No warnings or errors were found.”,就表示您的xhtml文档没有与标准相冲突的问题存在。如果需要了解如何使用这一工具,只需在终端输入以下命令查看帮助即可:
opentiss@tiss:~> tidy -help
tidy [option...] [file...] [option...] [file...]
Utility to clean up and pretty print HTML/XHTML/XML

Options for HTML Tidy for Linux/x86 released on 31 October 2006:

File manipulation
 -output <file>, -o  write output to the specified <file>                      
 -config <file>      set configuration options from the specified <file>       
 -file <file>, -f    write errors to the specified <file>                      
 -modify, -m         modify the original input files                           

Processing directives
 -indent, -i         indent element content                                    
 -wrap <column>, -w  wrap text at the specified <column>. 0 is assumed if      
 <column>            <column> is missing. When this option is omitted, the     
                     default of the configuration option "wrap" applies.       
 -upper, -u          force tags to upper case                                  
 -clean, -c          replace FONT, NOBR and CENTER tags by CSS                 
 -bare, -b           strip out smart quotes and em dashes, etc.                
 -numeric, -n        output numeric rather than named entities                 
 -errors, -e         only show errors                                          
 -quiet, -q          suppress nonessential output                              
 -omit               omit optional end tags                                    
 -xml                specify the input is well formed XML                      
 -asxml, -asxhtml    convert HTML to well formed XHTML                         
 -ashtml             force XHTML to well formed HTML                           
 -access <level>     do additional accessibility checks (<level> = 0, 1, 2, 3).
                     0 is assumed if <level> is missing.                       

Character encodings
 -raw                output values above 127 without conversion to entities    
 -ascii              use ISO-8859-1 for input, US-ASCII for output             
 -latin0             use ISO-8859-15 for input, US-ASCII for output            
 -latin1             use ISO-8859-1 for both input and output                  
 -iso2022            use ISO-2022 for both input and output                    
 -utf8               use UTF-8 for both input and output                       
 -mac                use MacRoman for input, US-ASCII for output               
 -win1252            use Windows-1252 for input, US-ASCII for output           
 -ibm858             use IBM-858 (CP850+Euro) for input, US-ASCII for output   
 -utf16le            use UTF-16LE for both input and output                    
 -utf16be            use UTF-16BE for both input and output                    
 -utf16              use UTF-16 for both input and output
 -big5               use Big5 for both input and output
 -shiftjis           use Shift_JIS for both input and output
 -language <lang>    set the two-letter language code <lang> (for future use)

 -version, -v        show the version of Tidy
 -help, -h, -?       list the command line options
 -xml-help           list the command line options in XML format
 -help-config        list all configuration options
 -xml-config         list all configuration options in XML format
 -show-config        list the current configuration settings

Use --blah blarg for any configuration option "blah" with argument "blarg"

Input/Output default to stdin/stdout respectively
Single letter options apart from -f may be combined
as in:  tidy -f errs.txt -imu foo.html
For further info on HTML see
使用tidy可以随时验证文档,在访问w3c的The W3C Markup Validation Service比较慢的时候,这就是一个比较便捷的选择了。
<?xml version="1.0" encoding="UTF-8"?>
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>

10 条评论:

大懒兔 说...


匿名 说...

This sіte waѕ... hоw do you sаy it?
Relevаnt!! Fіnally I have found something ωhich helped mе.
Тhаnks! raspberry ketone side effects - raspberry ketone - raspberry ketones

Alѕo visit my ωeb-site raspberry ketone scam

匿名 说...

You're so cool! I don't believe I've truly read through anything like this before. So great to discover someone with some original thoughts on this issue. Really.. many thanks for starting this up. This web site is one thing that's needed on
the ωeb, someone with some οriginality!
raspberry ketones -
raspberry ketones - pure raspberry ketone supplements

Mу site raspberry ketone lean advanced weight loss results

匿名 说...

guess outlet
cheap ugg boots
ugg sale
ugg boots clearance
uggs for sale
cheap uggs
nike sb dunks
ugg boots for kids
ugg sale
genuine uggs
salvatore ferragamo shoes
discount uggs
nike high heels
nike roshe run
cheap lebron james shoes
ugg boots clearance
uggs on sale
ugg boots sale uk
uggs outlet
nike kd 6
discount uggs
nike shox
uggs on sale
ugg boots for kids
ugg uk
ugg boots clearance
furla handbags
uggs outlet
ugg sale
ugg boots clearance sale
cheap uggs
uggs black friday 2014
ugg boots outlet
cheap uggs
ugg outlet
cheap uggs for sale
ugg boots outlet
tory burch black friday sale 2014

ninest123 说...

ninest123 12.23
nike free pas cher, hogan outlet, nike trainers, north face, hollister, mulberry, vans pas cher, air jordan, nike blazer, vanessa bruno, louboutin, nike air force, polo lacoste, air max, timberland, abercrombie and fitch, true religion jeans, michael kors outlet, sac longchamp pas cher, polo ralph lauren, longchamp, true religion jeans, nike tn, lululemon outlet online, nike roshe run pas cher, michael kors pas cher, oakley pas cher, nike free, michael kors uk, air max pas cher, true religion outlet, sac hermes, ray ban sunglasses, hollister, ralph lauren, ray ban pas cher, coach purses, michael kors, true religion outlet, air max, nike roshe, new balance pas cher, north face, sac guess, sac burberry, coach outlet store online, converse pas cher, replica handbags, nike air max, nike huaraches

ninest123 说...

louis vuitton, air max, ray ban sunglasses, oakley sunglasses, burberry outlet, uggs, cheap uggs, michael kors outlet, christian louboutin, tiffany and co, prada outlet, louis vuitton outlet stores, ray ban sunglasses, cheap oakley sunglasses, longchamp handbags, uggs outlet, tiffany and co, nike shoes, tory burch outlet, ray ban sunglasses, longchamp handbags, oakley sunglasses, polo ralph lauren outlet, michael kors outlet, michael kors outlet online sale, chanel handbags, michael kors outlet, louis vuitton handbags, air max, louboutin outlet, burberry outlet, oakley sunglasses cheap, ugg outlet, louboutin, michael kors outlet, prada handbags, louis vuitton outlet, polo ralph lauren, nike free, replica watches, ugg boots clearance, michael kors outlet, louboutin shoes, jordan shoes, rolex watches, oakley sunglasses, louis vuitton outlet, gucci outlet, longchamp outlet

ninest123 说...

converse, mcm handbags, reebok outlet, bottega veneta, p90x, chi flat iron, hollister clothing store, ray ban, jimmy choo outlet, lululemon outlet, nfl jerseys, iphone 6s cases, soccer jerseys, wedding dresses, louboutin, babyliss pro, beats by dre, north face outlet, ferragamo shoes, gucci, abercrombie, instyler, iphone 6s plus cases, asics running shoes, celine handbags, abercrombie and fitch, iphone 5s cases, ghd, vans, valentino shoes, air max, oakley, ipad cases, giuseppe zanotti, new balance shoes, herve leger, timberland boots, air max, baseball bats, iphone 6 cases, birkin bag, s6 case, ralph lauren, nike roshe run, north face jackets, insanity workout, iphone cases, mont blanc, iphone 6 plus cases, vans shoes, soccer shoes, mac cosmetics

ninest123 说...

wedding dresses, moncler, ugg, louis vuitton, ugg, moncler, canada goose jackets, canada goose uk, supra shoes, pandora jewelry, swarovski, ugg pas cher, sac louis vuitton, swarovski crystal, canada goose, barbour, ugg, converse shoes, toms shoes, louis vuitton uk, sac louis vuitton, sac lancel, links of london, juicy couture outlet, canada goose, rolex watches, hollister, pandora jewelry, canada goose, thomas sabo, canada goose outlet, moncler, moncler, barbour, pandora charms, montre homme, doke gabbana, louis vuitton, canada goose, ugg boots, moncler outlet, moncler, pandora charms, moncler, juicy couture, karen millen, marc jacobs, moncler, canada goose, coach outlet store online
ninest123 12.23

柯云 说...

ralph lauren home
ray ban eyeglasses
hollister clothing store
coach outlet clearance
louis vuitton outlet online
ghd hair straighteners
concords 11
coach outlet store
louis vuitton handbags
ray ban sunglasses wholesale
ray ban sunglasses
reb christian louboutin
air jordan shoes
adidas originals store
louis vuitton bags
coach outlet
ray bans
air max 95
louboutin shoes
coach outlet
ray ban sunglasses
polo ralph lauren
christian louboutin outlet
coach factory outlet online
christian louboutin shoes
hollister shirts
kd 8
michael kors handbags
kobe 8
ray ban outlet
louis vuitton handbags
michael kors bags
air jordan homme
louis vuitton outlet online
hollister clothing
fitflop shoes
cheap ray ban sunglasses
michael kors outlet online

Unknown 说...

minnesota vikings jerseys
oakland raiders jerseys
seahawks jersey
jordan shoes
oakley sunglasses
chicago bulls
pandora jewelry
armani exchange outlet
nike air huarache