473,811 Members | 2,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it possible to exclude an imported xslt library temporarily ?

Hi All,

Is there a way to temporarily suspend the use of imported libraries in
xslt ?

To be precise the issue I am trying to resolve is ,

I have a library imported as
<xsl:import href="Defaults. xsl" /which strip off html tags like <p>
etc from the acted upon xml.

for ex:
<placeholder id="1016">
<placeholder-content>
<P>test1</P>
<P>test2</P>
</placeholder-content>
</placeholder>
I apply it in the following way

<xsl:if test="string-length(//placeholder[@id='1016']/placeholder-
content)&gt;0">
<div id="suspendedSt riping">
<xsl:value-of select="//placeholder[@id='1016']/placeholder-
content" />
</div>
</xsl:if>

I would like to suspend not strip the <pwhile I am within this
operation and reactivate when I am out

Aug 9 '07 #1
3 1852
Easiest solution I can think of would be to use modes.

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
Aug 9 '07 #2

tuka <tu**@yorn.netw rote in
<11************ ********@q75g20 00hsh.googlegro ups.com>:
Is there a way to temporarily suspend the use of imported
libraries in xslt ?
No. If you use template-based processing, you can sometimes
define a template with higher specificity that matches you
special case. Using modes and/or named templates is an
option as well.
I have a library imported as
<xsl:import href="Defaults. xsl" /which strip off html
tags like <petc from the acted upon xml.

<placeholder id="1016">
<placeholder-content>
<P>test1</P>
<P>test2</P>
</placeholder-content>
</placeholder>

I apply it in the following way

<xsl:if
test="string-length(//placeholder[@id='1016']/placeholder-
content)&gt;0"< div id="suspendedSt riping">
<xsl:value-of
select="//placeholder[@id='1016']/placeholder- content" />
</div>
</xsl:if>
I don't see any template application in this code snippet.
The 'tags' are stripped because you're using xsl:value-of
for some inexplicable reason. What else did you expect?
Want a 3-oz bottle of Pavel's Wonderful Aromatic
De-Confuzzler for just $3.00 (non-refundable, shipping fees
and applicable taxes not included)?
I would like to suspend not strip the <pwhile I am
within this operation and reactivate when I am out
Specificity and/or modes, as I said above.

--
"Patience is a minor form of despair, disguised as
virtue." -- Ambrose Bierce
Aug 10 '07 #3
Thanks guys,

i was able to solve this a simpler way not requiring using xslt (or at
least reuiring a minor unrelated modification).

Either way I see I will have to study some of the suggestions you gave
as I am unfamiliar with some of it.

Thanks again.

Aug 10 '07 #4

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

Similar topics

6
1552
by: blabla120 | last post by:
Hello, I have a source file with <StartEvent starttime="2006-04-19T20:15:00Z"/> I want to transform it with XSLT into <Starttime>2006-04-21T20:15:00Z</Starttime>
1
2927
by: Ganesh Muthuvelu | last post by:
Hello all, I want to exclude one node (element alone) but copy all of the other elements. This is the XSLT I have. I want to exclude the "alias" element alone but it does not work.. Can somebody help? ************ <?xml version="1.0" ?> <xsl:stylesheet version="1.0"
4
7723
by: Samuel R. Neff | last post by:
I'm writing an xslt in vs.net 2003 and in order to get intellisense on the html content I added the default namespace declaration xmlns="http://schemas.microsoft.com/intellisense/ie5". However, even though I also have exclude-result-prefixes="#default" declared the default namespace is still outputted on the resulting document. <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0"...
10
8534
by: Simon Brooke | last post by:
I'm struggling to understand what 'exclude-result-prefixes' does and is for; the language of the standard http://www.zvon.org/xxl/XSLTreference/W3C/xslt.html#literal-result-element is not exactly easy to follow. What I assumed it was supposed to do is mark specific prefixes as not to be printed in the generated document, but that does not work with any of the XSL tools I'm currently working with (Xalan 1.2.2 and 2.7.0, xsltproc...
0
9734
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
10395
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10408
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
10137
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7673
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
6895
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5561
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
4346
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
3026
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.