<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0">
  <channel>
    <title>
Altova Mailing List: comp.text.xml
    </title>
    <link>http://www.altova.com/</link>
    <description>Altova accelerates application development and data management projects with software and solutions that enhance productivity and maximize results. As an innovative, customer-focused company and the creator of XMLSpy and other leading XML, data administration, UML, and Web services tools, Altova is the choice of over 3 million clients worldwide, including virtually every Fortune 500 company. With customers ranging from vast development teams in the worldâ€™s largest organizations to progressive one-person shops, Altovaâ€™s line of software applications fulfills a broad spectrum of business needs. Altova is an active member of the World Wide Web Consortium (W3C) and Object Management Group (OMG) and is committed to delivering standards-based platform-independent solutions that are powerful, affordable, and easy to use. Altova was founded in 1992 and has headquarters in Beverly, Massachusetts and Vienna, Austria.</description>
    <language>en-us</language>
    <copyright>Copyright Â© 2005, 2006, 2007 Altova GmbH. All rights reserved. Altova, XMLSpy, MapForce, StyleVision, SemanticWorks, SchemaAgent, UModel, DiffDog, and Authentic are trademarks and/or registered trademarks of Altova GmbH in the United States and/or other countries. The names of and reference to other companies and products mentioned herein may be the trademarks of their respective owners.</copyright>
    <pubDate>Tue, 03 Jun 2008 10:00:00 EDT</pubDate>
    <lastBuildDate>Tue, 03 Jun 2008 10:00:00 EDT</lastBuildDate>
    <generator>Authentic RSS Editor, visit www.altova.com for details</generator>
    <managingEditor>pr@altova.com</managingEditor>
    <webMaster>webmaster@altova.com</webMaster>
    <image>
      <url>http://www.altova.com/images/logos/altova_right_120.gif</url>
      <title>ALTOVA</title>
      <link>http://www.altova.com/</link>
      <width>120</width>
      <height>24</height>
      <description>Altova Logo</description>
    </image>

