473,756 Members | 7,817 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

create xslt stylesheet in code

Hi,
As a follow on from an earlier post I have another question about
xslt.
Is it possible to create the stylsheet programatically ? Is this
sensible? In the first phase I needed to map element name from inbound
xml to my internal elements to standardize disparate input.
Now I could just create an xslt stylesheet for each possible inbound
format and be done, but I think it would be powerful to be able store
this mapping in a database and programatically create the stylsheet.
This way I don't have to maintain potentially a great number of
stylesheets. The trouble is, I can't find any example where the
stylesheet is not Load'ed from a file.

Can someone provide an example of creating the stylesheet
programatically to pass to an XslTransform.Lo ad method?
Do I just write out the XML to a string?

Maybe my example from before would help...

<?xml version="1.0" ?>
<xsl:styleshe et xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
version="1.0">

<xsl:template match="NewDataS et" >
<MyDataSet>
<xsl:apply-templates select="Cust" />
</MyDataSet>
</xsl:template>
<xsl:template match="Cust">
<MyCustomer>
<xsl:apply-templates select="nameFir st" />
<xsl:apply-templates select="nameLas t" />
<xsl:apply-templates select="addrCit y" />
<xsl:apply-templates select="addrSta te" />
<xsl:apply-templates select="addrStr eet" />
<xsl:apply-templates select="addrZIP " />
</MyCustomer>
</xsl:template>

<xsl:template match="nameFirs t">
<MyFname>
<xsl:value-of select="text()" />
</MyFname>
</xsl:template>
<xsl:template match="nameLast ">
<MyLname>
<xsl:value-of select="text()" />
</MyLname>
</xsl:template>
<xsl:template match="addrCity ">
<MyCity>
<xsl:value-of select="text()" />
</MyCity>
</xsl:template>
<xsl:template match="addrStat e">
<MyState>
<xsl:value-of select="text()" />
</MyState>
</xsl:template>
<xsl:template match="addrStre et">
<MyStreet>
<xsl:value-of select="text()" />
</MyStreet>
</xsl:template>
<xsl:template match="addrZIP" >
<MyZIPPO>
<xsl:value-of select="text()" />
</MyZIPPO>
</xsl:template>
</xsl:stylesheet>
Thanks in advance,
Pint
Nov 12 '05 #1
7 5206
pintihar wrote:
As a follow on from an earlier post I have another question about
xslt.
Is it possible to create the stylsheet programatically ? Is this
sensible? In the first phase I needed to map element name from inbound
xml to my internal elements to standardize disparate input.
Now I could just create an xslt stylesheet for each possible inbound
format and be done, but I think it would be powerful to be able store
this mapping in a database and programatically create the stylsheet.


Instead of creating stylesheet each time programatically (I'm not aware
of any of such facilities) you can go this way: define format of mapping
XML document, which defines required mapping and write (once) generic
stylesheet, which transforms documents basing on the mapping.
Alternatively you can have generic stylesheet, which generates specific
stylesheets according to provided mapping (that's very easy to generate
XSLT with XSLT).

--
Oleg Tkachenko [XML MVP, XmlInsider]
http://blog.tkachenko.com
Nov 12 '05 #2
>> As a follow on from an earlier post I have another question about
xslt.
Is it possible to create the stylsheet programatically ? Is this
sensible? In the first phase I needed to map element name from inbound
xml to my internal elements to standardize disparate input.
Now I could just create an xslt stylesheet for each possible inbound
format and be done, but I think it would be powerful to be able store
this mapping in a database and programatically create the stylsheet.


Instead of creating stylesheet each time programatically (I'm not aware
of any of such facilities) you can go this way: define format of mapping
XML document, which defines required mapping and write (once) generic
stylesheet, which transforms documents basing on the mapping.
Alternativel y you can have generic stylesheet, which generates specific
stylesheets according to provided mapping (that's very easy to generate
XSLT with XSLT).


Are you suggesting in the first case, that the mapping would imposed
on the writer of the inbound xml to conform to a known format? This is
not possible as I have no control over the format of the inbound xml,
Just that the element names will be predictable: City State, Zip...
But differ slightly based on the actual source of the file: fname
versus FirstName.

I like the sound of the later, but on my reading, it seems to restate
my question: How do I generate xslt?

