xpath to select all the elements in XML with one exception only
Thu, 7 Feb 2008 01:52:47 -0800 (PST)
Hi
I need an efficient xpath 2.0 expressions to apply it to the following
input xml
<tag1>
<tag2>
......... many elements here
</tag2>
<tag3>
<tag4> a number here</tag4>
......... many elements here
</tag3>
<tag3>
<tag4> > a number here </tag4 ...
|
distinct output
Thu, 7 Feb 2008 00:19:52 -0800 (PST)
Hello,
I have a xml like this:
<root>
<item name="111">
<subitem name="aaa">
<subitem name="bbb">
</item>....
Now I want to output the item names for some subitems.
example: I want all item names with a subitem "aaa"
I can do that. Now comes the but:
I want them only be outputted ...
|
Implementing a "State Machine" in XSL?
Wed, 06 Feb 2008 19:47:46 +0100
Hello,
i need to use XSL to truncate a HTML fragment, keeping the tags intact.
So for example, i want to truncate this HTML to include ~15 visible
characters:
<b>This is a <span style="color: #888">very long</span> Text</b>
The result should be:
<b>This is a <span style="color: #888">very </span></b>
...
|
Non-breaking space won't display properly in one instance
Wed, 6 Feb 2008 08:11:00 -0800
I have an XSLT file I can use in my app along with XML-formatted data to spit
out HTML 'til the cows come home without any problems. However, when using
it on another machine, all of my non-breaking spaces (I'm using in the XSL)
end up being displayed as Ã? (ASCII 143) in the HTML it generates. To the
be ...
|
Simple select question (newbie to xsl+xml) - Selecting from just one
node at a time
Wed, 6 Feb 2008 08:03:40 -0800 (PST)
Hi all,
I have several nodes that are identical. They each have a properties
X:
<nodes>
<node>
<X>one</X>
<X>two</X>
</node>
<node>
<X>aaa</X>
<X>bbb</X>
<node>
</nodes>
In my xsl I have
<xsl:for-each select="//blah/nodes">
<nodes>
</node>
</xsl:for-each>
...
|
complex selection
Wed, 6 Feb 2008 05:06:58 -0800 (PST)
Hi
Can anyone help me make the following selection?
For element which has a tag3 value "fr" choose tag4 value concatenated
with the value of tag4 value for the element whose tag3 is "nl"
If tag4 is missing (for "fr" or "nl") then choose tag5 value
For the following example, I need the output to be 3 2
...
|
Xpath functions in XSL not recognised by ASP.NET 2.0
Wed, 6 Feb 2008 01:18:00 -0800
Hi,
Iâ??m trying to display the contents of an xml file using an xslt file. Iâ??m
using ASP.NET.2.0 and the xsltCompiledTransform method in order to achieve
the transformation. Everything works fine when I donâ??t have xPath functions
in my xslt. But when I declare the namespace
â??xmlns:fn=http://www.w ...
|
|
|
comments inside XSL
Mon, 4 Feb 2008 08:21:35 -0800 (PST)
Hi
I need to write an XSL that makes a transformation to an input xml
such as:
<tag1>
<email> test@hotmail.com </email>
</tag1>
Such that I have an output:
<properties>
<email-property key="email" value="test@hotmail.com" />
</properties>
-->
I tried the following xsl:
<xsl:comment>
<x ...
|
Invest smart
Sat, 2 Feb 2008 14:42:48 -0800
How much profit can you make with one dollar?
Check out this website www.forbuck.com
Without any obligation, registering or other ties make cash!
...
|
xsl:apply-templates
Thu, 31 Jan 2008 12:19:45 +0100
I want to use the select function on apply-templates in order to do some
search.
When there is a record found match the Select pattern, how can I determine
which template (name) the apply-templates will call to display the data with
HTML code in it?
Is there something like call-template which you can giv ...
|