Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XPATH with

From: qluo <jluost1@-----.--->
To: NULL
Date: 7/1/2004 11:58:00 AM
That's a great help.

Now I get into the namespace issue.

When I try to output the following (all variables are declared):

<Data ss:Type="$data_type" NAME="$field_name"><xsl:value-of 
select="$field_data"/></Data>

It actaully output:


<Data
ss:Type="$data_type"
NAME="$field_name" 
xmlns="urn:schemas-microsoft-com:office:spreadsheet" 
xmlns:o="urn:schemas-microsoft-com:office:office" 
xmlns:x="urn:schemas-microsoft-com:office:excel" 
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" 
xmlns:html="http://www.w3.org/TR/REC-html40">
</Data> 	

How can I get the variable value into xml output?

And how can I get rid of the annoying lines of "xmlns:"?

Thank you very much.

		


		

Oleg Tkachenko [MVP] wrote:
> qluo wrote:
> 
>> I Think you are right. How can I address the issue then?
>>
>> The beginning of the template.xml is:
>> -------------------------------
>> <?mso-application progid="Excel.Sheet"?>
>> <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
>>  xmlns:o="urn:schemas-microsoft-com:office:office"
>>  xmlns:x="urn:schemas-microsoft-com:office:excel"
>>  xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
>>  xmlns:html="http://www.w3.org/TR/REC-html40">
>> ---------------------------------
>>
>> Again, how can I make the following work?
>>
>> ------------------------------
>> <xsl:for-each select="$template_xml/Workbook/child::*">
>>    <xsl:copy-of select="."/>
>> </xsl:for-each>
> 
> 
> <xsl:stylesheet xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" 
> ...>
> 
> <xsl:for-each select="$template_xml/ss:Workbook/child::*">
> 
> 
> 



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent