XSLT to EMF

C

CSharper

How do I go about converting xslt transform to an EMF document? I am
able to transform into a html but not sure about EMF format.
Thanks,
 
M

Martin Honnen

CSharper said:
How do I go about converting xslt transform to an EMF document? I am
able to transform into a html but not sure about EMF format.

What is EMF exactly? XSLT can transform to HTML or XML or plain text
thus if EMF is some XML format for instance then it is certainly
possible to write an XSLT stylesheet that creates EMF. If it is a binary
file format then I don't think XSLT is the right tool to create it,
unless you use it to create some intermediary format which another tool
can consume to create EMF.
 
S

sloan

http://sholliday.spaces.live.com/blog/cns!A68482B9628A842A!148.entry

You write the code to make whatever output file you'd like.

I use xsl to
go from xml to xml
go from xml to .bat files
go from xml to excel open office standard.


The url above will give you how to do xml to xml.

I think you will need the
<xsl:blush:utput method="text" />
processing instruction to strip out the top-most xml declaration (first
line) in the output file.


Which EMF are you talking about (you might want to post the full name, not
just the acronym on a lesser known format)?

Do you have a sample of what it looks like?
 
C

CSharper

http://sholliday.spaces.live.com/blog/cns!A68482B9628A842A!148.entry

You write the code to make whatever output file you'd like.

I use xsl to
go from xml to xml
go from xml to .bat files
go from xml to excel open office standard.

The url above will give you how to do xml to xml.

I think you will need the
  <xsl:blush:utput method="text" />
processing instruction to strip out the top-most xml declaration (first
line) in the output file.

Which EMF are you talking about (you might want to post the full name, not
just the acronym on a lesser known format)?

Do you have a sample of what it looks like?






- Show quoted text -

This is off of a following answer I got for using a thrid party
control which can convert XSLT to PDF

Hi,

wPDFControl (not wPDF) can converet metafiles into PDF. If you have a
solution which converts XSLT to Metafiles wPDFControl could create a
PDF from it.
I assume though, there are solutions which do irt directly.

Julian


What I am after is to convert the XSLT transformed document to PDF.
Thanks,
 
S

sloan

If you have a
solution which converts XSLT to Metafiles


Ok, so the big question is:


Are "metafiles" text or xml based? If so, then you have to write the xsl
logic to create those files.

There is no simple solution. You'll have to learn the EMF format and then
learn how to output xsl results to this format.


Even when I do something like:
//go from xml to .bat files//

I have to "learn" the .bat file format, and write my logic inside of my xsl
to mimic the .bat format.
http://www.allenware.com/icsw/icsw030.htm
For my code, I had to learn the .bat "choice" command, and mimic that
output.

You have to discover the EMF format and see if its producable. Good luck.

As Martin said, if EMF is not text based, then you're probably barking up
the wrong tree.





http://sholliday.spaces.live.com/blog/cns!A68482B9628A842A!148.entry

You write the code to make whatever output file you'd like.

I use xsl to
go from xml to xml
go from xml to .bat files
go from xml to excel open office standard.

The url above will give you how to do xml to xml.

I think you will need the
<xsl:blush:utput method="text" />
processing instruction to strip out the top-most xml declaration (first
line) in the output file.

Which EMF are you talking about (you might want to post the full name, not
just the acronym on a lesser known format)?

Do you have a sample of what it looks like?






- Show quoted text -

This is off of a following answer I got for using a thrid party
control which can convert XSLT to PDF

Hi,

wPDFControl (not wPDF) can converet metafiles into PDF. If you have a
solution which converts XSLT to Metafiles wPDFControl could create a
PDF from it.
I assume though, there are solutions which do irt directly.

Julian


What I am after is to convert the XSLT transformed document to PDF.
Thanks,
 
C

CSharper

If you have a
solution which converts XSLT to Metafiles

Ok, so the big question is:

Are "metafiles" text or xml based?  If so, then you have to write the xsl
logic to create those files.

There is no simple solution.  You'll have to learn the EMF format and then
learn how to output xsl results to this format.

Even when I do something like:
//go from xml to .bat files//

I have to "learn" the .bat file format, and write my logic inside of my xsl
to mimic the .bat format.http://www.allenware.com/icsw/icsw030.htm
For my code, I had to learn the .bat "choice" command, and mimic that
output.

You have to discover the EMF format and see if its producable.  Good luck.

As Martin said, if EMF is not text based, then you're probably barking up
the wrong tree.












This is off of a following answer I got for using a thrid party
control which can convert XSLT to PDF

Hi,

wPDFControl (not wPDF) can converet metafiles into PDF. If you have a
solution which converts XSLT to Metafiles wPDFControl could create a
PDF from it.
I assume though, there are solutions which do irt directly.

Julian

What I am after is to convert the XSLT transformed document to PDF.
Thanks,- Hide quoted text -

- Show quoted text -

Thanks for the time and answers I really appricitated.
 
J

Jeff Johnson

As Martin said, if EMF is not text based, then you're probably barking up
the wrong tree.

It's not and he is. EMF is a graphics format. (Well, assuming he's talking
about Enhanced Metafile, that is.)
 
S

sloan

Yeah, it would have been beneficial to spell out the acronym on this less
famaliar standard.

http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.emf.doc//references/overview/EMF.html

I'm gonna paste a sample in case those links die in the future.
XMI
Alternatively, we could describe the model directly in an XMI document that
would look something like this:

<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
name="library "nsURI="http:///library.ecore" nsPrefix="library">
<eClassifiers xsi:type="ecore:EClass" name="Book">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="title"
eType="ecore:EDataType
http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="pages"
eType="ecore:EDataType
http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
</eClassifiers>
</ecore:EPackage>
If that is what he is talking about, then he has a fighting chance.

But it is not trivial.

....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top