XSLT only for specific doctypes
Fri, 26 Oct 2007 09:57:43 +0100
Hi
How do I write conditional processing into a stylesheet dependent on the
<!DOCTYPE definition present in the source XML files.
i.e. pseudo-code
<xsl:choose>
<xsl:when test="doctype(/) = 'v1'">
do-this
</xsl:when>
<xsl:when test="doctype(/) = 'v1.1'">
do-that
</xsl:whe ...
|
Easy problem of nodes
Thu, 25 Oct 2007 07:27:02 -0700
Hi to all,
I have a xml file with labels and data.
Im trying to mix both files to generate someting like:
Label A : data of node a
Label B : data of node b
Label C : data of node c
My main problem its that the only thing that i know is that the number of
node labels is equal to the nodes of data.
...
|
Iterating through node's children - help
Tue, 23 Oct 2007 10:26:20 -0700
Hello,
maybe you could help me a little please with xsl. Let's say I have
xml:
<report>
<JobInformation> ... </JobInformation>
<Test1> ... </Test1>
<OtherTest> ... </OtherTest>
.....
</report>
I would like to iterate through each child of <report> and do some
html if child name matches g ...
|
How to get just CR instead of CRLF?
Fri, 19 Oct 2007 09:13:03 -0700
Our system has an XSL file which, when used in conjunction with Java
code, produces a plain text file that is delivered by e-mail to
customers. In this XSL file, the "code" that handles EOL is:
<xsl:text>
</xsl:text>
When I use a hexadecimal reader on my PC, however, it shows 0D 0A at
the end of each li ...
|
format-date is not showing the correct date
Thu, 18 Oct 2007 15:22:10 -0700
Hi all.
The msxsl:format-date() returned an unexpected formatted date for me.
...
<xsl:variable name="extract_date" select="local:getExtractDate()" />
<xsl:value-of select="$extract_date"/>
<xsl:value-of select="msxsl:format-date($extract_date,'yyyyMMdd')"/>
<xsl:value-of select="msxsl:format-date($extract_d ...
|
I get the error message "cannot find the script or external object that implements prefix"
Thu, 18 Oct 2007 12:56:55 -0700
Hi Sirs,
When I use the code in the attached file, I get the error message
"cannot find the script or external object that implements prefix"
Could you help me pls
Regards,
Selami Ozlu
----
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:functx="http:// ...
|
What I do wrong??
Thu, 18 Oct 2007 08:58:25 +0200
I try this:
/////////////////////////////////////////////////////////////////////////////////////////////////
I have xml atribute @SumaryLinks with this value:
<div title="_schemaversion" id="_3">
<div title="_links">
<div title="_link">
<span title="_title">Link1</span&g ...
|
|
|
XSLT Recursive Reversal of Ancestry
Wed, 17 Oct 2007 23:00:09 -0700
I have an XML file containing a hierarchical relationship between
"Object Types". Each relationship contains a reference to the GUID for
that Object and I have been tasked to extract these GUID's in reverse
order into a pipe delimited file. The file will be used to delete
these objects using the GUID as an ID, s ...
|
Re: Test iTunes code
Wed, 17 Oct 2007 14:25:01 -0600
I'm still playing with this, without luck. I wrote the webmaster
without a reply.
On Fri, 05 Oct 2007 14:34:18 -0600, Howard Brazee <howard@brazee.net>
wrote:
>I found some code on the Web that I wanted to try:
>
>http://www.brainbell.com/tutorials/XML/Building_An_ITunes_Web_Viewer.htm
>
>Listing 13.3. ...
|
Unexpected extra characters at beginning of output
Wed, 17 Oct 2007 11:01:46 -0400
I've got an Xslt stylesheet designed with XmlSpy (XML --> text) with
<xsl:output method="text"/>
In XmlSpy, it transforms perfectly. Using .NET xslt, it seems to be adding
a some extra characters at the beginning:
- Looks like a little box in Word (Asc 63)
- Carriage return (Asc 13)
- Linefeed (Asc 10) ...
|