You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Roper, John" <Jo...@iOra.com> on 2001/03/26 12:53:23 UTC
global variables (parameters)
Hi,
I am setting some global variables using
XSLTEngineImpl::setStylesheetParam(name,value). I want to include an
apostrophe in the value, but I can't seem to get this to work. I've tried:
1) passing 'fred's machine'. Blows up due to uneven '.
2) passing 'fred's machine'. Does not convert the escaped char? Sounds
wrong to me - is this a bug?
Is this a bug? Should I be escaping the ' differently?
Thanks
John Roper
DOCTYPE not appearing in Xalan Serializer output
Posted by Rick Bullotta <Ri...@lighthammer.com>.
Could be a usage issue or "undocumented feature" we're missing...basically
creating an in-memory DOM, then trying to serialize it using the Xalan
Serializer (note: the Xerces serializer works fine). First glance at the
Xalan source didn't yield any immediate indications as to why it wouldn't be
working.
Regards,
Rick Bullotta
CTO
Lighthammer Software
===================
Here's a code snippet to reproduce:
DocumentImpl doc = new DocumentImpl();
// Add DTD information
String strDocType = "MyDocType";
DocumentType dtd = doc.createDocumentType(strDocType,null,LOCALHOST_PATH +
Constants.DTD_STORAGE_SUBDIRECTORY + strDocType +
Constants.DTD_FILE_EXTENSION);
doc = new DocumentImpl(dtd);
// Create the root element and add it to the tree
Element root = doc.createElement(strDocType);
doc.appendChild(root);
Serializer serializer =
SerializerFactory.getSerializer(OutputProperties.getDefaultMethodProperties(
"xml"));
serializer.setWriter(System.out);
serializer.asDOMSerializer().serialize(doc);
RE: existance of a file
Posted by Christian Aberger <xm...@Aberger.at>.
Hi !
This is definitly not a question that should be posted here, I suppose it is
a question for the xslt mailing list. Please ask there the next time.
I suppose you use xalan to transform some xml - document that contains the
path to the image to transform it to html, right ?
something like:
<image path="/usr/share/htdocs/images/sample.jpg"/>
then you need in the stylesheet a sequence like:
<xsl:if test="string-length(image/@path)=0">
<img alt="blah blah blah..." src="/usr/share/htdocs/images/default.jpg"/>
</xsl:if>
wfR Christian Aberger
-----Original Message-----
From: chris markiewicz [mailto:cmarkiew@commnav.com]
Sent: Montag, 26. März 2001 15:40
To: xalan-dev@xml.apache.org
Subject: existance of a file
hello.
i have a page that displays an image (among other things). if the image is
removed from the filesystem, i would like to display an alternate image.
can xsl help me, or should i check for the existance of the file in the back
end (java)?
thanks
chris
existance of a file
Posted by chris markiewicz <cm...@commnav.com>.
hello.
i have a page that displays an image (among other things). if the image is
removed from the filesystem, i would like to display an alternate image.
can xsl help me, or should i check for the existance of the file in the back
end (java)?
thanks
chris