473,386 Members | 1,962 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

problema con xslt e caratteri escape

ciao,
in un campo "file" di un documento xml ho qualcosa del tipo
..\folder\file.pdf
ovviamente nn posso cambiare il modo in cui il folder e il file sono
visualizzti in quel tag perché il file xml é generato automaticamente
e sarebbe tropppo lungo modificarlo..

ora, devo visualizzare separatamente il file e il folder
sto provando ad usare la seguente istruzione ma senza risultati
decenti..
semplicemente nn visualizzo nulla! :(

<xsl:value-of select= "substring-after(substring-after(.,'\\'),'\\')"
disable-output-escaping="yes" />

(uso il punto "." ovviamente perché mi trovo nel nodo appropriato..

il problema é che il contenuto .\folder\file.pdf viene interpretato
come qualcosa di diverso in quanto il back slash é interpretato come
carattere escape..quando perció la funzione cerca il back slash nn lo
trova e non visualizza nulla..avete idea di come fare a risolvere il
mio problema?`
grazie mille!!
teo

Dec 16 '05 #1
1 2953
ok,
bastava solo scrivere cosí
<xsl:value-of select= "substring-after(substring-after(.,'\'),'\')"
disable-output-escaping="yes" />

lo posto in caso lo stesso problema si presenti a qualcun altro ;)
teo

Dec 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Keith Davies | last post by:
Hi All, is there a (reasonably) portable way in XSLT to invoke an external program? I've got data I want to represent as a number of charts. I can write SVG easily enough (and they look nice in...
13
by: Tjerk Wolterink | last post by:
Hello i've an xsl stylesheet that must support xhtml entities, my solution: ---- <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE xsl:stylesheet > <xsl:stylesheet version="1.0"...
8
by: Kathleen Dollard | last post by:
Hi, Oleg's answer about attribute value templates led me to look back at a different problem, and wonder if someone else had solved it. I want to output an ASP.NET page. Thus I need to output...
0
by: Sergio | last post by:
Olá pessoal Estou com um problema num relatório, quando mando imprimir ou visualizar um determinado relatório com um subrelatório que tem varios campos entre os quais quant, preço, total, fazendo...
0
by: StellaAzzurra | last post by:
Salve, premettendo che non sono un esperta di access, vi pongo il mio problema. Sto facendo una rubrica con access ed avrei la necessità di fare in modo che se ad esempio un mio clienti avesse 5...
0
by: teo_teo_teo | last post by:
ciao, in un campo "file" di un documento xml ho qualcosa del tipo ..\folder\file.pdf ovviamente nn posso cambiare il modo in cui il folder e il file sono visualizzti in quel tag perché il file...
5
by: Newbie | last post by:
The answer to this is probably obvious, but I'm somewhat new to XSLT and can't find it. I need to sort a set of nodes within a document, e.g. <A> <B/> <C> <D>3</D> <D>2</D>
3
by: ManWithNoName | last post by:
Hi! I am trying to load files that contain non-standard (and non-English) characters (e.g. µ), and need some help in understanding how the XSLT document() function interprets non-standard (and...
1
by: saritha2008 | last post by:
Hi, I have to convert the following Input xml code to output xml code using xslt. Can any one please help on escaping single quotation present in the input xml file in my xslt? ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.