I would like a brief and easy way to strip tags from an XHTML document, and believe there has to be something curt enough among all the options like: XSLT, XPath, XQuery, custom C# programming using the .NET XML namespace. I'm open to others.
For example, I want to strip all <b> tags from an XHTML document but
keep their inner cont...
hi guys,
I am using XSLT1.0 for transforming my XML.
I am having below Tabs.xml
<?xml version="1.0"?>
<tcm:ListItems xmlns:tcm="http://www.tridion.com/ContentManager/5.0" ID="tcm:481-87289-4" Managed="68">
<tcm:Item ID="tcm:481-596728-64" Title="T000. Brisbane" pageURL="/australia/brisbane/index.aspx" componentTitle="Overview"/>
...
I am using Xalan 2.7.0 (as bundled with Apache FOP 1.0) and have problems when using string functions.
The line <xsl:value-of select="fn:replace('test', 't', '*')"/> results in this exception:
javax.xml.transform.TransformerException: java.lang.IllegalArgumentException: argument type mismatch
at org.apache.fop.cli.InputHandler.tran...
I am setting a xslt param with PHP, and then calling the transform. I want to use the param value in an XPath expression to grab the proper nodes, but this doesn't seem to be working. I am guess it's possible, I think I am just missing the syntax. Here what I have...
PHP:
$xslt->setParameter('','month','September');
XSL:
<?xml versi...
Below is the actual xml
<?xml version="1.0" encoding="utf-8"?>
<employee>
<Name>ABC</Name>
<Dept>CS</Dept>
<Designation>sse</designation>
</employee>
And i want the output as below:
<?xml version="1.0" encoding="utf-8"?>
<employee>
<Name>ABC</Name>
<Age>34</Age>
<Dept>CS</Dept>
<Domain>Insurance</Domain>
<Designation>sse</d...
Hi, I am trying to transform an XML file with the following namespace, but could find out a way to make it working with the default namespace without adding a prefix to the output XML.
Original XML file:
<pExport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://workflow.co...
I have a Sitecore 4 solution, where i need to loop through a media folder and show all the files in that folder. I have an item with a link type. I have then choosen a file inside the folder.
I then want to grab this file, and find the folder it excist in, and then loop through all the files in that folder, and show them.
All this in x...
Im working with PHP5, and I need to transform XML in the following form:
<item>
<string isNewLine="1" lineNumber="32">some text in new line</string>
<string>, more text</string>
<item>
<string isNewLine="1" lineNumber="33">some text in new line</string>
<string isNewLine="1" lineNumber="34">some text</string>...
Hi all,
I need some help with an xsl transformation, I have no idea how to begin with it because I am a novice.
I have this xml scheme:
<?xml version="1.0" encoding="utf-8"?>
<GetUserCollectionFromSiteResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/directory/">
<GetUserCollectionFromSiteResult>
<GetUserCollectionFr...
Im working with PHP5, and I need to transform XML in the following form:
<list>
<item label="(1)">some text</item>
<item label="(2)">
<anotherNode>some text</anotherNode
<item label="a">some text</item>
<item label="b">some text</item>
</item>
</list>
Into something like this:
<lis...
I've been trying to use XSL with Google Chrome, but with no success.
I read that Chrome have some bugs with XSLT, and one of them is that it doesn't support xsl:include. Bug can be checked here: http://code.google.com/p/chromium/issues/detail?id=8441.
After some research I found a new version of the transform plugin by Daer System, and i...
Hi
I'm having the raw xml with
<XMLNS:NS1 ...........>
And after transforming its giving me the proper output but the xml nameSpace is getting modified as
<XMLNS "url">
And does not have that NS1 prefix anymore.. so can you hrlp me how to keep the prefix when doing a XSLT transformation?
...
hello
I am playing with XSLT with MSXML2 for the first time. And of course it doesn't work :-)
I have a bug which I cannot figure to solve.
So as to fix the bug, I try to understand everything around: and something shocks me.
void xsltProcessing(IXMLDOMDocument* pXmlDoc, IXMLDOMDocument * pXslDoc)
{
CComPtr<IXSLTemplate> pTemplate...
I have been using a CMS which is called Umbraco(umbraco.org) and for displaying flash news on the website using SlideShowPro Standalone product(www.slideshowpro.net)
In brief I created a section on admin panel as follows.
-Flash(which has a xslt file)
- Month name
- A node with image
- A node with video
Every mon...
Well, it's been several hours I'm lost...
IXSLTemplate::putref_stylesheet doesn't document any error except E_FAIL.
However in my case putref_stylesheet returns E_INVALIDARG. GetErrorInfo() is only redundant telling me that the "Argument is invalid". So I am not left with much information.
However my code is pretty close to all exampl...
I have this XML:
<Root>
<Tag>
<Childlist>
<I>1</I>
<Dlist>2</Dlist>
<Dlist>3</Dlist>
<Dlist>4</Dlist>
</Childlist>
<Childlist>
<I>11</I>
<Dlist>2</Dlist>
<Dlist>3</Dlist>
<Dlist>4</Dlist>
</Childlist>
<...
Hello,
I am using XSL FO to generate a PDF file containing a table with information. One of these columns is a "Description" column. An example of a string that I am populating one of these Description fields with is as follows:
This is an example Description.<br/>List item 1<br/>List item 2<br/>List item 3<br/>List item 4
Inside the...
Hi,
I have an XSLT script which I would like to number things sequentially each time I call a template. So a very abbreviated version of it looks a bit like:
<xsl:call-template name="insertHeader" />
<xsl:for-each ...>
<xsl:call-template name="insertHeader" />
...
</xsl:for-each>
<xsl:call-template name="insertHeader" />
<xs...
Hi all,
I'm facing a nasty encoding issue when transforming XML via XSLT through PHP.
The problem can be summarised/dumbed down as follows: when I copy a (UTF-8 encoded) XHTML file with an XSLT stylesheet, some characters are displayed wrong. When I just show the same XHTML file, all characters come out correctly.
Following files illu...
I have two xml document: one as source file and one as dictionary file. Because I need to restructure the source file and also combine extra information for each element in first source file. I'm new bie in XSL transformation that why this is the hard assignment for me. I think somebody can help me to resolve this problem.
- First I don'...