用xslt显示xml是mvc模式吗?

vcshcn 2003-10-08 10:20:10
如果是:哪个是模型,试图,控制器
...全文
153 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
yoken 2003-10-08
  • 打赏
  • 举报
回复
mvc是java社区的概念,不好生套在其他地方
Schlemiel 2003-10-08
  • 打赏
  • 举报
回复
XSLT-view是一种常见的视图实现,webwork等很多framework支持这种形式的view。一般来说,XSLT只涉及视图的实现技术,模型和控制器都和普通的MVC完全一样。传递给XSLT-view的model可能是XML文档,甚至很可能就是普通的DTO,在视图上用一些手段把DTO再翻译成XML,webwork就是这样实现的。
jiganghao 2003-10-08
  • 打赏
  • 举报
回复
xml is grammar, an xml doc created from back end ( business logic or db) is model;

xsl is a stylesheet language for xml specifying the style of an xml doc; xslt is part of xsl, defining how to transform xml doc into other xml form (html is also an xml form). the xml doc converted by xslt from its original form is sent to client as a view.

views are connected to each other by links inside. the controller is responsible for get user input (point of contact), call back end logic to create model data, then call proper xslt to create a view. Sometimes controller is also used to directly define workflow logic between views.

xml/xsl has a very clean cut between data content and form. but xml is text based, and xml-related api is evolving, so pls put performance and learning curve into consideration.
XmanDZJ 2003-10-08
  • 打赏
  • 举报
回复
浏览器是视图,xml是模型,xslt是控制器
不知道我这样理解合理不,呵呵

51,410

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