Thanks again,
Phil
Nov 12 '05 #3
pintihar wrote:
Are you suggesting in the first case, that the mapping would imposed
on the writer of the inbound xml to conform to a known format?
Nope, leave alone inbound XML, but define your own mapping XML, which
defines how to map inbound elements to outbound ones. Something like

<mapping>
<rule inbound="foo" outbound="bar"/>
</mapping>

Then in XSLT you can look up for mapping and output elements according
to rules:

<xsl:template match="*">
<xsl:variable name="rule"
select="documen t('mapping.xml' )/mapping/rule[@inbound=name(c urrent())]"/>
<xsl:choose>
<xsl:when test="$rule">
<xsl:element name="{$rule/@outbound}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:element>
</xsl:if>
<xsl:otherwis e>
<!-- No mapping - copy as is -->
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
<xsl:otherwis e>
</xsl:choose>
</xsl:template>

I like the sound of the later, but on my reading, it seems to restate
my question: How do I generate xslt?


XSLT is XML, so the question is how to create XML with XSLT. The only
thing to note is xsl:namespace-alias instruction, which allows to alias
elements of generated XML to distinguish them from XSLT instructions:
<xsl:styleshe et
version="1.0"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:axsl="htt p://www.w3.org/1999/XSL/TransformAlias" >

<xsl:namespac e-alias stylesheet-prefix="axsl" result-prefix="xsl"/>

<xsl:template match="/">
<axsl:styleshee t>
<xsl:apply-templates/>
</axsl:stylesheet >
</xsl:template>

<xsl:template match="block">
<axsl:templat e match="{.}">
<fo:block><axsl :apply-templates/></fo:block>
</axsl:template>
</xsl:template>

</xsl:stylesheet>

--
Oleg Tkachenko [XML MVP, XmlInsider]
http://blog.tkachenko.com
Nov 12 '05 #4
On Thu, 04 Mar 2004 19:07:26 +0200, "Oleg Tkachenko [MVP]"
<oleg@NO!SPAM!P LEASEtkachenko. com> wrote:
pintihar wrote:
Are you suggesting in the first case, that the mapping would imposed
on the writer of the inbound xml to conform to a known format?


Nope, leave alone inbound XML, but define your own mapping XML, which
defines how to map inbound elements to outbound ones. Something like

<mapping>
<rule inbound="foo" outbound="bar"/>
</mapping>

Then in XSLT you can look up for mapping and output elements according
to rules:

<xsl:templat e match="*">
<xsl:variable name="rule"
select="docume nt('mapping.xml ')/mapping/rule[@inbound=name(c urrent())]"/>
<xsl:choose>
<xsl:when test="$rule">
<xsl:element name="{$rule/@outbound}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:element>
</xsl:if>
<xsl:otherwis e>
<!-- No mapping - copy as is -->
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
<xsl:otherwis e>
</xsl:choose>
</xsl:template>


Thanks for the help so far.
I am unable to get your example to work.

No matter whay I try, I cannot get the test to return true. I cannont
find examples of the document function either.

Could you please show me a hello world example of how one would grab
values from another xml file using the document function?

Thanks,
Pint
Nov 12 '05 #5
>On Thu, 04 Mar 2004 19:07:26 +0200, "Oleg Tkachenko [MVP]"
<oleg@NO!SPAM! PLEASEtkachenko .com> wrote:
pintihar wrote:
Are you suggesting in the first case, that the mapping would imposed
on the writer of the inbound xml to conform to a known format?


Nope, leave alone inbound XML, but define your own mapping XML, which
defines how to map inbound elements to outbound ones. Something like

<mapping>
<rule inbound="foo" outbound="bar"/>
</mapping>

Then in XSLT you can look up for mapping and output elements according
to rules:

<xsl:templa te match="*">
<xsl:variable name="rule"
select="docum ent('mapping.xm l')/mapping/rule[@inbound=name(c urrent())]"/>
<xsl:choose>
<xsl:when test="$rule">
<xsl:element name="{$rule/@outbound}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:element>
</xsl:if>
<xsl:otherwis e>
<!-- No mapping - copy as is -->
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
<xsl:otherwis e>
</xsl:choose>
</xsl:template>


Thanks for the help so far.
I am unable to get your example to work.

