<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hallo,<br>
<br>
</font>In the past there was he "com.sun.star.comp.JAXTHelper" to
make a translation of a XML this stuff is now removed from LO<br>
<br>
SaxtHelper is replaced by <span style="color: rgb(68, 68, 68);
font-family: arial, sans-serif; font-size: small; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: 16.1200008392334px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); display: inline !important; float: none;">com.sun.star.comp.documentconversion.</span><em
style="font-weight: bold; font-style: normal; color: rgb(68, 68,
68); font-family: arial, sans-serif; font-size: small;
font-variant: normal; letter-spacing: normal; line-height:
16.1200008392334px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">LibXSLTTransformer</em><span
style="color: rgb(68, 68, 68); font-family: arial, sans-serif;
font-size: small; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
16.1200008392334px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); display: inline !important;
float: none;"> </span><span style="color: rgb(68, 68, 68);
font-family: arial, sans-serif; font-size: small; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: 16.1200008392334px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); display: inline !important; float: none;"><br>
<br>
</span>In the past there was some code (below originated from the
Hanja Hermione website) to work with this JAXThelper i tried the
same code but now using <span style="color: rgb(68, 68, 68);
font-family: arial, sans-serif; font-size: small; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: 16.1200008392334px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); display: inline !important; float: none;">com.sun.star.comp.documentconversion.</span><em
style="font-weight: bold; font-style: normal; color: rgb(68, 68,
68); font-family: arial, sans-serif; font-size: small;
font-variant: normal; letter-spacing: normal; line-height:
16.1200008392334px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">LibXSLTTransformer</em><span
style="color: rgb(68, 68, 68); font-family: arial, sans-serif;
font-size: small; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
16.1200008392334px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); display: inline !important;
float: none;"> </span><span style="color: rgb(68, 68, 68);
font-family: arial, sans-serif; font-size: small; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: 16.1200008392334px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); display: inline !important; float: none;"><br>
<br>
</span><br>
No errors but i end up with a empty "out.txt" file <br>
<br>
can someone explain how to work with the new stuff or is it simply
not possible to make XML transformations using the API.<br>
<br>
(the SaxParser is working but to slow for big files)<br>
<br>
Greetz<br>
<br>
And thanks for any advice<br>
<br>
Fernand<br>
<pre style="line-height: 16.3799991607666px; border: 1px solid rgb(0, 0, 0); padding: 0.5em; margin-left: 1em; margin-right: 2em; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); word-break: break-all; word-wrap: break-word; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Sub Main
bStarted = True
oSFA = CreateUnoService( _
"com.sun.star.ucb.SimpleFileAccess" )
oIn = oSFA.openFileRead(<a class="moz-txt-link-rfc2396E" href="file:///C:/usr/content.xml">"file:///C:/usr/content.xml"</a>)
oOut = oSFA.openFileWrite(<a class="moz-txt-link-rfc2396E" href="file:///C:/usr/out.txt">"file:///C:/usr/out.txt"</a>)
Dim aNamed(6) As New com.sun.star.beans.NamedValue
aNamed(0).Name = "StylesheetURL"
aNamed(0).Value = <a class="moz-txt-link-rfc2396E" href="file:///C:/yourXSLT.xsl">"file:///C:/yourXSLT.xsl"</a>
aNamed(1).Name = "SourceURL"
aNamed(1).Value = <a class="moz-txt-link-rfc2396E" href="file:///C:/usr/yourcontent.xml">"file:///C:/usr/yourcontent.xml"</a>
aNamed(2).Name = "TargetURL"
aNamed(2).Value = <a class="moz-txt-link-rfc2396E" href="cid:part5.07050800.00090607@pmgroup.be">"file:///C:/out.txt"</a>
aNamed(3).Name = "SourceBaseURL"
aNamed(3).Value = <a class="moz-txt-link-rfc2396E" href="file:///C:/">"file:///C:/"</a>
aNamed(4).Name = "TargetBaseURL"
aNamed(4).Value = <a class="moz-txt-link-rfc2396E" href="file:///C:/">"file:///C:/"</a>
aNamed(5).Name = "SystemType"
aNamed(5).Value = ""
aNamed(6).Name = "PublicType"
aNamed(6).Value = ""
oStreamListener = CreateUnoListener( "Stream_", _
"com.sun.star.io.XStreamListener" )
oJAXHelper = CreateUnoService( _
"<span style="color: rgb(68, 68, 68);
font-family: arial, sans-serif; font-size: small; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: 16.1200008392334px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); display: inline !important; float: none;">om.sun.star.comp.documentconversion.</span><em style="font-weight: bold; font-style: normal; color: rgb(68, 68,
68); font-family: arial, sans-serif; font-size: small;
font-variant: normal; letter-spacing: normal; line-height:
16.1200008392334px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">LibXSLTTransformer</em><span style="color: rgb(68, 68, 68); font-family: arial, sans-serif;
font-size: small; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
16.1200008392334px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); display: inline !important;
float: none;"> </span>" )
oJAXHelper.initialize(aNamed)
oJAXHelper.addListener(oStreamListener)
oJAXHelper.setInputStream(oIn)
oJAXHelper.setOutputStream(oOut)
' start translation
oJAXHelper.start()
' needs to wait the end of translation
While bStarted
wait 100
WEnd
oJAXHelper.removeListener(oStreamListener)
oIn.closeInput()
oOut.closeOutput()
End Sub
</pre>
<br>
</body>
</html>