【发布时间】:2010-10-07 15:25:34
【问题描述】:
我知道命名空间是用来描述的,比如 doctype,但是有没有一种方法或技巧可以使用 xsd 将内部命名空间 html 转换为 xsl ?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:sample="sample-uri">
<head >
<title>Enter the title of your XHTML document here</title>
</head>
<body >
<p sample:node="retrieve-transformation">Enter the body text of your XHTML document here</p>
</html>
换句话说,我想知道我是否可以在不使用 javascript 的情况下将 xsl 转换为 xhtml 页面。
【问题讨论】:
-
从您的帖子中不清楚您的问题是什么以及您要做什么。你可以再详细一点吗?想举一个你的输入和预期输出文档的例子吗?
-
如果我没看错,@belaz 希望在 HTML 文档的中间执行 XSL 转换。
-
那你为什么不一开始就写这个;)
-
我想听听一个特定的命名空间前缀技巧;D,但我会接受你提供的任何信息。
标签: html xml xhtml xslt doctype