473,890 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.p df 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 3017
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
1303
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 PDF), but I want to produce PNG for inclusion on a website. Can I invoke a program from inside XSLT? I can include instructions in the Makefile to invoke the program to process the SVG, but I might prefer to do it directly from XSLT.
13
3685
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" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8
6028
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 ASP.NET tags and HTML tags. <%@ Page Language= etc...
0
2660
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 a soma QUANT*PREÇO vai me dar o TOTAL. Em subtotal tenho a expressao =Soma()mas ao puxar esse valor para um campo no relatório se nao tiver nenhum dado no campo TOTAL fica assim #Erro . Como faço para sair um valor 0,00 quando não tem valor em...
0
2173
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 numeri di telefono dell'ufficio, questi potessero essere visualizzati tutti su una stessa cella, ovviamente uno alla volta, ed avrei pensato al metodo della casella combinata e...qui nasce il problema.
0
468
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 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..
5
2048
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
4193
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 non-English) characters (e.g. µ). The problem is that I can't load files with such names. The xslt is saved and declared as UTF-8. E.g. the xml file has an µ in its name.
1
11600
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? <resolution>Won'tFix</resolution>
0
9972
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9812
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11210
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10898
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9612
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8001
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5832
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4653
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3261
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.