HTML和XML [英] HTML and XML

查看:50
本文介绍了HTML和XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我目前使用MS-Access自动报告转换器以HTML格式输出一些

的报告。这工作正常,但报告的布局经常会被扭曲,我想改进这个。


理想情况下,我想输出报告作为PDF,但是我的客户已经为用户锁定了注册表,所以我不能这样做(至少不能用

Adob​​e)。


或者我当然可以编程VBA来输出格式化的HTML

报告内容没有失真的地方。这样可以正常工作但是

需要相当多的编程工作,我相信必须

是一种更简单的方法。


我想知道我是否可以构建一个报告模板(用HTML格式)和

然后用XML输出不同的数据内容。这可能吗?并且

任何人都知道一个很好的Howto或教程可以解释这些技术。


但是,我知道有一些XML技术是

特定于Microsoft(例如''数据岛''仅适用于IE和

不适用于Netscape或Mozilla)。这是真的吗,如果是的话,我想

避免这些技巧。


感谢您提供给我的任何帮助。


问候,

Alan Searle


I currently use the MS-Access automatic report converter to throw some
of my reports out as HTML. That works OK but often the report''s layout
is distorted and I would like to improve this.

Ideally, I would like to output the reports as PDF, but my client has
locked up the registry for users so I cannot do that (at least not with
Adobe).

Alternatively I could certainly program VBA to output formatted HTML
reports where the content is not distorted. This would work OK but
entails quite a lot of programming effort and I am sure that there must
be an easier method.

I was wondering whether I could build a ''report template'' (in HTML) and
then output different data content in XML. Is this possible? And does
anyone know of a good Howto or tutorial that would explain the techniques.

However, I understand that there are some XML techniques which are
specific to Microsoft (e.g. ''data islands'' which only work with IE and
not with Netscape or Mozilla). Is this true and, if so, I would like to
avoid these techniques.

Thanks for any help that you can give me.

Regards,
Alan Searle

推荐答案



First你不需要Adobe来创建PDF文件。那里有很多其他人,其中一些是免费的。 PDF<> Adobe!


其次,如果您确实想要使用HTML / XML选项,我强烈建议您学习HTML。您可能还想查看XML(因为

HTML是HTML的子集),但这会打开如此巨大的世界,它可能不会是你最好的b $ b当然,如果你的时间有限。


使用一个HTML格式的概念对于多组数据是

一个我不能说,因为我已经推荐了,虽然我已经做过这些。


数据岛是一个您可能不想追求的概念。

它们更适用于使用HTML表单查询的情况。一个数据集合,没有数据库容器。认为

作为Access和Text文件。 XML是一个更加灵活和快速的b / b $ b选项,但是如果你有一个数据库,那么它就没用了。然而,

对于XML来说是一个相当大的学习过程,正如我之前提到的那样,如果你的时间有限,你可能不想追求那个
当然,虽然这是我建议学到的东西。

On Sun,2005年10月9日21:20:11 +0200,Alan Searle

< aj ******* @ xxxyahoo.com>写道:

First off, you do _not_ need Adobe to create PDF files. There are
plenty of others out there, some of which are free. PDF <> Adobe!

Second, if you do want to pursue the HTML/XML option, I''d strongly
suggest you learn HTML. You may also want to look at just XML (since
HTML is a sub-set of HTML), but that opens such a huge world it may
not be your best course if you have limited time.

The concept of using one HTML "format" for multiple sets of data is
one I can''t say as I''d recommend, although I have done these.

