Z
Zhou Lei
Hi friends I'm a newbie learning XSLT to transform an XML to some other
documents. Now I have some questions, anyone could give me some suggestions
on them?
1. If we save our documents in XML rules and these files should be published
on Internet through WWW, what we can benefit from the XML files? And what
are the drawbacks (is it too complex or time-consuming because we have to
define a new set of XML elements to save the documents, and write the XSLT
to transform them to XHTML)? Is it more convenient to use XHTML+CSS?
2. The transformation from XML to XHTML using XSLT can be completed on
server side (such as cocoon) or client side. I know transformation on client
side can bring some compatibility problems because older web browers cannot
recognise and complete the transformation. But on the other hand,
transformation on server side may consume the server resources. Are there
any other advantages/disadvantages for the transformation on
server-side/client-side and what are they?
3. During the learning process, I touched some small exercises on the DTD to
define the XML elements, and I found it sufficient to describe the XML tree
structure and I don't know why we introduced a new Schema to replace DTD.
What are the advantages of using Schema, besides it is written in XML? And
where can I find the Schema is more powerful and flexible than DTD?
Thank you all,
Regards,
documents. Now I have some questions, anyone could give me some suggestions
on them?
1. If we save our documents in XML rules and these files should be published
on Internet through WWW, what we can benefit from the XML files? And what
are the drawbacks (is it too complex or time-consuming because we have to
define a new set of XML elements to save the documents, and write the XSLT
to transform them to XHTML)? Is it more convenient to use XHTML+CSS?
2. The transformation from XML to XHTML using XSLT can be completed on
server side (such as cocoon) or client side. I know transformation on client
side can bring some compatibility problems because older web browers cannot
recognise and complete the transformation. But on the other hand,
transformation on server side may consume the server resources. Are there
any other advantages/disadvantages for the transformation on
server-side/client-side and what are they?
3. During the learning process, I touched some small exercises on the DTD to
define the XML elements, and I found it sufficient to describe the XML tree
structure and I don't know why we introduced a new Schema to replace DTD.
What are the advantages of using Schema, besides it is written in XML? And
where can I find the Schema is more powerful and flexible than DTD?
Thank you all,
Regards,