No matter whay I try, I cannot get the test to return true. I cannont
find examples of the document function either.

Could you please show me a hello world example of how one would grab
values from another xml file using the document function?

Thanks,
Pint


Save ME!!!!

Well I finally determinded that my xsl works correctly when loaded in
a browser from within the xml file:
<?xml-stylesheet type="text/xsl" href="test.xsl" ?>

But, when called from within dotnet the I believe that the document
function is not working. I read about the need to use the
XmlUrlResolver object, but I can not seem to get this working.

It is hard enough to grok xsl syntax, can you explain why these files
work differenly when used in dotnet?

Thanks,
Phil

# test.xsl
<?xml version="1.0" ?>
<xsl:styleshe et xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="*">
<xsl:variable name="rule"
select="documen t('mapping.xml' )/mapping/rule[@inbound=name(c urrent())]"/>
<xsl:choose>
<xsl:when test="$rule">
<xsl:element name="{$rule/@outbound}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:element>
</xsl:when>
<xsl:otherwis e>
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>

----

#newtest.xml
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="test.xsl" ?>
<NewDataSet>
<Lead>
<nameFirst>JACK </nameFirst>
<nameLast>Smith </nameLast>
<addrCity>Cleve land</addrCity>
<addrState>OH </addrState>
<addrStreet>2 00 Main</addrStreet>
<addrZIP>4614 0</addrZIP>
</Lead>
</NewDataSet>

----

#mapping.xml
<mapping>
<rule inbound="nameFi rst" outbound="My_Fi rst_Name"/>
</mapping>

----
# dotnet code
#Attempt to call from dotnet ( xsl removed from stylsheet)

XslTransform tr = new XslTransform();
XmlUrlResolver resolver = new XmlUrlResolver( );
resolver.Creden tials = CredentialCache .DefaultCredent ials;

tr.Load("test.x sl",resolver) ;
tr.Transform("n ewtest.xml", "TransformResul t.xml", null);

----

Nov 12 '05 #6
On Fri, 05 Mar 2004 02:54:18 GMT, pintihar <pi******@earth link.net>
wrote:
On Thu, 04 Mar 2004 19:07:26 +0200, "Oleg Tkachenko [MVP]"
<oleg@NO!SPAM !PLEASEtkachenk o.com> wrote:
pintihar wrote:

Are you suggesting in the first case, that the mapping would imposed
on the writer of the inbound xml to conform to a known format?

Nope, leave alone inbound XML, but define your own mapping XML, which
defines how to map inbound elements to outbound ones. Something like

<mapping>
<rule inbound="foo" outbound="bar"/>
</mapping>

Then in XSLT you can look up for mapping and output elements according
to rules:

<xsl:templat e match="*">
<xsl:variable name="rule"
select="docu ment('mapping.x ml')/mapping/rule[@inbound=name(c urrent())]"/>
<xsl:choose>
<xsl:when test="$rule">
<xsl:element name="{$rule/@outbound}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:element>
</xsl:if>
<xsl:otherwis e>
<!-- No mapping - copy as is -->
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
<xsl:otherwis e>
</xsl:choose>
</xsl:template>


Thanks for the help so far.
I am unable to get your example to work.

No matter whay I try, I cannot get the test to return true. I cannont
find examples of the document function either.

Could you please show me a hello world example of how one would grab
values from another xml file using the document function?

Thanks,
Pint


Save ME!!!!

Well I finally determinded that my xsl works correctly when loaded in
a browser from within the xml file:
<?xml-stylesheet type="text/xsl" href="test.xsl" ?>

But, when called from within dotnet the I believe that the document
function is not working. I read about the need to use the
XmlUrlResolv er object, but I can not seem to get this working.

It is hard enough to grok xsl syntax, can you explain why these files
work differenly when used in dotnet?

Thanks,
Phil

# test.xsl
<?xml version="1.0" ?>
<xsl:styleshee t xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
version="1.0 ">
<xsl:template match="*">
<xsl:variable name="rule"
select="docume nt('mapping.xml ')/mapping/rule[@inbound=name(c urrent())]"/>
<xsl:choose>
<xsl:when test="$rule">
<xsl:element name="{$rule/@outbound}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:element>
</xsl:when>
<xsl:otherwis e>
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>