Data Islands are a concept that you probably don''t want to pursue.
They are more for situations where a HTML form is used to "query" a
collection of data, without a database container being present. Think
of it as Access and Text files. XML is a far more flexible and fast
option, however useless if you _do_ have a database available. There
is however quite a learning process for XML, so as I mentioned before,
if you are limited in time, you probably don''t want to pursue that
course, although it is one I''d suggest that is learned.
On Sun, 09 Oct 2005 21:20:11 +0200, Alan Searle
<aj*******@xxxyahoo.com> wrote:
我目前使用MS-Access自动报告转换器以HTML格式输出我的报告。这工作正常,但报告的布局经常被扭曲,我想改进这个。
理想情况下,我想将报告输出为PDF,但我的客户已经锁定用户注册表,所以我不能这样做(至少不能用Adobe)。
或者我当然可以编程VBA来输出格式化的HTML
报告,其中内容不会失真。这样可以正常工作但是需要相当多的编程工作,我确信必须有一个更简单的方法。
我想知道我是否可以建立一个''报告模板'' (在HTML中)然后
以XML格式输出不同的数据内容。这可能吗?并且有没有人知道一个很好的Howto或教程可以解释这些技术。
但是,我知道有一些特定于Microsoft的XML技术(例如数据岛) '只适用于IE和
不适用于Netscape或Mozilla)。这是真的,如果是的话,我想避免这些技术。
I currently use the MS-Access automatic report converter to throw some
of my reports out as HTML. That works OK but often the report''s layout
is distorted and I would like to improve this.
Ideally, I would like to output the reports as PDF, but my client has
locked up the registry for users so I cannot do that (at least not with
Adobe).
Alternatively I could certainly program VBA to output formatted HTML
reports where the content is not distorted. This would work OK but
entails quite a lot of programming effort and I am sure that there must
be an easier method.
I was wondering whether I could build a ''report template'' (in HTML) and
then output different data content in XML. Is this possible? And does
anyone know of a good Howto or tutorial that would explain the techniques.
However, I understand that there are some XML techniques which are
specific to Microsoft (e.g. ''data islands'' which only work with IE and
not with Netscape or Mozilla). Is this true and, if so, I would like to
avoid these techniques.



-

驱动器C:错误。 (A)bort(R)etry(S)mack The Darned Thing


--
Drive C: Error. (A)bort (R)etry (S)mack The Darned Thing


Chuck Grimsby< c。******* @ worldnet。 att.net.invalid>写在

新闻:0c ******************************** @ 4ax.com:
Chuck Grimsby <c.*******@worldnet.att.net.invalid> wrote in
news:0c********************************@4ax.com:
您可能还想查看XML(因为HTML是HTML的子集)
You may also want to look at just XML (since
HTML is a sub-set of HTML)




呃,这根本不正确。


HTML不是* XML的一个子集,反之亦然。


两者都是SGML(结构化通用标记语言),但XML

通过可扩展标记

语言试图成为所有人的所有东西。

在我看来,这方面的炒作比现实还要多,但它确实被广泛使用了。


那里我也是XHTML,它是HTML和XML的交叉繁殖,我认为这不是一个好主意(内容类型有问题和

浏览器如何和Web服务器对待使其致命的XHTML

有缺陷。


HTML本身就足以满足OP的需要。 XML

几乎没有任何实际用途。


的确,我相信客户端XML(即传递到网络上)

浏览器)没有任何用处。


但是就像这么多主题一样,我对它有点吝啬。​​
< br $> b $ b -

David W. Fenton http://www.bway.net/~dfenton

dfenton at bway dot net http://www.bway.net/~dfassoc



Er, that''s not correct at all.

HTML is *not* a subset of XML nor vice versa.

Both are SGMLs (structured generalized markup languages), but XML
tries to be all things to all people by being an eXtensible markup
language.

That aspect of it is more hype than reality, in my opinion, but it''s
certainly being widely used.

There''s also XHTML, which is a cross-breeding of HTML and XML that I
think is not a good idea (there are issues with content types and
how browsers and web servers treat XHTML that make it fatally
flawed).

HTML by itself is fully sufficient for the purposes of the OP. XML
adds little at all that''s of any real use.

Indeed, I believe that client-side XML (i.e., delivered to the web
browser) serves no purpose whatsoever.

But as on so many subjects, I''m something of a curmudgeon about it.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc


David W. Fenton写道:


< snip />
David W. Fenton wrote:

<snip/>
事实上,我相信客户端XML(即,提供给网页
浏览器)没有任何意义。

但就像这么多主题一样,我对此感到吝啬。
Indeed, I believe that client-side XML (i.e., delivered to the web
browser) serves no purpose whatsoever.

But as on so many subjects, I''m something of a curmudgeon about it.




号。来吧。真的吗?



No. Come on. Really?


这篇关于HTML和XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