|
Hello all you wonderful people
<br />
<br />
<?xml version="1.0" encoding="unicode"?><br />
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:osxml="osxml" version="1.0"><br />
<_locDefinition><br />
<_locDefault _loc="locData"/><br />
<_locTag _locAttrData="pad-left,pad-right">p</_locTag><br />
<_locTag _locAttrData="height,width">textarea</_locTag><br />
<_locTag _locAttrData="minsize,noindent">select</_locTag><br />
<_locTag _locAttrData="size">progressbar</_locTag><br />
<_locTag _locAttrData="size,maxlen">input</_locTag><br />
<_locTag _locAttrData="value">osxml:update</_locTag><br />
</_locDefinition><br />
<xsl:template match="fve-bad-pcr-registers"><br />
<osxml:text-mode-ui><br />
<head><br />
<footer color="RGBIXXXX"><xsl:text> ENTER=Continue</xsl:text></footer><br />
<meta key="ENTER" action="continue"/><br />
</head><br />
<body background-color="XXXX" foreground-color="RGBX"><br />
<font foreground-color="RGBI"><br />
Windows BitLocker Drive Encryption Information<br/><br />
</font><br />
<br/><br />
<br/><br />
The system boot information has changed since BitLocker was enabled.<br/><br />
<br/><br />
You must supply a BitLocker recovery key to start this system.<br/><br />
<br/><br />
Confirm that the changes to the system boot information are authorized.<br/><br />
<br/><br />
If the changes to the system boot information are trusted, then suspend and resume BitLocker. This will reset BitLocker to use the new boot information.<br/><br />
<br/><br />
Otherwise restore the system boot information.<br/><br />
<br/><br />
</body><br />
</osxml:text-mode-ui><br />
</xsl:template><br />
<br />
if User presses continue it goes to next line, if user press the "B" key then it goes to "progress-bar", otherwise quit.<br />
<br />
<xsl:template match="fve-bad-code-id"><br />
How do I prompt the user, trap a keypress and act upon the input in XML? What scripting language would you recommend to do this?
What do the loc lines do?
I am a newbie! JohnI Need VB.net help
|
|
|
|
|
XML is not a prgramming language - it's more a data format.
So…why are you using XML and what are you trying to achieve?Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
I have an asp page that request data from a remote site (API) via XML.
My code is as follows:
DataToSend = "http://jc.tee.id.com/api/2.0/"& Request("resource") &"?apikey=a0d523ddnfjfjkkfkfkf32c&format=HTML&pret typrint=true&links=resource-path-encoded&request_handler_uri=http%3A%2F%2Fwww.mysit e.com%2Fitems&styles=enhanced"
set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP.4.0")
xmlhttp.Open "GET", DataToSend, false
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.send
Response.Write xmlhttp.ResponseText
This code works fine and returns data with no problem. However on page where the API has AJAX in it, the AJAX doesnt function.
For example, executing my code I pull up a table of contents page:
A | B | C | D | E
apple
adam
aligator
acorn
If I click in the title names, it takes me to the proper URL with no problem. if I click on a navigation letter (which is suppose to execute AJAX on the API side and pull in new titles), it just reloads the page.
I am assuming its because of MSXML2.ServerXMLHTTP.4.0.
I tried switching to 6.0 but this did nothing as well. Am i not able to execute AJAX or something through this remote site??
Any help or insight anyone could give me would be greatly appreciated.
Thanks
|
|
|
|
|
I try XSL Transfrom on client-side using javascript. My XSL file has a import tag in itself, but it couln't find the another XSL file. I have to excute this transform on Client-Side for
some reason. How can I put the import href content
Here goes my test code. this page written with .NET
Javascript code on the webpage.
function Transform() {
var xsl = new ActiveXObject("MSXML.DOMDocument");
var xml = new ActiveXObject("MSXML.DOMDocument");
xsl.async = false;
xsl.load(dataXmlPath);
xsl.async = false;
xsl.load(styleXslPath);
var data = xml.transformNode(xsl);
}
number.xml (XML Data file)-----------------------
<?xml version='1.0'?>
<data>
<circle>
<radius>12</radius>
</circle>
<circle>
<radius>37.5</radius>
</circle>
</data>
calc.xsl (XSL Style file)------------------------
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="calc2.xsl"/>
</xsl:stylesheet>
calc2.xsl (XSL import file)------------------------
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="data">
<circles>
<xsl:for-each select="circle">
<circle>
<xsl:copy-of select="node()"/>
<circumference>
<xsl:value-of select="radius"/>
</circumference>
</circle>
</xsl:for-each>
</circles>
</xsl:template>
</xsl:stylesheet>
|
|
|
|
|
<script>
function Transform() {
var xsl = new ActiveXObject("MSXML.DOMDocument");
var xml = new ActiveXObject("MSXML.DOMDocument");
xml.async = false;
xml.load("number.xml");
xsl.async = false;
xsl.load("calc.xsl");
return xml.transformNode(xsl);
}
alert(Transform());
</script>
|
|
|
|
|
yes. it works. thank you.
actually i tested with below script function in order to get a XML Object.
function loadXMLDoc(filepath) {
if (window.XMLHttpRequest) {
xhttp=new XMLHttpRequest();
}
else {
xhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xhttp.open("GET",filepath,false);
xhttp.send("");
return xhttp.responseXML;
}
I thought it's the same but it wasn't..
var xsl = new ActiveXObject("MSXML.DOMDocument");
xsl.async = false;
xsl.load("calc.xsl");
this works fine.
|
|
|
|
|
|
No one is going to look at this mess of unformatted garbage.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Did you bother to preview this before you posted it, or read it afterwards? I assume not as it is unreadable. Please edit the content and place between <pre></pre> tags using the "code block" button at the top of the edit window.
MVP 2010 - are they mad?
|
|
|
|
|
Hi
I want to implement a webservice with soap and C#
But i am wondering about to change tag as soapenv
How can this be possible?
|
|
|
|
|
Hi,
I'm not sure if I understood your problem. You want to implement a webservice with C#.
For the first steps have a look here:
Your first C# Web Service[^]
Or if you want to use WCF take a look here:
Writing your first WCF Service[^]
SOAP is just the protocol used to call a webservice. Fortunately this protocol is transparent for you, since the .NET framework manages everything for you (serialization, deserialization, transport etc.)
Regards
Sebastian
|
|
|
|
|
How is it possible to import a COM dll from any flavor of unix.
On C++ on windows we can use the #import command to achieve this.
Does the same command help on any unix flavor.
The intent is to use the parsing functionality of msxml [parser.
|
|
|
|
|
AFAIK, Unix doesn't have the necessary COM infrastructure to let you use COM. So, you're out of luck.
However...there are a lot of other XML parsers out there - I'd suggest looking at libxml2[^], expat[^] or Xerces-C++[^].
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
Please let me know your comments in below:-
1) Xerces: we need a separate platform/architecture specific binary. This is provided by Xerces.
2) libxml2- Can this be used on unix. I guess its usage is limited to windows.
3) xmllite is another one- One needs to leverage COM technology as interfaces are provided for XML related functions.
4) msxml works on similar way as that in 3)
The requirement is to read a simple xml document in an application.
This application would hold the XML DOM if created in memory in static area as the string that holds the static XML string would be static.
|
|
|
|
|
Xerces and libxml2 are both avaiable Windows OR Unix. Xerces is part of the Apache project, libxml2 part of Gnome (I think).
Neither msxml nor XML Lite are available on Unix.
Another cross-platform alternative - RapidXML[^].
I would go for RapidXML, I think.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
I have heard that parsers that support XPATH give the best performance and should be used if applications from scratch are used.
IS RapidXML XPATH suppotive?
If no, let me know your comments?
|
|
|
|
|
Ummm - well, what are you trying to do with it? XPath is useful for querying an XML document, but does nothing for the performance of the raw parser.
Think about how you're going to get information in and out of the XML file, then make your technology decisions based on those specific requirements.Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
Hi
Working with ArcGIS catalog for map files you can create an XML file which contains info about the map.My intention is to gather this data in a DB (PostGreSQL) and create a searching system.The main thing is that searching for the info I want to get as a result the map corresponding to this XML data I searched.Anybody have any clues and give me any orientation because I have little experience with XML.
Thank you in advance
Best regards
Endri
|
|
|
|
|
Maybe [this] XLINQ(LINQ to xml) tutorial will help you get the data from the XML file.
|
|
|
|
|
Rather than use a database (which might well not be a good match for hierarchical XML data), you could consider using XQuery[^]?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
I am getting the data in xml file(microsoft office xml) . data is updating in xml file continously
I parsed the xml file to get the data display in my own gui . I get the data but problem is that
data is not updating . I see the different data in xml file and my gui. as I click save button of xml file
my gui get updated data. why it is happening . can I read the updated data without clicking the save button
note that xml file is microsoft office xml
Trioum
|
|
|
|
|
Hi There
I am new to XML and related technologies.
I would like to know if it is possible to store media files within an XML file?
From what I know, most data stored within an XML file is textural based.
If one converts a database file, Excel sheet, etc. into an XML file, it simply stores this data in a textural format.
Does this mean that if I store an image (for example) within the XML file, it stores it as the textural representation of that image, or as a link to that image? Or is there a way of storing it within the XML file? (also, does the same apply to video, audio - mp3, midi, wav, etc, and all other media files)
Thanks in advance
|
|
|
|
|
Hi,
it is possible to store media files within an XML file. As you already mentioned the textual representation of the file will be stored. A media file is a binary representation of the media itself. This binary representation can be stored on a sheet of paper, a database or an XML file. I suggest that you convert the binary representation of the file into a base64 encoded string (use Convert.ToBase64String) and place that string in an XML element.
Let me know if you need further details.
Regards
Sebastian
|
|
|
|
|
Thanks for the advice...much appreciated.
I found a program that can convert an image to base64 string, and I can then embed this within the XML file.
I tried programming this myself in order to be able to convert files of any media format (images, audio, video, etc.)
I am kinda stuck trying to use the Convert.ToBase64String. I am trying to get an array of bytes from the image file to put in as a parameter for the Convert method.
The only array I can get from the image in the form of 'Guid' type.
Is the any other way of converting an image (and other files) to base64 string format?
|
|
|
|
|