----

#newtest.xml
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="test.xsl" ?>
<NewDataSet>
<Lead>
<nameFirst>JACK </nameFirst>
<nameLast>Smith </nameLast>
<addrCity>Cleve land</addrCity>
<addrState>OH </addrState>
<addrStreet>2 00 Main</addrStreet>
<addrZIP>4614 0</addrZIP>
</Lead>
</NewDataSet>

----

#mapping.xml
<mapping>
<rule inbound="nameFi rst" outbound="My_Fi rst_Name"/>
</mapping>

----
# dotnet code
#Attempt to call from dotnet ( xsl removed from stylsheet)

XslTransform tr = new XslTransform();
XmlUrlResolv er resolver = new XmlUrlResolver( );
resolver.Crede ntials = CredentialCache .DefaultCredent ials;

tr.Load("test. xsl",resolver) ;
tr.Transform(" newtest.xml", "TransformResul t.xml", null);

----


Woo Hoo. I got it.
The XmlUrlResolver is needed to use the 'document' function in xsl.
In my earlier posts, although I used it in the XslTransform.Lo ad
methoh, I did not supply it to the Transform method.

Well it serves me right for trying to run before I knew how to walk.

Thanks for the assistance Oleg and Derek
-Pint
Nov 12 '05 #7
pintihar,
Is it possible to create the stylsheet programatically ? Remember that a stylesheet is simply an XML document, so you could use any
of the objects in .NET that create XML documents to create a stylesheet. I
would probably use an XmlTextWriter. Something like:

Const ns As String = "http://www.w3.org/1999/XSL/Transform"
Const prefix As String = "xsl"

Dim writer As New Xml.XmlTextWrit er("stylesheet. xslt",
System.Text.Enc oding.Default)
' <?xml version="1.0" ?>
writer.WriteSta rtDocument()

' <xsl:styleshe et xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
writer.WriteSta rtElement(prefi x, "stylesheet ", ns)
' version="1.0">
writer.WriteAtt ributeString("v ersion", "1.0")
' <xsl:template match="NewDataS et" >
writer.WriteSta rtElement(prefi x, "template", ns)
writer.WriteAtt ributeString("m atch", "NewDataSet ")

' <MyDataSet>
writer.WriteSta rtElement("MyDa taSet")

' <xsl:apply-templates select="Cust" />
writer.WriteSta rtElement(prefi x, "apply-templates", ns)
writer.WriteAtt ributeString("s elect", "Cust")
writer.WriteEnd Element()

' </MyDataSet>
writer.WriteEnd Element()

....

' </xsl:stylesheet>
writer.WriteEnd Element()
writer.WriteEnd Document()
writer.Close()

Is this
sensible? Maybe. See Oleg's comments.

Hope this helps
Jay

"pintihar" <pi******@earth link.net> wrote in message
news:ld******** *************** *********@4ax.c om... Hi,
As a follow on from an earlier post I have another question about
xslt.
Is it possible to create the stylsheet programatically ? Is this
sensible? In the first phase I needed to map element name from inbound
xml to my internal elements to standardize disparate input.
Now I could just create an xslt stylesheet for each possible inbound
format and be done, but I think it would be powerful to be able store
this mapping in a database and programatically create the stylsheet.
This way I don't have to maintain potentially a great number of
stylesheets. The trouble is, I can't find any example where the
stylesheet is not Load'ed from a file.

Can someone provide an example of creating the stylesheet
programatically to pass to an XslTransform.Lo ad method?
Do I just write out the XML to a string?

Maybe my example from before would help...

<?xml version="1.0" ?>
<xsl:styleshe et xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
version="1.0">

<xsl:template match="NewDataS et" >
<MyDataSet>
<xsl:apply-templates select="Cust" />
</MyDataSet>
</xsl:template>
<xsl:template match="Cust">
<MyCustomer>
<xsl:apply-templates select="nameFir st" />
<xsl:apply-templates select="nameLas t" />
<xsl:apply-templates select="addrCit y" />
<xsl:apply-templates select="addrSta te" />
<xsl:apply-templates select="addrStr eet" />
<xsl:apply-templates select="addrZIP " />
</MyCustomer>
</xsl:template>

