|
Ok, but do I understand right that finally at some place in the wordml document a URL should occur?
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Yes you're right. What should I write into the xsl to generate url in the wordml?
Savas
|
|
|
|
|
Simply writing the URL should be sufficient (will be copied as it is into the output).
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Writing only the URL is not sufficient. When I did this it said 'http://localhost.....' is not a valid XPath. So I tried string('http://....'). Finally I tried;
<xsl:variable name="value">
<xsl:value-of select="Attributes/RMFileTypeRel_FileTypeImage"/>
</xsl:variable>
<xsl:value-of select="concat('http://localhost/images/', $value)"/>
but still says mandatory attribute select is missing...
Savas
|
|
|
|
|
I did mean you should simply write it without the xsl:value-of. You already have the URL so what should be selected.
<xsl:variable name="value">
<xsl:value-of select="Attributes/RMFileTypeRel_FileTypeImage"/>
</xsl:variable>
concat('http://localhost/images/', $value)
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cookwww.troschuetz.de
|
|
|
|
|
Yeah I got it These two worked now. My last and yours. Actually the problem was silliness of ex-writers!! Variable names was like varValue1, varValue2, xslAtt1, xslAtt2-3..... I changed these silly names and problem appeared clearly Thank you so much for your help. I'll disturb you on another problem
Savas
|
|
|
|
|
i am trying to write around 70,000 sql table data to XML in ASP.Net, but i am not able to get more than 4500 record in XML. What could be the problem, is there any solution for this problem ???????
|
|
|
|
|
What are you using to create the XML? If you are using the XmlDocument type you probably run out of memory.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
I have some XML tags stored in a string. This data is obtained through remoting.
I want the same to be displayed on an HTML page by using a Respose.Write. When I do a Response.write of the string then it loses its XML format and just displays as string alone.
Could I know how to display the same in XML format itself.
I tried using REsponse.ContenType = "text/xml", But this is giving me an error
|
|
|
|
|
anufabian wrote: But this is giving me an error
What error?
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
It gives me the following error ::::
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Cannot have a DOCTYPE declaration outside of a prolog. Error processing resource 'http://localhost/WebApplication10/WebForm...
----------^
|
|
|
|
|
Try calling the Clear method before writing the XML string to make sure the HTTP response contains nothing else.
Response.ContenType = "text/xml";
Response.Clear();
Response.Write(xmlString);
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
I am still getting the same error.
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Cannot have a DOCTYPE declaration outside of a prolog. Error processing resource 'http://localhost/WebApplication10/WebForm...
----------^
I assume that the line DOCTYPE HTML... is the firsy line written on an aspx page . Is this causing the problem. I tried to save the xml in a file , it works fine. However my requirement is to display the XML on an aspx page , along with the look and feel of XML .
|
|
|
|
|
anufabian wrote: However my requirement is to display the XML on an aspx page
Ah, I thought you want to send back the pure XML. My fault.
Take a look at the System.Web.UI.WebControls.Xml control and the continuative links in its documentation. I think they should help you to achieve what you want.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
The above technique did not help me. However I was able to solve the issue by using something like this.
Response.Write("<xmp>" + outputstring + "/xmp>");
This i got it from some one else. However I still dont understand what is the use of <xmp> tag.
If possible could you throw some light on this.
|
|
|
|
|
"The XMP tag displays a sequence of literal characters in the browser's default fixed-width font. The XMP element displays all white space and line breaks exactly as they appear inside the <xmp> and tags." (HTML Tag Reference[^])
Another resource (SelfHTML[^]) said that the xmp tag is no longer a part of the HTML standard. Though they are still supported by current browsers, one should not count on this. The resource suggests of instead using the pre tag. Since the pre element interprets HTML tags, you must use special symbols for any character that has a meaning in HTML that you wish to be displayed rather than interpreted. For example, use &< for the < symbol, and use &> for the > symbol.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Please help me to write code to establish the connection to SQL Server 2005 database in C#.net(VS 2005) windows application. Also I need to write select statements to retrieve data from the databse which is XML type.
Sanjeewani
|
|
|
|
|
Select * from sometable for xml auto, elements
|
|
|
|
|
Please help me to write code to establish the connection to SQL Server 2005 database in C#.net(VS 2005) windows application. Also I need to write se lect statements to retrieve data from the databse which is XML type.
Sanjeewani
|
|
|
|
|
Hello, I'm new to attributes. Attributes seem to solve a problem I have with my data representation. However, how are attributes stored in a database?
Specifically, I'm using VS'03 to build a typed data schema, wherein I create and populate some elements. I can use the SqlDataAdapter to load/retrieve from the dB, no problem. Now, I add attributes to the schema, how do I get them into the dB and what is the representation?
Thanks.
NYC Traveler
|
|
|
|
|
Hi everybody
I'm approaching xml schema language applied to custom
data files, but using diffgram schema too; I would like
to examine this schema.
Anybody knows where can I get from the internet? I
already gave a watch to some microsoft websites but I
don't find it...
thanks for any link you can submit me
FPT
|
|
|
|
|
Hi,
In one of my projects , i got a problem
<ExtensionInfo ><br />
<ObjectExtension><br />
<Extension Name="test123" ExtensionType="SymbolExtension" InheritedFromTagName="" / ><br />
<Extension Name="test123" ExtensionType="ScriptExtension" InheritedFromTagName="" / ><br />
</ObjectExtension><br />
<AttributeExtension / ><br />
</ExtensionInfo>
when i pass test123 ,get_nodeValue is returning SymbolExtension.
I have no clue to get ScriptExtension.
Can any one of you help me to get the ScriptExtension by using get_nodeValue .
Thanks in advance.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
NiceNaiduwhen i pass test123 ,get_nodeValue is returning SymbolExtension.
What exactly is get_nodeValue doing?
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
|
Ok, I never used that API but as far as I can see from the docs, you have to use a method like getElementsByTagName to select the Extension elements and then do any further work on the second element in the returned list. In the MSDN topic of getElementsByTagName an example is given that selects all media nodes, iterates through the node list and display the node value of every attribute for every node in the list. IXMLDOMDocument::getElementsByTagName[^]
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|