Tidy变换“& amp;”在source-xml中加入“&” [英] Tidy transforms "&" in the source-xml into a "&"
问题描述
我的整洁工作留下2个问题:
1)Tidy转换& amp; ;在source-xml中加入&在整理的
版本中。我的XML-Importer无法处理它
2)在一个长的< title> -string中生成一个包裹如下:
< title>我很长的标题blab la blab la
Blabla bla< / title>
进口商也有问题
我的tidy.bat
tidy.exe --output-xhtml yes --show-body-only yes --new-blocklevel-tags
组件,bblocation,title2,short_intro,long_intro,日期,引用,类别, image_small,image_medium,image_large,body2,external_link_text1,external_lin k_url1
--inten auto --write-back yes%1
问候
Ragnar
Hi,
2 issues left with my tidy-work:
1) Tidy transforms a "&" in the source-xml into a "&" in the tidied
version. My XML-Importer cannot handle it
2) in a long <title>-string a wrap is produced like:
<title>my very long title blab la blab la
Blabla bla </title>
Importer also has got problems with it
My tidy.bat
tidy.exe --output-xhtml yes --show-body-only yes --new-blocklevel-tags
component,bblocation,title2,short_intro,long_intro ,date,reference,category,image_small,image_medium, image_large,body2,external_link_text1,external_lin k_url1
--indent auto --write-back yes %1
regards
Ragnar
推荐答案
Ragnar写道:
Ragnar wrote:
1)Tidy转换一个 ;&放大器;放大器;"在source-xml中加入&在整理的
版本中。
1) Tidy transforms a "&" in the source-xml into a "&" in the tidied
version.
等一下 - 如果您的来源是XML,为什么要通过Tidy?
话虽如此,这不应该在XHTML输出模式下发生。联系
Tidy'的作者,和/或向我们展示一个失败的例子,这样我们就可以交叉检查
这个并确保
Hold it a moment -- if your source is XML, why are you going through Tidy?
Having said that, this shouldn''t happen in XHTML output mode. Contact
Tidy''s authors, and/or show us a failing example so we can crosscheck
this and make sure
2)在长< title> -string中生成一个换行符,如:
< title>我很长的标题blab la blab la
Blabla bla< / title>
进口商也遇到问题
2) in a long <title>-string a wrap is produced like:
<title>my very long title blab la blab la
Blabla bla </title>
Importer also has got problems with it
关闭自动缩进。 />
-
()ASCII Ribbon Campaign | Joe Kesselman
/ \标记HTML电子邮件! |系统architexture和动态诗歌
Turn off auto-indent.
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
2006年11月4日星期六10:17:58 -0500,Joe Kesselman
< ke *** *********@comcast.netwrote:
On Sat, 04 Nov 2006 10:17:58 -0500, Joe Kesselman
<ke************@comcast.netwrote:
>等一下 - 如果您的来源是XML,为什么要经历Tidy ?
>Hold it a moment -- if your source is XML, why are you going through Tidy?
有没有更好的方法来检查xml文件的格式是否比
tidy -xml?
-Timo
Is there a better way to check the well-formedness of a xml-file than
tidy -xml ?
-Timo
你好乔
关闭indent-auto并没有什么区别
>
这是我的文件: http://www.ticope。 de / tmp / source.xml
谢谢!
Hi Joe
turning off indent-auto doesnt make a difference
Here is my file: http://www.ticope.de/tmp/source.xml
thank you!
这篇关于Tidy变换“& amp;”在source-xml中加入“&”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!