<xsl:template match="nameFirs t">
<MyFname>
<xsl:value-of select="text()" />
</MyFname>
</xsl:template>
<xsl:template match="nameLast ">
<MyLname>
<xsl:value-of select="text()" />
</MyLname>
</xsl:template>
<xsl:template match="addrCity ">
<MyCity>
<xsl:value-of select="text()" />
</MyCity>
</xsl:template>
<xsl:template match="addrStat e">
<MyState>
<xsl:value-of select="text()" />
</MyState>
</xsl:template>
<xsl:template match="addrStre et">
<MyStreet>
<xsl:value-of select="text()" />
</MyStreet>
</xsl:template>
<xsl:template match="addrZIP" >
<MyZIPPO>
<xsl:value-of select="text()" />
</MyZIPPO>
</xsl:template>
</xsl:stylesheet>
Thanks in advance,
Pint

Nov 12 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1909
by: Doug Farrell | last post by:
Hi all, I'm trying to use the 4Suite xml/xsl tools to transform some XML data into HTML. I'm using some examples from the O'Reilly book "Python and XML" and things are blowing up. Here is the little piece of code I'm working on: from xml.xslt.Processor import Processor proc = Processor()
6
2747
by: Pete | last post by:
I am just getting to grips with XML and I was wondering if you could help me with something that no-one seems able or willing to help with.. I have an XSLT file which should be transforming a straight XML file http://www.discovertravelandtours.com/test/templates/test.xml?Location=Germany To another XML file http://www.discovertravelandtours.com/test/templates/test2.xml?Location=Germany
1
3603
by: Mohit | last post by:
Hi Friends I have to call 1 of the 2 child XSLT files from the Main XSLT file based on some criteria. I want one child XSLT file will be executed by version 1 of XSLT processor and the other by version 2 of XSLT processor based on some condition. Q) How and where shall I write logic or import desirable XSLT on the Fly ? Q) When we call AAA.XSLT then it will be processed by XSLT Processor 1
12
3234
by: gipsy boy | last post by:
Hello, I have sort of a big problem. I would really appreciate any help you could give me. I made a web service in C++ that throws XML to the client (browser). But, the XSLT transormation (xml->html) doen't happen! I have XSLT files for this, they work, I mean when I put the output of the app as an XML file on some server, and make it use the XSLT files to transform into HTML, it works, I get a HTML page.
14
24240
by: David Blickstein | last post by:
I have some XML documents that I want to open in a web browser and be automatically translated to HTML via XSLT. I'm using an xml-stylesheet processing command in a file called "girml.xml". This all works in Internet Explorer, but doesn't work with Firefox. In both IE and Firefox this works: <?xml-stylesheet type="text/xsl" encoding="UTF-8" href="makehtml.xslt" version="1.0"?>
3
2651
by: IMS.Rushikesh | last post by:
Hi Friends, I need a XPath query, whcih ll return me subset of data.... check below xml stream <label id="MyExpenseDetails_lbl" xlink:role="terseLabel">Short Expense Details</label> <label id="MyExpenseDetails_lbl" xlink:role="displayLabel">Expense Details</label> <label id="InternalExpense_lbl" xlink:role="displayLabel">Internal
3
1760
by: Alex | last post by:
I stumbled upon this while developing a custom XPathNavigator. It appears that copy action for attributes is broken in the .net framework XSLT processor. The intent was to just copy the entities and attributes from the source XML into the output using simple "identity" like XSLT: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" indent="yes"/>
6
1571
by: Neal | last post by:
Hi All, I wrote a TOC treeview using xml and xslt, with help from this forum and MSDN help(thanks) Great in IE 6. (expect IE 5 as well, articles were circa 2000) However, Mozilla FireFox (latest), gives me the following error. " Error Loading Stylesheet: Parsing an XSLT stylesheet failed " And the Mozilla forums have no answer, so... hopefully here !
18
2084
by: yinglcs | last post by:
Hi, I have a newbie XSLT question. I have the following xml, and I would like to find out the children of feature element in each 'features' element. i.e. for each <featuresI would like to look up what each feature depends on and gerenate a text file. For example, in the following file, I would like to find out feature A depends on A1 and A2 and feature B depends on B1 and B2. And write that to a text file.
0
9275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9873
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9713
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8713
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5142
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3359
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.