<item>
<title>Re: reading XML in IE6 - 10/14/2008 12:12:00 PM</title>
<description><![CDATA[<pre>Steve wrote:
&gt; The following works in Firefox but not in IE6, it gives the error
&gt; &quot;object doesn't support this property or method&quot;. How can I modify it
&gt; to also work in IE6?

See answer in comp.lang.javascript: 
http://groups.google.com/group/comp.lang.javascript/browse_thread/thread/eb4f5c935b6cd230#


-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286074.html</link>
</item><item>
<title>Re: How to process ONIX XML file with dupicate field names? - 10/13/2008 11:55:00 PM</title>
<description><![CDATA[<pre>rotsjke@gmail.com wrote:
&gt; i need to process a onix xml file. I use microsoft dom and this works,
&gt; except for the fact that there are dupicate field names in this onix
&gt; file and while processing this file each one overwrites the previous.

There's a bug in your code. Without seeing that code, it's hard to 
answer beyond that. I'm guessing that you're using the set-property 
idiom of the Javascript DOM interfaces, which doesn't deal well with 
multiple children having the same name, and that you need to switch to a 
more explicit create-node/add-node set of operations.

-- 
() ASCII Ribbon Campaign  | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286072.html</link>
</item><item>
<title>Re: how to find elements that don't have ancestor - 10/12/2008 9:40:00 AM</title>
<description><![CDATA[<pre>On Sat, 11 Oct 2008 14:31:08 +0100, Peter Flynn
&lt;peter.nosp@m.silmaril.ie&gt; wrote:

&gt;kishjeff wrote:
&gt;&gt; On Oct 10, 4:02 pm, Peyo &lt;o...@est.ca&gt; wrote:
&gt;&gt;&gt; kishjeff a &#233;crit :
&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Can someone tell me how to find all the elements of type 'table' which
&gt;&gt;&gt;&gt;&gt; have an attribute named 'source' and are not descendents of
&gt;&gt;&gt;&gt;&gt; 'querybox' ?
&gt;&gt;&gt;&gt; oh geez, I'm trying out xpath. sorry.. I forgot to mention that
&gt;&gt;&gt;&gt; insignificant item.
&gt;&gt;&gt; Why not :
&gt;&gt;&gt; //table[@source and (count(ancestor::querybox) = 0)]
&gt;&gt;&gt;
&gt;&gt;&gt; Cheers,
&gt;&gt;&gt;
&gt;&gt;&gt; p.
&gt;&gt; 
&gt;&gt; thanks so much. that works just fine evidently. is there a way of
&gt;&gt; doing it without count, say with some sort of &quot;not
&gt;&gt; decendent::querybox&quot; sort of thing?
&gt;&gt; 
&gt;&gt; regards in any case
&gt;&gt; Jeff
&gt;
&gt;//table[@source and not(ancestor::querybox)]
&gt;
&gt;///Peter
ah its so easy... thanks.</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286070.html</link>
</item><item>
<title>Re: Programmatic Alteration of Internal DTD Subset - 10/12/2008 6:25:00 AM</title>
<description><![CDATA[<pre>Mukul Gandhi wrote:
&gt; I explored the similar issue some time back.
&gt; 
&gt; You could look at my findings at,
&gt; 
&gt; http://gandhimukul.tripod.com/xml/xml.html
&gt; 
&gt; Please see, item no, 6.
&gt; 
&gt; Regards,
&gt; Mukul

Thank you sir.  Most helpful.

Chris W</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286069.html</link>
</item><item>
<title>Re: how to find elements that don't have ancestor - 10/11/2008 2:31:00 PM</title>
<description><![CDATA[<pre>kishjeff wrote:
&gt; On Oct 10, 4:02 pm, Peyo &lt;o...@est.ca&gt; wrote:
&gt;&gt; kishjeff a &#233;crit :
&gt;&gt;
&gt;&gt;&gt;&gt; Can someone tell me how to find all the elements of type 'table' which
&gt;&gt;&gt;&gt; have an attribute named 'source' and are not descendents of
&gt;&gt;&gt;&gt; 'querybox' ?
&gt;&gt;&gt; oh geez, I'm trying out xpath. sorry.. I forgot to mention that
&gt;&gt;&gt; insignificant item.
&gt;&gt; Why not :
&gt;&gt; //table[@source and (count(ancestor::querybox) = 0)]
&gt;&gt;
&gt;&gt; Cheers,
&gt;&gt;
&gt;&gt; p.
&gt; 
&gt; thanks so much. that works just fine evidently. is there a way of
&gt; doing it without count, say with some sort of &quot;not
&gt; decendent::querybox&quot; sort of thing?
&gt; 
&gt; regards in any case
&gt; Jeff

//table[@source and not(ancestor::querybox)]

///Peter</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286067.html</link>
</item><item>
<title>Re: how to find elements that don't have ancestor - 10/11/2008 8:48:00 AM</title>
<description><![CDATA[<pre>kishjeff a &#233;crit :

&gt; thanks so much. that works just fine evidently.

You did most of the work ;-)

&lt; is there a way of
&gt; doing it without count, say with some sort of &quot;not
&gt; decendent::querybox&quot; sort of thing?

Just try not(descendant::querybox)

not() is a *function*, hence the parentheses.

XPath 2.0 also introduces some other functions like exists().

Be aware that not(descendant::querybox) it is not what you have asked :-)

Cheers,

p.b.</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286065.html</link>
</item><item>
<title>Re: how to find elements that don't have ancestor - 10/10/2008 10:03:00 PM</title>
<description><![CDATA[<pre>kishjeff a &#233;crit :

&gt;&gt; Can someone tell me how to find all the elements of type 'table' which
&gt;&gt; have an attribute named 'source' and are not descendents of
&gt;&gt; 'querybox' ?

&gt; oh geez, I'm trying out xpath. sorry.. I forgot to mention that
&gt; insignificant item.

Why not :
//table[@source and (count(ancestor::querybox) = 0)]

Cheers,

p.</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286063.html</link>
</item><item>
<title>Programmatic Alteration of Internal DTD Subset - 10/10/2008 3:57:00 PM</title>
<description><![CDATA[<pre>Hi All,

I have hundreds of small XML files of the form (extrabeous stuff removed):

&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;!DOCTYPE page PUBLIC &quot;-//LOCAL//DTD PAGE 0.1//EN&quot; &quot;page.dtd&quot;&gt;
&lt;page&gt;
  &lt;graphic boardno=&quot;entityname1&quot; /&gt;
  &lt;graphic boardno=&quot;entityname2&quot; /&gt;
&lt;/page&gt;

that I would like to process into this form:

&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;!DOCTYPE page [
        &lt;!ENTITY  entityname1 SYSTEM &quot;entityname1.gif&quot; NDATA gif&gt;
        &lt;!ENTITY  entityname2 SYSTEM &quot;entityname2.gif&quot; NDATA gif&gt;
        &lt;!NOTATION gif SYSTEM &quot;image/gif&quot;&gt;
]&gt;
&lt;page&gt;
  &lt;graphic boardno=&quot;entityname1&quot; /&gt;
  &lt;graphic boardno=&quot;entityname2&quot; /&gt;
&lt;/page&gt;

That is, I'd like to load each file, find all the boardno attributes,
insert an ENTITY declaration, insert a NOTATION declaration, and write
the result to a file.  The XML markup is unchanged, just the internal
DTD is altered.  Finding the boardno attributes in a DOM is trivial, but
manipulating the internal DTD subset and getting it to file is eluding me.

Apart from doing the DTD manipulation as a text file, any suggested tool
sets/approaches.  Perl, Python, Java, whatever.

Regards,
Chris W</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286060.html</link>
</item><item>
<title>Library Digital Projects Officer vacancy - 10/9/2008 10:42:00 PM</title>
<description><![CDATA[<pre>There is a vacancy in the Boole Library at University College Cork for a 
Library Digital Project Officer in the Department of Special Collection, 
Archives &amp; Repository Services. This is a 2-year wholetime contract 
post. Details can be seen at

http://www.ucc.ie/en/hr/EmploymentOpportunities/AdministrativeTechnicalVacancies/LibraryDigitalProjectOfficer/

Desirable criteria include experience in XML/TEI and XSLT scholarly text 
encoding.</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286058.html</link>
</item><item>
<title>SOAP RPC operation problems (longish with code) - 10/9/2008 4:56:00 PM</title>
<description><![CDATA[<pre>I work on creating test cases for a SOAP-based set of servers, using
soapUI. I received and updated set of WSDL and schema files, and when I
made new tests and mock server operations, all of the ones that had
been working now returned a SOAP fault. The faults look something like:


&lt;soap:Envelope xmlns:soap=&quot;http://www.w3.org/2003/05/soap-envelope&quot;&gt;
   &lt;soap:Body&gt;
      &lt;soap:Fault&gt;
         &lt;soap:Code&gt;
            &lt;soap:Value&gt;Server&lt;/soap:Value&gt;
         &lt;/soap:Code&gt;
         &lt;soap:Reason&gt;
            &lt;!--1 or more repetitions:--&gt;
            &lt;soap:Text xml:lang=&quot;en&quot;&gt;Missing operation for soapAction
[http://www.mycompany.com/rpc/] and body element
[{http://www.mycompany.com/rpc/wsdl}RPC] with SOAP Version [SOAP
1.2]&lt;/soap:Text&gt;
         &lt;/soap:Reason&gt;
      &lt;/soap:Fault&gt;
   &lt;/soap:Body&gt;
&lt;/soap:Envelope&gt;


I also tried to process it with gSOAP wsdl2h and got:

Reading file 'rpc.wsdl'
Reading schema file 'RPC_Messages.xsd'
Warning: no SOAP RPC operation namespace, operations will be ignored


The big difference between the new and the old is that all the
operations are RPC now, instead of document style.

The two error reports above reference a small, generic version I made
that contains just one simplified operation, that I think is small
enough to post. Any thoughts would be greatly appreciated.



Brian


========================= RPC.wsdl ===========================

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
    
    &lt;definitions targetNamespace=&quot;http://www.mycompany.com/rpc/wsdl&quot;
        xmlns=&quot;http://schemas.xmlsoap.org/wsdl/&quot;
        xmlns:tns=&quot;http://www.mycompany.com/rpc/wsdl&quot;
        xmlns:msg=&quot;http://www.mycompany.com/rpc/messages&quot;
        xmlns:mime=&quot;http://schemas.xmlsoap.org/wsdl/mime/&quot;
        xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;
        xmlns:soap=&quot;http://schemas.xmlsoap.org/wsdl/soap/&quot;&gt;
    
    &lt;types&gt;
        &lt;xsd:schema targetNamespace=&quot;http://www.mycompany.com/rpc/wsdl&quot;
            xmlns:tns=&quot;http://www.mycompany.com/rpc/wsdl&quot;
            xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;
            xmlns:msg=&quot;http://www.mycompany.com/rpc/messages&quot;&gt;

            &lt;xsd:import namespace=&quot;http://www.w3.org/2001/XMLSchema&quot;/&gt;

            &lt;xsd:import
namespace=&quot;http://www.mycompany.com/rpc/messages&quot;
                schemaLocation=&quot;RPC_Messages.xsd&quot;/&gt;
        &lt;/xsd:schema&gt;
    &lt;/types&gt;

    &lt;message name=&quot;msgRPCReq&quot;&gt;
        &lt;part name=&quot;parameters&quot; element=&quot;msg:RPCReq&quot;/&gt;
    &lt;/message&gt;

    &lt;message name=&quot;msgRPCResp&quot;&gt;
        &lt;part name=&quot;parameters&quot; element=&quot;msg:RPCResp&quot;/&gt;
    &lt;/message&gt;

    &lt;portType name=&quot;RPCPort&quot;&gt;

        &lt;operation name=&quot;RPC&quot;&gt;
            &lt;xsd:annotation&gt;
              &lt;xsd:documentation&gt;Client Request&lt;/xsd:documentation&gt;
            &lt;/xsd:annotation&gt;
            &lt;input message=&quot;tns:msgRPCReq&quot;/&gt;
            &lt;output message=&quot;tns:msgRPCResp&quot;/&gt;
        &lt;/operation&gt;

    &lt;/portType&gt;
    
    &lt;binding name=&quot;RPCBinding&quot; type=&quot;tns:RPCPort&quot;&gt;
        &lt;soap:binding style=&quot;rpc&quot;
transport=&quot;http://schemas.xmlsoap.org/soap/http&quot;/&gt;

        &lt;operation name=&quot;RPC&quot;&gt;
            &lt;soap:operation soapAction=&quot;http://www.mycompany.com/rpc/&quot;/&gt;
            &lt;input&gt;
                &lt;soap:body parts=&quot;parameters&quot; use=&quot;literal&quot;/&gt;
            &lt;/input&gt;
            &lt;output&gt;
                &lt;soap:body parts=&quot;parameters&quot; use=&quot;literal&quot;/&gt;
            &lt;/output&gt;
        &lt;/operation&gt;

    &lt;/binding&gt;

    &lt;service name=&quot;RPCService&quot;&gt;
        &lt;port name=&quot;RPCPort&quot; binding=&quot;tns:RPCBinding&quot;&gt;
            &lt;soap:address location=&quot;http:/localhost:8080/rpc&quot;/&gt;
        &lt;/port&gt;
    &lt;/service&gt;
&lt;/definitions&gt;


===================== RPC_Messages.wsdl ========================

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsd:schema xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;
xmlns:xmime=&quot;http://www.w3.org/2005/05/xmlmime&quot;
xmlns:tns=&quot;http://www.mycompany.com/rpc/messages&quot;
targetNamespace=&quot;http://www.mycompany.com/rpc/messages&quot;&gt;
	&lt;xsd:import namespace=&quot;http://www.w3.org/2001/XMLSchema&quot;/&gt;
	&lt;xsd:element name=&quot;RPCReq&quot;&gt;
		&lt;xsd:complexType&gt;
			&lt;xsd:sequence&gt;
				&lt;xsd:element name=&quot;Session&quot; type=&quot;xsd:long&quot;/&gt;
				&lt;xsd:element name=&quot;TransactionID&quot; type=&quot;xsd:long&quot;/&gt;
			&lt;/xsd:sequence&gt;
		&lt;/xsd:complexType&gt;
	&lt;/xsd:element&gt;
	&lt;xsd:element name=&quot;RPCResp&quot;&gt;
		&lt;xsd:complexType&gt;
			&lt;xsd:sequence&gt;
				&lt;xsd:element name=&quot;OperationStatus&quot; type=&quot;xsd:long&quot;/&gt;
				&lt;xsd:element name=&quot;TransactionID&quot; type=&quot;xsd:long&quot;/&gt;
			&lt;/xsd:sequence&gt;
		&lt;/xsd:complexType&gt;
	&lt;/xsd:element&gt;
	
&lt;/xsd:schema&gt;</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286057.html</link>
</item><item>
<title>Re: Group and Sequence combination in xslt 2.0 - 10/9/2008 12:56:00 PM</title>
<description><![CDATA[<pre>RolfK wrote:

&gt; 			&lt;xsl:variable name=&quot;vSeq&quot;&gt;
&gt; 				&lt;xsl:for-each-group select=&quot;SeqTest/Item&quot;
&gt; 					group-by=&quot;substring(.,1,string-length(.)-2)&quot;&gt;
&gt; 					&lt;xsl:variable name=&quot;vBaseName&quot; s
&gt; 					elect=&quot;substring(.,1,string-length(.)-2)&quot;/&gt;
&gt; 					&lt;xsl:if test=&quot;$vBaseName != 'nepumuk'&quot;&gt;
&gt; 						&lt;xsl:sequence select=&quot;$vBaseName&quot;/&gt;
&gt; 					&lt;/xsl:if&gt;
&gt; 				&lt;/xsl:for-each-group&gt;
&gt; 			&lt;/xsl:variable&gt;
&gt; 			&lt;Seq&gt;
&gt; 				&lt;xsl:for-each select=&quot;$vSeq&quot;&gt;
&gt; 					&lt;Item BaseName=&quot;{.}&quot;/&gt;
&gt; 				&lt;/xsl:for-each&gt;
&gt; 			&lt;/Seq&gt;


&gt; 	&lt;Seq&gt;
&gt; 		&lt;Item BaseName=&quot;ottokarl&quot;/&gt;
&gt; 	&lt;/Seq&gt;
&gt; &lt;/DEBUG&gt;
&gt; 
&gt; As you can see the result element Item is only once there.
&gt; For me it meas that I have not build a sequnce of simple string values
&gt; over which I want to iterate.

The variable is currently a temporary tree. If you want a sequence of 
strings then you need to use the 'as' attribute as follows:


			&lt;xsl:variable name=&quot;vSeq&quot; as=&quot;xs:string*&quot;&gt;
				&lt;xsl:for-each-group select=&quot;SeqTest/Item&quot;
					group-by=&quot;substring(.,1,string-length(.)-2)&quot;&gt;
					&lt;xsl:variable name=&quot;vBaseName&quot; 
select=&quot;substring(.,1,string-length(.)-2)&quot;/&gt;
					&lt;xsl:if test=&quot;$vBaseName != 'nepumuk'&quot;&gt;
						&lt;xsl:sequence select=&quot;$vBaseName&quot;/&gt;
					&lt;/xsl:if&gt;
				&lt;/xsl:for-each-group&gt;
			&lt;/xsl:variable&gt;


Not related to your problem is the following suggestion: instead of 
computing the &quot;base name&quot; again and again you can simply call the 
current-grouping-key() function e.g.

&lt;xsl:for-each-group select=&quot;SeqTest/Item&quot;
					group-by=&quot;substring(.,1,string-length(.)-2)&quot;&gt;
					&lt;xsl:variable name=&quot;vBaseName&quot; select=&quot;current-grouping-key()&quot;/&gt;
					&lt;xsl:if test=&quot;$vBaseName != 'nepumuk'&quot;&gt;
						&lt;xsl:sequence select=&quot;$vBaseName&quot;/&gt;
					&lt;/xsl:if&gt;
				&lt;/xsl:for-each-group&gt;

or you could get rid of the variable completely:

&lt;xsl:for-each-group select=&quot;SeqTest/Item&quot;
					group-by=&quot;substring(.,1,string-length(.)-2)&quot;&gt;
					&lt;xsl:if test=&quot;current-grouping-key() != 'nepumuk'&quot;&gt;
						&lt;xsl:sequence select=&quot;current-grouping-key()&quot;/&gt;
					&lt;/xsl:if&gt;
				&lt;/xsl:for-each-group&gt;
-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286055.html</link>
</item><item>
<title>Re: How to set a limit when applying template - 10/9/2008 1:36:00 AM</title>
<description><![CDATA[<pre>Hvid Hat wrote:
&gt; Hi
&gt; 
&gt; When using &lt;xsl:apply-templates select=&quot;Document&quot;&gt; I get 10 documents. How
&gt; can I limit it to only the first 5 documents, e.g. pseduo
&gt; &lt;xsl:apply-templates select=&quot;Document[position() &amp;lt; 6]&quot;&gt;

the code you suggest is the code you want, did you try it?

-- 
http://dpcarlisle.blogspot.com</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286052.html</link>
</item><item>
<title>Re: How to set a limit when applying template - 10/9/2008 1:36:00 AM</title>
<description><![CDATA[<pre>Hvid Hat wrote:
&gt; Hi
&gt; 
&gt; When using &lt;xsl:apply-templates select=&quot;Document&quot;&gt; I get 10 documents. How
&gt; can I limit it to only the first 5 documents, e.g. pseduo
&gt; &lt;xsl:apply-templates select=&quot;Document[position() &amp;lt; 6]&quot;&gt;

the code you suggest is the code you want, did you try it?

David
-- 
http://dpcarlisle.blogspot.com</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286053.html</link>
</item><item>
<title>How to set a limit when applying template - 10/8/2008 10:42:00 PM</title>
<description><![CDATA[<pre>Hi

When using &lt;xsl:apply-templates select=&quot;Document&quot;&gt; I get 10 documents. How
can I limit it to only the first 5 documents, e.g. pseduo
&lt;xsl:apply-templates select=&quot;Document[position() &amp;lt; 6]&quot;&gt;</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286051.html</link>
</item><item>
<title>Re: Invisible - 10/8/2008 8:48:00 AM</title>
<description><![CDATA[<pre>&quot;lanmind&quot; &lt;LANMIND01@gmail.com&gt; wrote in message 
news:29a0535b-a09c-46bf-a7ef-cb83341a7094@t18g2000prt.googlegroups.com...
&gt; Hello,
&gt;
&gt; I have a PHP script that returns a PHP variable's value (a number in
&gt; this case) inside an XML document to the client. Is it possible to
&gt; make this number invisible when the user views the returned XML but
&gt; still accessible by some javascript?
&gt;
&gt; Thank you
Most browsers don't display raw XML, they apply a stylesheet first to turn 
it into (X)HTML. If your user is actually seeing the XML then there's 
nothing you can do. If they are seeing HTML then you can either:
Store the data in a hidden input element or a variable or a hidden div. This 
will be accessible via script but also via view source.
Or
Retrieve the XML via an XmlHTTPRequest. Then process it via script. This way 
they won't be able to see it unless they have some sort of helper installed, 
Fiddler for example, which can view the raw HTTP traffic.

-- 

Joe Fawcett (MVP - XML)

http://joe.fawcett.name</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286049.html</link>
</item><item>
<title>[ANN] XMLmind XML Editor 4.1.0 - 10/7/2008 10:04:00 AM</title>
<description><![CDATA[<pre>XMLmind XMLmind is pleased to announce a new version of XMLmind XML Editor.
    _____________________________________________

XMLmind XML Editor Personal Edition 4.1.0 can be downloaded from
http://www.xmlmind.com/xmleditor/download.shtml

Professional Edition users, please upgrade using this form:
http://www.xmlmind.com/store/download.php

(The above form is usually accessed through
http://www.xmlmind.com/xmleditor/upgrade.html.)
    _____________________________________________

v4.1.0 (September 29, 2008)

Several very useful enhancements and a few bug fixes:

    * FTPS (FTP over SSL) and SFTP (FTP over SSH)
      support (Professional Edition only).

    * Bookmarks.

    * Multiple views of the same document are now
      better synchronized in terms of visualizing
      the selection.

More information in
http://www.xmlmind.com/xmleditor/changes.html</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286047.html</link>
</item><item>
<title>Re: XPath: Problem with inline elements - 10/6/2008 4:18:00 PM</title>
<description><![CDATA[<pre>In article &lt;eb4e5dda-302b-44cd-ba4e-ef09239d6a02@e2g2000hsh.googlegroups.com&gt;,
Rainer  &lt;wolf.rainer@gmail.com&gt; wrote:

&gt;&lt;li&gt;Before the inline element &lt;em&gt;Inside the inline element&lt;/em&gt; after
&gt;the inline element&lt;/li&gt;

&gt;However, I need an XPath expression that returns the second list
&gt;element in three &quot;portions&quot;:
&gt;- &quot;Before the inline element &quot;
&gt;- &quot;Inside the inline element&quot;
&gt;- &quot; after the inline element&quot;

This will return the text descendants of the &lt;li&gt; elements:

 /foo/ul/li//text()

-- Richard
-- 
Please remember to mention me / in tapes you leave behind.</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286045.html</link>
</item><item>
<title>Re: XSL sorting of results from recursive calls to document()? - 10/6/2008 2:35:00 PM</title>
<description><![CDATA[<pre>felciano wrote:

&gt; I've been trying to adapt a technique described at http://www.xefer.com/amazon/wishlist
&gt; that shows how to iterate through such pages through recursive
&gt; document() calls and a document counter:
&gt; 
&gt; &lt;xsl:template name=&quot;counter&quot;&gt;
&gt;   &lt;xsl:param name=&quot;total&quot;/&gt;
&gt;   &lt;xsl:param name=&quot;page&quot;/&gt;
&gt; 
&gt;   &lt;xsl:variable name=&quot;lookup&quot;
&gt;     select=&quot;concat($lookup, '&amp;amp;ProductPage=', $page)
&gt; 
&gt;   &lt;xsl:if test=&quot;$page &lt;= $total&quot;&gt;
&gt;     &lt;xsl:apply-templates select=&quot;document($lookup)&quot;/&gt;
&gt;     &lt;xsl:call-template name=&quot;counter&quot;&gt;
&gt;       &lt;xsl:with-param name=&quot;total&quot; select=&quot;$total&quot;/&gt;
&gt;       &lt;xsl:with-param name=&quot;page&quot; select=&quot;$page + 1&quot;/&gt;
&gt;     &lt;/xsl:call-template&gt;
&gt;   &lt;/xsl:if&gt;
&gt; 
&gt; &lt;/xsl:template&gt;
&gt; 
&gt; This works, but I can't figure out how to sort the aggregate results.
&gt; Each document's nodes are processed separately before the next page is
&gt; retrieved. Is there a convention / idiom for how to handle sorting
&gt; when iterating via recursion across multiple document() calls?

Instead of using xsl:apply-templates select=&quot;document($lookup)&quot; during 
each template invocation you need to pass on those results the document 
call returns. So give your template a third parameter

&lt;xsl:template name=&quot;counter&quot;&gt;
   &lt;xsl:param name=&quot;total&quot;/&gt;
   &lt;xsl:param name=&quot;page&quot;/&gt;
   &lt;xsl:param name=&quot;page-elements&quot; select=&quot;/..&quot;/&gt;

   &lt;xsl:variable name=&quot;lookup&quot;
     select=&quot;concat($lookup, '&amp;amp;ProductPage=', $page)

   &lt;xsl:choose&gt;
     &lt;xsl:when test=&quot;$page &lt;= $total&quot;&gt;
       &lt;xsl:call-template name=&quot;counter&quot;&gt;
         &lt;xsl:with-param name=&quot;total&quot; select=&quot;$total&quot;/&gt;
         &lt;xsl:with-param name=&quot;page&quot; select=&quot;$page + 1&quot;/&gt;
         &lt;xsl:with-param name=&quot;page-elements&quot; select=&quot;$page-elements | 
document($lookup)/*&quot;/&gt;
       &lt;/xsl:call-template&gt;
     &lt;/xsl:choose&gt;
     &lt;xsl:otherwise&gt;
       &lt;xsl:apply-templates select=&quot;$page-elements&quot;&gt;
         &lt;xsl:sort select=&quot;foo&quot;/&gt;
       &lt;/xsl:apply-templates/&gt;
     &lt;/xsl:otherwise&gt;
   &lt;/xsl:choose

&lt;/xsl:template&gt;




-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286043.html</link>
</item><item>
<title>ANNOUNCEMENT: VTD-XML 1.0 released - 10/6/2008 11:57:00 AM</title>
<description><![CDATA[<pre>I am pleased to announce that both Java and C version 1.0 of
VTD-XML -- an open-source, high-performance and non-extractive
XML processing API -- is freely available on sourceforge.net.
For source code, documentation, detailed description of API
and code examples, please visit

  http://vtd-xml.sourceforge.net

New in VTD-XML 1.0 is the integrated support of XPath that also
features a easy-to-use interface that further enhances VTD-XML's
inherent benefits, such as CPU/memory efficiency, random access,
and incremental update. A demo of the XPath capability is available
at

  http://vtd-xml.sourceforge.net/demo.html

For further reading, please refer to the following articles about
VTD-XML

* Process SOAP with VTD-XML
  http://xml.sys-con.com/read/48764.htm

* Better, faster XML processing with VTD-XML
  http://www.devx.com/xml/Article/22219?trk=DXRSS_XML

* XML on a chip
  http://www.xml.com/pub/a/2005/03/09/chip.html

* Improve XML processing with VTD-XML
  http://www.intel.com/cd/ids/developer/asmo-na/eng/dc/xeon/multicore/211657.htm</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000229034.html</link>
</item><item>
<title>Re: Understanding precision/recall graph - 10/3/2008 8:34:00 PM</title>
<description><![CDATA[<pre>Maciej Gawinecki wrote:
&gt; Two questions related to the topic

WTF has this got to do with SGML or XML?

///Peter

[Followups reset]

&gt; 1. If I have an empty set of relevant results, then it would be 
&gt; better to have no answers from the system at all. But neither
&gt; precision nor recall gives penalties for returning false positives in
&gt; this case (0/1=0/2=...=0/100). How people handle with this ? Is there
&gt; other measure for this cases ?
&gt; 
&gt; 2. Let say I have ranking:
&gt; 
&gt;     1. A
&gt;     2. B *
&gt;     3. C
&gt;     4. D *
&gt;     5. F
&gt; 
&gt; Where relevant answers are: B,D,E, and relevant answers found by the 
&gt; system are marked with a star (*).
&gt; 
&gt;    Then for recall level 1/3 I have precision 1/2,
&gt;    for recall level 2/3 I have precision 2/4=1/2.
&gt; 
&gt; The last position of ranking, false positive, is not counted in the 
&gt; precision/recall measure, as in this measure &quot;only positions where an
&gt; increase in recall is produced&quot;. I have the system which returns 
&gt; some false positives at the end of ranking, but how can I measure/ 
&gt; compare it with other systems in terms of effectiveness, if
&gt; precision/ recall does not take it into account ?
&gt; 
&gt; TIA,
&gt; Maciej</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286041.html</link>
</item><item>
<title>Re: Forcing a parent tag to have at least one child via an XML schema - 10/3/2008 3:03:00 PM</title>
<description><![CDATA[<pre>Susan Harris wrote:
&gt; I have a document that includes info similar to:
&gt; 
&gt; &lt;cat&gt;
&gt;  &lt;name&gt;Tiddles&lt;/name&gt;
&gt;  &lt;color&gt;Purple&lt;/color&gt;
&gt;  &lt;age&gt;12&lt;/age&gt;
&gt;  &lt;ageInCatYears&gt;84&lt;/ageInCatYears&gt;
&gt; &lt;/cat&gt;
&gt; 
&gt; ALL elements (including &lt;cat&gt;) are optional. However, &lt;cat&gt; should not 
&gt; exist unless at least one of it children does.
&gt; 
&gt; How can I specific via an XML schema that &lt;cat&gt; should not exist unless 
&gt; it has at least one child?


   &lt;xs:element name=&quot;cat&quot;&gt;
     &lt;xs:complexType&gt;
       &lt;xs:choice maxOccurs=&quot;unbounded&quot;&gt;
         &lt;xs:element name=&quot;name&quot; type=&quot;xs:string&quot;/&gt;
         &lt;xs:element name=&quot;color&quot; type=&quot;xs:string&quot;/&gt;
         &lt;xs:element name=&quot;age&quot; type=&quot;xs:int&quot;/&gt;
         &lt;xs:element name=&quot;ageInCatYears&quot; type=&quot;xs:int&quot;/&gt;
       &lt;/xs:choice&gt;
     &lt;/xs:complexType&gt;
   &lt;/xs:element&gt;

would suffice to ensure that the 'cat' element has at least one of the 
child elements listed in the choice. On the other hand the above 
definition would allow several 'name' or 'color' or 'age' elements so I 
doubt you want that construct.

So whether there is a solution depends on the other constraints you want 
to put on the children of 'cat'.

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286039.html</link>
</item><item>
<title>Forcing a parent tag to have at least one child via an XML schema - 10/3/2008 1:37:00 PM</title>
<description><![CDATA[<pre>I have a document that includes info similar to:

&lt;cat&gt;
  &lt;name&gt;Tiddles&lt;/name&gt;
  &lt;color&gt;Purple&lt;/color&gt;
  &lt;age&gt;12&lt;/age&gt;
  &lt;ageInCatYears&gt;84&lt;/ageInCatYears&gt;
&lt;/cat&gt;

ALL elements (including &lt;cat&gt;) are optional. However, &lt;cat&gt; should not exist 
unless at least one of it children does.

How can I specific via an XML schema that &lt;cat&gt; should not exist unless it 
has at least one child?</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286037.html</link>
</item><item>
<title>Re: how to define a key which generates unique sequence number? - 10/3/2008 12:59:00 PM</title>
<description><![CDATA[<pre>XML fellow wrote:

&gt; i would like to define a unique key in the XSD, and once generating a
&gt; default XML out of it (using XSD2INST tool), the XML will automaticaly
&gt; be populated with a unique sequence number.
&gt; 
&gt; similar to defining a sequence number in DB.
&gt; 
&gt; can anyone advise how to do that?

A key is defined with the xs:key element and its child elements 
xs:selector and xs:field, see 
http://www.w3.org/TR/xmlschema-0/#specifyingKeysAndtheirRefs

Whether that tool you mention is then able to generate keys I don't 
know. You might want to check its documentation or find out whether 
there is a support forum or mailing list.


-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286035.html</link>
</item><item>
<title>Re: how to define a key which generates unique sequence number? - 10/3/2008 11:05:00 AM</title>
<description><![CDATA[<pre>thanks :-) 
I'm familiar with the Key/Key-ref items.
my question relates more to the 'sequence' issue. when you define
selector it relates to some pre-defined key. i need this key to be a
sequence, i.e. i++ each time it's being used.

*** Sent via Developersdex http://www.developersdex.com ***</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286036.html</link>
</item><item>
<title>how to define a key which generates unique sequence number? - 10/3/2008 8:02:00 AM</title>
<description><![CDATA[<pre>hi,
i would like to define a unique key in the XSD, and once generating a
default XML out of it (using XSD2INST tool), the XML will automaticaly
be populated with a unique sequence number.

similar to defining a sequence number in DB.

can anyone advise how to do that?

thanks :-)


*** Sent via Developersdex http://www.developersdex.com ***</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286034.html</link>
</item><item>
<title>Miscellaneous issues with tex4ht, xml and xsl transformations - 10/2/2008 11:35:00 AM</title>
<description><![CDATA[<pre>Hello,

I am trying to generate a doc file from latex source for a colleague (simple
article class, using authblk package) through one of the two following
ways :

1. Create an odt file using :

$mk4ht oolatex document.tex &quot;xhtml,ooffice,mathml&quot;

This generates a truckload of document-mxx.tmp files, one for each
mathematical symbol as far as I can tell. The resulting odt file opens
cleanly in openoffice but all the mathematical symbols (superscripts etc.)
are rendered as images. That is not so bad. However, some of the
superscripts have funny characters underneath them (think a brace of
inverted question marks). What is the reason for this ?

Further, double clicking on a citation does not take me to the reference. It
just shows a short name (which is the number of the citation). No author
details, nothing.

2. Create an html file using :

$mk4ht htlatex document.tex &quot;xhtml,mathml,word&quot;

This generates an excellent html+css version of the document (excellent job,
guys). All the mathematical symbols are fine, etc (hint : the use of
option &quot;word&quot; above appears to fix some misrendered superscripts you would
get otherwise). I have Microsoft Word 2007 installed on a laptop running
windows XP. What I do next is to open the html document in Word and save as
docx (or doc).

However, the links generated for the citations are of the form :

file:///home/.../document.html#Xauthname:08a

Now, when word opens this, the citations generated are meaningless as well.

I know LaTeX and Word are separate word processing solutions with entirely
different philosophies. What makes LaTeX the correct solution for me is the
amount of math in the document (something that would take me tons of time
using word) and what a nightmare handling citations is in Word (even with
Endnote - years of using bibtex have spoiled me forever :) ).

But is there something I can do during html generation that will help me
recover proper citations ? This is not an html conversion + Word specific
problem - I have the same issue when I generate an odt and open it in
openoffice (see above).

An issue possibly arising from mk4ht :

On my home machine, I am able to generate html that opens in word without
any issues. However, at work, the generated html just shows up a bunch of
xml tags in word which offers to apply any xsl transformation I want to
them. I have not been able to figure out why this difference exists. Is it
because I am missing some transformation package (so that mk4ht is unable
to somehow include the xsl information) on my work machine ? Note - the
test windows environment is IDENTICAL for html files generated from two
different installations of TeXLive.

I am not an xml expert.

PS : Is there a way to directly convert tex to office open xml (I know even
Microsoft Word 2007 does not fully implement that joke of a standard.) ?
That would fix this entire problem.</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286033.html</link>
</item><item>
<title>Re: [Newbie] for-each in template, or? - 10/2/2008 9:55:00 AM</title>
<description><![CDATA[<pre>&gt; Sure, simply add a predicate with that condition:
&gt;   &lt;xsl:for-each select=&quot;/inspec/article/bibliog/aug/pname[@order = 
&gt; 'first']&quot;&gt;

Thanks - works beautifully! - John</pre>]]></description>
<link>http://www.altova.com/list/comp.text.xml/200810/msg1000286031.html</link>
</item>

</channel>
</rss>
