Subject: Re: [xsl] XSL-FO and XSD Information request From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 20 Mar 2006 14:51:40 -0500 |
OK, I was not too good at specifying what I wanted to do. I guess there are two difficult hurdles that I will need to jump. The first is having data is multiple files. I thought that maybe I could get away with something simple (such as looping through all the included xsd files) but then it occured to me that I can find (for example) a attribute group, but this attribute group may have a reference to a simple type which means either searching the file that has the attribute group or searching the imports of the file. This is doable I think by passing the document that called the template to the next template (if you follow). Unfortunately, I think that is a particularly bad idea from cocoon. That is probably a question for the cocoon mailing list.
Second problem is pretty printing XML examples. I was going to use some annotations to store example data and use the annotations to generate the date. Now, the file searching problem aside, we also have the problem of printing this nicely, and I am not talking about simply identing. Most people don't likes reading XML that looks like this:
<element attr1="xxxx" attr2="xxxx" attr3="xxxx" attr4="xxxx" attr5="xxxx" attr6="xxxx" attr7="xxxx" attr8="xxxx" attr9="xxxxx" attr10="xxxxxxxx" attr11="xxxxx" attr12="xxxxxxx" attr13="xxxxxx" attr14="xxxxx">
...
</element>
most people would prefer:
<element attr1="xxxx" attr2="xxxx" attr3="xxxx" attr4="xxxx" attr5="xxxx" attr6="xxxx" attr7="xxxx" attr8="xxxx" attr9="xxxxx" attr10="xxxxxxxx" attr11="xxxxx" attr12="xxxxxxx" attr13="xxxxxx" attr14="xxxxx"> ... </element>
Any ideas how to achieve this? I have none.
I was thinking that maybe I could use something to convert the XML into PDF, word and HTML inside of cocoon. I think there is support for FOP in cocoon, what about WordML?I've created a system that turns content stored in XML into PDF (through XSLT to XSL-FO and then through FOP), Word (through XSLT to WordML), HTML (throught XSLT), JavaHelp (through XSLT), and text (through XSLT).
So, what you have in mind can be done.
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL-FO and XSD Informatio, Kamal Bhatt | Thread | Re: [xsl] reversing or swapping nes, Chris Capon |
Re: [xsl] XSL-FO: Suppressing Heade, Wendell Piez | Date | RE: [xsl] Conditional test is faili, Gowri Ratakonda |
Month |