Jump to content

GaryC

Members
  • Posts

    4
  • Joined

  • Last visited

GaryC's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. First of all, thanks boen_robot for your time and effort.There are a few points I would like to add or mention after further surfing on the web.2. You said "...if there is a template inside the included stylesheet with match="/", and you call that stylesheet inside a template with the same match, this will give an error...."Somewhere I read even in the same xsl file you can have more than one template with same match, you can set the mode and/or priority properties so the processor knows which one to use, or simply by their order in the file. About the "/" error, not sure.4. I was in fact asking ...4.1 Valid <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 4.2 Valid or Not? <stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform"> 4.3 Valid or Not? <stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 4.4 Valid or Not? <xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform"> To test whether valid or not is simple, just type it and run, but doesn't mean I understand why so.Thanks again
  2. Dear all,I am new to XML/XSLT , have following questions, correct me if I am wrong(while it would be nice to have sample codes for some questions, others are just not sure about the basic concept)1. XSL is an umberlla term which consists XSLT, XPath and XSL-FO, but very often when we talk about using XSLT, we are referring to the .xsl file, right?2. One xml can use many xsl files at the same time, by calling <xsl:include href="??.xsl"/> for each xsl file? If so, where must the include statement be? in the beginning of file or anywhere? When to use import rather than include?3. calling include is not enough, must call <xsl:call-template name="??"/> with the ?? as the template name defined in that xsl file? If so, when and where I should call this call-template statement?4. very often in xsl file, you see this line <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">what is the difference between the first and second "xsl"? Which one is optional or can be changed to any other words? The URL is meaningless except for being as an unique identifier, so it does not matter whether the URL is valid or not?!5. Will you use XSL-FO to layout a web page or its only for printing? (I know you can use XSL-FO for on screen display, but practically do you use it for web pages layout? If not, how you do that/what you use?) 6. Does XSL-FO file .fo always saved as seperate file? or it is embedded into xml? xsl? file? If embedded, how? Any example?7. In real world, when do you use element base xml and when to use attribute base xml? Or in other words, the pros and cons8. Is it true that when talking aout XML database, we save data records in one xml file? If yes, then won't it be too big for a text file? If not, then what/how?9. Data -> XML -> (through)XSL -> (output as)XHTML Thats fine, but how many tools/applications involve in order to achive this? For example, what you need to get Data into XML? What you need to take XSL and XML and output as XHTML?10. XQuery for XML as SQL for DataBase? XPath is just how you perform XQuery, not a standalone thing? I so, why not using one name as 'SQL' but seperate into two?11. So far what I understand, in order to have formatted XML data output, you mix many HTML codes and XSLT/XSL-FO code in one file, making it very ugly(unclear) in my personal opinion (may be just because I have not get use to it). Is it the right way? Anyone with sample code to show me cleaner xml xsl and xsl-fo?Guess enough for now, may be post more from time to time.Thanks all in advanceRegards,GC
  3. GaryC

    <b> markup

    Hi theremay be you can try <b/> instead of <b>XML file does not like tags not being closed.
×
×
  • Create New...