Tag without endtag in XSL
Hi,
If I write for exemple <BR></BR> or
in my XSL template. The XSL Parser transforms it in <BR> (without the trailing slash). I don't want <BR> but
or <BR></BR> as output tag.
Any suggestion
Thanks
Johannes Borch
null
really, that's odd. I have done that many times and have not had that problem.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Johannes Borch <[email protected]>:
Hi,
If I write for exemple <BR></BR> or
in my XSL template. The XSL Parser transforms it in <BR> (without the trailing slash). I don't want <BR> but
or <BR></BR> as output tag.
Any suggestion
Thanks
Johannes Borch<HR></BLOCKQUOTE>
null
Similar Messages
-
Error: Illegal use of when -style tag without choose as its direct paren
Hi,
I'm using the Code:
<c:choose>
<c:when test="${empty param.usernaseme}" >
<B>Hello <c:out value="${param.usernaseme}" /></B>
</c:when>
<c:otherwise>
unknown user name.
</c:otherwise>
</c:choose>
and keep geting the Error:
Illegal use of <when>-style tag without <choose> as its direct parent
As far as know
the code is OK.
Declare Is OK (Other thigs using <c:out /> working)
thanks for your halp
ShimonHi,
I'm using the Code:
<c:choose>
<c:when test="${empty param.usernaseme}" >
<B>Hello <c:out value="${param.usernaseme}" /></B>
</c:when>
<c:otherwise>
unknown user name.
</c:otherwise>
</c:choose>
and keep geting the Error:
Illegal use of <when>-style tag without <choose> as its direct parent
As far as know
the code is OK.
Declare Is OK (Other thigs using <c:out /> working)
thanks for your halp
Shimon -
Error deserializing arguments, xml tag without a recognized type
I am trying to run a webservice created using Weblogic Workshop 8.1sp2 that communicates
with an ejb control. When I test in debug mode, I get the above error, specifically:
<detail>
<jwErr:jwErrorDetail xmlns:jwErr="http://www.bea.com/2002/04/jwErrorDetail/">
com.bea.wlw.runtime.core.request.RequestValidationException: Error deserializing
arguments.
Encountered an xml tag without a recognized type: the type must be declared with
an xsi:type attribute.
Caused by: com.bea.xml.marshal.XmlEncodingException: Encountered an xml tag with
out a recognized type: the type must be declared with an xsi:type attribute.
</detail>
I am passing a Request object to the jws method (to the ejb) that has a Collection
as an instance member. This Collection references objects of another type, Param
(code for both objects below). Before passing the object, I convert the Collection
to an array of objects. When I call the operation via a java client, I get the
above message.
In Workshop, I've included the Request and Param classes as the parameter xml
and the soap style is rpc. I've tested the ejb by itself and it is working fine.
Request.java:
import java.util.*;
public class Request implements java.io.Serializable
protected Collection params=null;
public Collection getParams()
{ return params; }
public void setParams(Collection data)
{ params=data; }
Param.java:
public class Param implements java.io.Serializable
private String name=null;
private Object value=null;
public String getName()
{ return name; }
public void setName(String data)
{ name = data; }
public Object getValue()
{ return value; }
public void setValue(Object data)
{ value=data; }
Here's the code from the jws:
public class MyWS implements com.bea.jws.WebService
* @common:control
private control.PSEjbControl psEJB;
static final long serialVersionUID = 1L;
* @common:operation
* @jws:parameter-xml
* include-java-types="mypackage.Request mypackage.Param"
* @jws:protocol soap-style="rpc"
public void addData(mypackage.Request arg0) throws java.rmi.RemoteException
System.out.println("arg0 : " + arg0);
psEJB.addData(arg0);
*Note: in the server console, arg0 comes through as null when called from my client.
Here's the bit from my client:
import weblogic.jws.proxies.*;
import org.openuri.www.encodedTypes.Request;
import org.openuri.www.encodedTypes.Param;
public void go(String wsdl) throws Exception {
MyWSSoap mw = null;
mw = new MyWS_Impl().getMyWSSoap();
Request req = new Request();
Collection reqColl = new ArrayList();
Param param1 = new Param();
param1.setName("NAME");
param1.setValue("Joe Tester");
Param param2 = new Param();
param2.setName("ADDRESS");
param2.setValue("345 Test Drive");
reqColl.add(param1);
reqColl.add(param2);
Object[] obs = reqColl.toArray();
req.setParams(obs);
mw.addData(req);
Not sure if this enough to go by. Please let me know if you need more information.
Any help is really appreciated. Thanks.Hi Keith,
My only suggestion is to factor out the java.util.Collection (see the
docs here [1]) with either primitive types or XMLBeans [2].
Sorry, not much help. You might also ask your question in the workshop
[3] newsgroup.
Bruce
[1]
http://e-docs.bea.com/workshop/docs81/doc/en/integration/reference/refJavaClassConversion.html
[2]
http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/xmlbeans/conXMLBeansSupportBuiltInSchemaTypes.html
[3]
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.workshop
Keith wrote:
>
Hi Bruce, thanks for the reply. I set the operation for document-style soap and
still get the deserialization exception as mentioned in my original note. Below
is the wsdl. Note: in my original note, the problematic operation was addData()
which is now named addBusinessLocation(). As always, your help is greatly appreciated.
Keith
<?xml version="1.0" encoding="utf-8"?>
<!-- @editor-info:link autogen="true" source="PublicServiceWS.jws" -->
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/"
xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:jms="http://www.openuri.org/2002/04/wsdl/jms/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.openuri.org/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
targetNamespace="http://www.openuri.org/">
<types>
<s:schema elementFormDefault="qualified" targetNamespace="http://www.openuri.org/"
xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:ope="http://www.openuri.org/">
<s:element name="addBusinessLocation">
<s:complexType>
<s:sequence>
<s:element name="arg0" type="ope:Request" minOccurs="0"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="addBusinessLocationResponse">
<s:complexType>
<s:sequence/>
</s:complexType>
</s:element>
<s:element name="getBusinessLocation">
<s:complexType>
<s:sequence/>
</s:complexType>
</s:element>
<s:element name="getBusinessLocationResponse">
<s:complexType>
<s:sequence>
<s:element name="getBusinessLocationResult" type="ope:Response" minOccurs="0"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="Response" nillable="true" type="ope:Response"/>
<s:element name="repeat">
<s:complexType>
<s:sequence>
<s:element name="in" type="s:string" minOccurs="0"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="repeatResponse">
<s:complexType>
<s:sequence>
<s:element name="repeatResult" type="s:string" minOccurs="0"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="string" nillable="true" type="s:string"/>
<s:complexType name="Request">
<s:sequence>
<s:element name="Params" type="ope:Collection" minOccurs="0"/>
</s:sequence>
</s:complexType>
<s:complexType name="Collection">
<s:sequence>
<s:element name="item" type="s:anyType" nillable="true" minOccurs="0"
maxOccurs="unbounded"/>
</s:sequence>
</s:complexType>
<s:complexType name="Param">
<s:sequence>
<s:element name="Name" type="s:string" minOccurs="0"/>
<s:element name="Value" type="s:anyType" minOccurs="0"/>
</s:sequence>
</s:complexType>
<s:complexType name="Response">
<s:complexContent>
<s:extension base="ope:Request">
<s:sequence/>
</s:extension>
</s:complexContent>
</s:complexType>
</s:schema>
</types>
<message name="addBusinessLocationSoapIn">
<part name="parameters" element="s0:addBusinessLocation"/>
</message>
<message name="addBusinessLocationSoapOut">
<part name="parameters" element="s0:addBusinessLocationResponse"/>
</message>
<message name="getBusinessLocationSoapIn">
<part name="parameters" element="s0:getBusinessLocation"/>
</message>
<message name="getBusinessLocationSoapOut">
<part name="parameters" element="s0:getBusinessLocationResponse"/>
</message>
<message name="repeatSoapIn">
<part name="parameters" element="s0:repeat"/>
</message>
<message name="repeatSoapOut">
<part name="parameters" element="s0:repeatResponse"/>
</message>
<message name="getBusinessLocationHttpGetIn"/>
<message name="getBusinessLocationHttpGetOut">
<part name="Body" element="s0:Response"/>
</message>
<message name="repeatHttpGetIn">
<part name="in" type="s:string"/>
</message>
<message name="repeatHttpGetOut">
<part name="Body" element="s0:string"/>
</message>
<message name="getBusinessLocationHttpPostIn"/>
<message name="getBusinessLocationHttpPostOut">
<part name="Body" element="s0:Response"/>
</message>
<message name="repeatHttpPostIn">
<part name="in" type="s:string"/>
</message>
<message name="repeatHttpPostOut">
<part name="Body" element="s0:string"/>
</message>
<portType name="PublicServiceWSSoap">
<operation name="addBusinessLocation">
<input message="s0:addBusinessLocationSoapIn"/>
<output message="s0:addBusinessLocationSoapOut"/>
</operation>
<operation name="getBusinessLocation">
<input message="s0:getBusinessLocationSoapIn"/>
<output message="s0:getBusinessLocationSoapOut"/>
</operation>
<operation name="repeat">
<input message="s0:repeatSoapIn"/>
<output message="s0:repeatSoapOut"/>
</operation>
</portType>
<portType name="PublicServiceWSHttpGet">
<operation name="getBusinessLocation">
<input message="s0:getBusinessLocationHttpGetIn"/>
<output message="s0:getBusinessLocationHttpGetOut"/>
</operation>
<operation name="repeat">
<input message="s0:repeatHttpGetIn"/>
<output message="s0:repeatHttpGetOut"/>
</operation>
</portType>
<portType name="PublicServiceWSHttpPost">
<operation name="getBusinessLocation">
<input message="s0:getBusinessLocationHttpPostIn"/>
<output message="s0:getBusinessLocationHttpPostOut"/>
</operation>
<operation name="repeat">
<input message="s0:repeatHttpPostIn"/>
<output message="s0:repeatHttpPostOut"/>
</operation>
</portType>
<binding name="PublicServiceWSSoap" type="s0:PublicServiceWSSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="addBusinessLocation">
<soap:operation soapAction="http://www.openuri.org/addBusinessLocation"
style="document"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="getBusinessLocation">
<soap:operation soapAction="http://www.openuri.org/getBusinessLocation"
style="document"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="repeat">
<soap:operation soapAction="http://www.openuri.org/repeat" style="document"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<binding name="PublicServiceWSHttpGet" type="s0:PublicServiceWSHttpGet">
<http:binding verb="GET"/>
<operation name="getBusinessLocation">
<http:operation location="/getBusinessLocation"/>
<input>
<http:urlEncoded/>
</input>
<output>
<mime:mimeXml part="Body"/>
</output>
</operation>
<operation name="repeat">
<http:operation location="/repeat"/>
<input>
<http:urlEncoded/>
</input>
<output>
<mime:mimeXml part="Body"/>
</output>
</operation>
</binding>
<binding name="PublicServiceWSHttpPost" type="s0:PublicServiceWSHttpPost">
<http:binding verb="POST"/>
<operation name="getBusinessLocation">
<http:operation location="/getBusinessLocation"/>
<input>
<mime:content type="application/x-www-form-urlencoded"/>
</input>
<output>
<mime:mimeXml part="Body"/>
</output>
</operation>
<operation name="repeat">
<http:operation location="/repeat"/>
<input>
<mime:content type="application/x-www-form-urlencoded"/>
</input>
<output>
<mime:mimeXml part="Body"/>
</output>
</operation>
</binding>
<service name="PublicServiceWS">
<port name="PublicServiceWSSoap" binding="s0:PublicServiceWSSoap">
<soap:address location="http://localhost:8010/WebService/PublicServiceWS.jws"/>
</port>
<port name="PublicServiceWSHttpGet" binding="s0:PublicServiceWSHttpGet">
<http:address location="http://localhost:8010/WebService/PublicServiceWS.jws"/>
</port>
<port name="PublicServiceWSHttpPost" binding="s0:PublicServiceWSHttpPost">
<http:address location="http://localhost:8010/WebService/PublicServiceWS.jws"/>
</port>
</service>
</definitions>
Bruce Stephens <[email protected]> wrote:
Hi Keith,
As a quick test, you might try changing the protocol style to use
doc/lit (@jws:protocol soap-style="document") to see if this provides
another view on the real issue.
Could you post the generated WSDL?
Thanks,
Bruce
Keith wrote:
I am trying to run a webservice created using Weblogic Workshop 8.1sp2that communicates
with an ejb control. When I test in debug mode, I get the above error,specifically:
<detail>
<jwErr:jwErrorDetail xmlns:jwErr="http://www.bea.com/2002/04/jwErrorDetail/">
com.bea.wlw.runtime.core.request.RequestValidationException: Errordeserializing
arguments.
Encountered an xml tag without a recognized type: the type must bedeclared with
an xsi:type attribute.
Caused by: com.bea.xml.marshal.XmlEncodingException: Encountered anxml tag with
out a recognized type: the type must be declared with an xsi:type attribute.
</detail>
I am passing a Request object to the jws method (to the ejb) that hasa Collection
as an instance member. This Collection references objects of anothertype, Param
(code for both objects below). Before passing the object, I convertthe Collection
to an array of objects. When I call the operation via a java client,I get the
above message.
In Workshop, I've included the Request and Param classes as the parameterxml
and the soap style is rpc. I've tested the ejb by itself and it isworking fine.
Request.java:
import java.util.*;
public class Request implements java.io.Serializable
protected Collection params=null;
public Collection getParams()
{ return params; }
public void setParams(Collection data)
{ params=data; }
Param.java:
public class Param implements java.io.Serializable
private String name=null;
private Object value=null;
public String getName()
{ return name; }
public void setName(String data)
{ name = data; }
public Object getValue()
{ return value; }
public void setValue(Object data)
{ value=data; }
Here's the code from the jws:
public class MyWS implements com.bea.jws.WebService
* @common:control
private control.PSEjbControl psEJB;
static final long serialVersionUID = 1L;
* @common:operation
* @jws:parameter-xml
* include-java-types="mypackage.Request mypackage.Param"
* @jws:protocol soap-style="rpc"
public void addData(mypackage.Request arg0) throws java.rmi.RemoteException
System.out.println("arg0 : " + arg0);
psEJB.addData(arg0);
*Note: in the server console, arg0 comes through as null when calledfrom my client.
Here's the bit from my client:
import weblogic.jws.proxies.*;
import org.openuri.www.encodedTypes.Request;
import org.openuri.www.encodedTypes.Param;
public void go(String wsdl) throws Exception {
MyWSSoap mw = null;
mw = new MyWS_Impl().getMyWSSoap();
Request req = new Request();
Collection reqColl = new ArrayList();
Param param1 = new Param();
param1.setName("NAME");
param1.setValue("Joe Tester");
Param param2 = new Param();
param2.setName("ADDRESS");
param2.setValue("345 Test Drive");
reqColl.add(param1);
reqColl.add(param2);
Object[] obs = reqColl.toArray();
req.setParams(obs);
mw.addData(req);
Not sure if this enough to go by. Please let me know if you need moreinformation.
Any help is really appreciated. Thanks. -
Is it possible to create "places" tags without the maping feature?
Is it possible to create "places" tags without the maping feature? I updated from PSE 10 (where I created my own list of "places,") to PSE 12, where "places" seems to require the mapping feature. I would prefer not to use the map, and stick to my old way.
Thanks for any help!
TomApparently, not only is the mapping feature required, but once the GPS-loaded Place tag is created, it is not listed in alphabetical order with other place tags. It is listed by country, then by state, then by title!! !! VERY irritating!! And what if I want to create a place tag (of which I already have many) which does not have a recognizeable address, like, say, Grandmother's House? VERY irritating.
And if I use the Keyword feature to create Place tags, they will be in an entirely separate list from the other Place tags. VERY irritating!
Who designed this upgrade? I will soon start looking for an alternative, though I have used Photoshop Organizer for years and have thousands of photos in it. My upgrade to PSE 12 has caused me nothing but headaches. -
In Flex, mimic a HTML DIV-tag without height constraint?
Hi!
I've posted a somewhat similar question here before and
although the answer was appreciated I'm still wondering if what I
want to do is possible.
In HTML you can create a DIV-tag with a fixed width, say
100px. If you, after that, let the height remain undefined, you can
add content to the tag having it expand it's height appropriately.
Is it possible to achieve the same effect in Flex, or do I
have to have fixed width and height on the application? If I let
the application have a width of 100px, letting the height be
undefined, I get the application to be the same height as the
browser window which is not the case with the DIV-tag above.
Hope someone understands what I mean. Thanks!
/MarcusIf you do this:
<mx:VBox width="100%">
and then put things into this VBox container, it will grow
vertically as much as it needs to without having a specific height.
The Application tag is the same way. Eventually, when you exceed
the visible part of the Flash Player, the Application (or VBox)
will acquire scrollbars. -
SetUpdateColumnList doesn't ignore tags without matching column
I try to import an XML file using the OracleXMLSave class. As my XML document contains a couple of elements that I wouldn't want in my table AND for which a column does not exist, I tried to restrict the import with the setUpdateColumnList() method.
This works fine for XML elements with a matching column but does not work for those without. It gives me the following error message: "oracle.xml.sql.OracleXMLSQLException: Exception ' The XML element tag 'muell' does not match the name of any of the columns/attributes of the target database object.' encountered during processing ROW element 0All prior XML row changes were rolled back."
Is this a bug or a feature?
Thanks, Thomas
nullI try to import an XML file using the OracleXMLSave class. As my XML document contains a couple of elements that I wouldn't want in my table AND for which a column does not exist, I tried to restrict the import with the setUpdateColumnList() method.
This works fine for XML elements with a matching column but does not work for those without. It gives me the following error message: "oracle.xml.sql.OracleXMLSQLException: Exception ' The XML element tag 'muell' does not match the name of any of the columns/attributes of the target database object.' encountered during processing ROW element 0All prior XML row changes were rolled back."
Is this a bug or a feature?
Thanks, Thomas
null -
What version of firefox will support mp4 video tags without plug ins or extensions?
I have a web site that my users upload mp4 videos to my website. I use html 5 and use the video tags type movie/mp4.
The only browser that has worked without any add ins, plug ins or extensions is safari 4.x and safari 5.x with quicktime. What version of firefox will support playing mp4 videos without any add ins or extensions?That will probably not happen if there are codecs used that require a license.
See:
* https://developer.mozilla.org/En/Media_formats_supported_by_the_audio_and_video_elements
* http://en.wikipedia.org/wiki/Use_of_Ogg_formats_in_HTML5
Your above posted system details show an outdated Flash plugin(s) that you should update.
*Shockwave Flash 10.0 r22
*http://www.adobe.com/software/flash/about/ -
Allowing br/ tags to show using XSL
I have a XML document that has multiple comment elements that look something like this:
<GstBk:Comments>Line1
Line2
Line3
Line4
Line5
Line6</GstBk:Comments>
But when I try to use the following code:
<xsl:value-of select="GstBk:Comments" />
or
<xsl:apply-templates select="GstBk:Comments" />
All I get is:
Line1
Line2
Line3
Line4
Line5
Line6
with no
tags. Does anyone have any ideas how I can display the comments with the break formatting?
ThanksI thought it was a simple question but now I'm totally lost. Who or what is generating this XML? You, through a text editor or an XML editor? Or the servlet? Or somebody or something else? Or perhaps the servlet is the thing transforming the XML to HTML (more likely)? And when you "view" the XML and the resulting HTML are you using a browser or a text editor?
Let me just give you a couple of pieces of information, since your problem is now totally beyond me. You may already know these things, but I find a lot of people get messed up with them when working with XML and HTML.
If your HTML contains the following text: abc<BR>def
then your browser display will look like this:
abc
def
However, if your HTML contains this: abc<BR>def
then your browser display will look like this:
abc<BR>def
Now, if your XML contains this:
<GstBk:Comments>Line1
Line2
</GstBk:Comments>
then you have what is known as "mixed content", which means a mixture of text and elements. You have two text nodes and you have a BR element.
But if your XML contains this:
<GstBk:Comments>Line1
<BR/>Line2
</GstBk:Comments>
then your GstBk:Comments element only contains a single text node.
Hope this helps you to figure out what's going on. -
HT5839 Save files under Tags without single virtual location
Today I was wondering about the OS X Mavericks tagging system. Sometimes I try to save a file, such as an image, in the TAGS section of the finder window in Mac OS X. As soon as I do so, because it is not a location rather a search algorithm that searches for files in multiple locations, because the computer to hang. I wanted to ask if you can actually save the file as a tag,and if not then why allow it appear available in the save dialog pop-up window.it appears within the save dialog interface, and so I tried it out various times. My computer just hangs and Finder becomes unusable.my Logic says, it cannot be possible to save the file under tags, unless OS X has programmed itself to save the files and SQL data instead of as an actual file.
This would require database settings and reprogramming into the OS X Mavericks system. I should definitely think about saving files under the tag section,if it is possible, and how one will achieve it as a programmer and developer. It would be an excellent way to file things without any necessity, for knowing where they are. So long as one saves every file with the right tags. Of course one could then save under a main tag and add more tags in the text dialogue interface which pops up when you are saving a file.
Or one could remove it from the save dialogue interface completely, to avoid crashes and confusion.attack is not a particular location but then again neither is a folder really. Both folders and tags are just virtual binary code translated into pixels on the screen. I therefore do not really see any difference between an album, a folder, a photo stream, or attack or I could take very. To the binary system they are just different waysof presenting virtual data in a visual way so that humans can interface with it.but tags can be added to a file as more than one tag. And this allows for multiple terminologies and search filters to be used when searching for a file. It allows for cross reference searching.
Tagging files in OSX is an art and a science, which one must learn and have a very strict regimen with oneself, in order to achieve a truly organized filing system. but, if you truly must of this ought and I strict enough with yourself to organize your tags properly, you can have an extremely powerful way of accessing your data without having to have too many folders and visual interfaces to find them with. This requires that you manually name and tag all of your files of costs which if you work with hundreds of files a day is rather tiresome.
but that is like planting a field of flowers, you must plod along every day until you have thousands of them and it becomes enough to be called a field. Once you have planted plenty, and that means you have created lots of tags, and have the discipline to name every saved file under is relevant tags, then finally, once you have thousands of files, this will become an indispensable way of arranging and searching for your work filesThanks for input. The price changes occur infrequently - Norton/ Symantec software. Not a lot of sku's to make a database plus page is flowery and does not need to be searched on by the user. Links connect directly to Norton. Now I make the changes on one page and "Save as" to the others but my button links fail. It is curious CS4 would make the change from images of the link in the actual link box in html. In view it works fine but on site buttons are not visible?
-
Using BEA tag libraries for XML/XSL translation
Hi, I am new to using XML within Weblogic and have been struggling with using the
built in JSP tags to transform XML into HTML. When I try to display the jsp page,
I get the following error message in the browser:
Only one top level element is allowed in an XML document. Error processing resource
'http://localhost:7001/plims/testXML.jsp'. Line 20, Position 12
</style> script tag removed <!--- script language="javascript1.2"> -----------^
Here is the jsp code :
<%@ taglib uri="xmlx.tld" prefix="x"%>
<%
String myMedia = "html";
String content = new String();
%>
<x:xslt media="<%=myMedia%>">
<x:xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
<tree> </tree>
</x:xml>
<x:stylesheet media="html" uri="qjTree.xsl"/>
</x:xslt>
I used the instructions on BEA's help docs to configure the app to use the tag
libraries, but it didnt work.
http://e-docs.bea.com/wls/docs70/xml/xml_apps.html#1082507
I am using a very simple xml tree for now to keep things simple. Any helping in
finding a solution would be much appreciatedMake sure you have the tld files and all the related tag libraries
available.
SP
"Rachel McCarthy" <[email protected]> wrote in message
news:[email protected]..
>
Hi, I am new to using XML within Weblogic and have been struggling withusing the
built in JSP tags to transform XML into HTML. When I try to display thejsp page,
I get the following error message in the browser:
Only one top level element is allowed in an XML document. Error processingresource
'http://localhost:7001/plims/testXML.jsp'. Line 20, Position 12
</style> script tag removed <!--- scriptlanguage="javascript1.2"> -----------^
>
>
>
>
Here is the jsp code :
<%@ taglib uri="xmlx.tld" prefix="x"%>
<%
String myMedia = "html";
String content = new String();
%>
<x:xslt media="<%=myMedia%>">
<x:xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
<tree> </tree>
</x:xml>
<x:stylesheet media="html" uri="qjTree.xsl"/>
</x:xslt>
I used the instructions on BEA's help docs to configure the app to use thetag
libraries, but it didnt work.
http://e-docs.bea.com/wls/docs70/xml/xml_apps.html#1082507
I am using a very simple xml tree for now to keep things simple. Anyhelping in
finding a solution would be much appreciated -
Unused xml tags being printed in xsl transformation
Hi,
I'm just starting out with xslt, and I am have a small problem with unused data being added into the html output from an xsl transformation. The data set is very small and the transdorm is not complicated, but when I do a
<xsl:template match="aa/bb/cc">
<title><xsl:value-of select"."/></title>
</xsl:template>
cc will be used as the title, but aa/bb/dd and aa/bb/ee will be printed to the output stream directly after the </title> as standard text.
<title>cc</title>ddee
I have include the xml, the transform and the html source recieved at the end of this mail.
Any help would be appreciated.
Cheers
Simon
<webpage>
<project>
<title>Katrin</title>
<version>Version 1.0</version>
<start_date>01/01/2003</start_date>
</project>
</webpage>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="html"/>
<!-- template rule matching source root element -->
<xsl:template match="/">
<html>
<head>
<xsl:apply-templates mode="head"/>
</head>
<!-- Construct main body of page -->
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<!-- Head -->
<xsl:template match="webpage/project/title" mode="head">
<title><xsl:value-of select="."/></title>
</xsl:template>
<!-- Body -->
<xsl:template match="webpage/project/title">
<h1><xsl:value-of select="."/></h1>
</xsl:template>
<xsl:template match="webpage/project/version">
<div align="right" style="font-size : 8pt; font-family : Times serif; padding-top : 4; padding-bottom : 4; color : red"><xsl:value-of select="."/></div>
</xsl:template>
<xsl:template match="webpage/project/start_date">
<div align="left" style="font-size : 8pt; font-family : Times serif; padding-top : 4; padding-bottom : 4; color : blue"><xsl:value-of select="."/></div>
</xsl:template>
</xsl:stylesheet>
<html xmlns:fo="http://www.w3.org/1999/XSL/Format">
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Katrin</title>Version 0.101/01/2003</head>
<body>
<h1>Katrin</h1>
<div align="right" style="font-size : 8pt; font-family : Times serif; padding-top : 4; padding-bottom : 4; color : red">Version 0.1</div>
<div align="left" style="font-size : 8pt; font-family : Times serif; padding-top : 4; padding-bottom : 4; color : blue">01/01/2003</div>
</body>
</html>You had a couple of errors in your xsl. It should read something like:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>
<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>
<xsl:template match="*|/">
<html>
<head><title>Greeting</title></head>
<body>Words of greeting:
<b><i><u><xsl:value-of select="greeting"/></u></i></b>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
This produces the result you are looking for:
<html>
<head>
<title>Greeting</title>
</head>
<body>Words of greeting:
<br>
<b>
<i>
<u>Hello World.</u>
</i>
</b>
</body>
</html>
null -
Export tags without a class for a cleaner code
Hello all!
Am I losing something here or InDesign CC always adds a class to your paragragh or character style tag? There's no way to export, for instance, a bold character style simply as <b> and not <b class="bold">? I'm pretty sure it was possible in CS6.Hi,
You are right that this feature was available in previous versions but since "Emit CSS" functionality was added, the behavior changed and we started exporting classes always in out EPUB output. We have heard from a lot of users about this feedback and we will keep this request at priority while addressing EPUB specific issues.
Regards,
Pooja
InDesign Engineering -
Custom tags:without package structure,showing error
Hi evrybdy
While making a simple jsp using custom tags,if i m keeping my java file wothout package structure it is giving jasper exception.On the contrary if i m keeping it inside pckg structure it is working properly.Any idea why so???????This reason would be why so: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4361575
Basically you can't access classes in the 'unnamed' package from classes which are in a 'named' package.
JSPs always compile into servlets in a 'named' package.
Your classes should always be in a package structure. -
Remove HTML tags without REPLACE
Hello,
I have a simple query that returns some data, but the result could have html tags. I don't want to keep using REPLACE because sometimes I receive a tag that is not included in the REPLACE function. Is there is a way to do that, may be using some XML code?
Thank youWith a CTE
like that
ALTER FUNCTION dbo.fnHtmlStripFreeLight
@inputStringCleaned VARCHAR(MAX) /*,@inputStringCleaned2 VARCHAR(MAX),@inputStringCleaned3 VARCHAR(MAX),
@inputStringCleaned4 VARCHAR(MAX),@inputStringCleaned5 VARCHAR(MAX),
@inputStringCleaned6 VARCHAR(MAX),
@inputStringCleaned7 VARCHAR(MAX),
@inputStringCleaned8 VARCHAR(MAX),@inputStringCleaned9 VARCHAR(MAX), @inputStringCleaned10 VARCHAR(MAX),@inputStringCleaned11 VARCHAR(MAX),
@inputStringCleaned12 VARCHAR(MAX),
@inputStringCleaned13 VARCHAR(MAX), @inputStringCleaned14 VARCHAR(MAX)*/
RETURNS @freeHtml TABLE (
col1 VARCHAR(MAX)/*,col2 VARCHAR(MAX),col3 VARCHAR(MAX),col4 VARCHAR(MAX),col5 VARCHAR(MAX),
col6 VARCHAR(MAX),
col7 VARCHAR(MAX),col8 VARCHAR(MAX),col9 VARCHAR(MAX),
col10 VARCHAR(MAX),
col11 VARCHAR(MAX), col12 VARCHAR(MAX),
col13 VARCHAR(MAX),col14 VARCHAR(MAX)*/
AS
BEGIN
DECLARE @output VARCHAR(MAX)=''/*, @output2 VARCHAR(MAX)='',@output3 VARCHAR(MAX)='', @output4 VARCHAR(MAX)='',@output5 VARCHAR(MAX)='', @output6 VARCHAR(MAX)='',@output7 VARCHAR(MAX)=''
DECLARE @output8 VARCHAR(MAX)='', @output9 VARCHAR(MAX)='',@output10 VARCHAR(MAX)='', @output11 VARCHAR(MAX)='',@output12 VARCHAR(MAX)='', @output13 VARCHAR(MAX)='',@output14 VARCHAR(MAX)=''*/
DECLARE @max_recursion INT
SELECT @max_recursion =MAX(dim)
FROM (SELECT dim
FROM (VALUES (LEN(@inputStringCleaned))/*,(LEN(@inputStringCleaned2 )),
(LEN( @inputStringCleaned3)),(LEN(@inputStringCleaned4)),(LEN(@inputStringCleaned5)),(LEN(@inputStringCleaned6)),(LEN(@inputStringCleaned7)),(LEN(@inputStringCleaned8))
,(LEN(@inputStringCleaned9)),(LEN(@inputStringCleaned10)),(LEN(@inputStringCleaned11)),(LEN(@inputStringCleaned12)),(LEN(@inputStringCleaned13)),(LEN( @inputStringCleaned14))*/
) as L (dim)
) as Q
;WITH Split
AS(
SELECT
1 AS stpos,
SUBSTRING(@inputStringCleaned,1,1) as Stream1,
SUBSTRING(@inputStringCleaned,2,1) as StreamNext,
CASE WHEN SUBSTRING(@inputStringCleaned,1,1) IN ('<','>') THEN 0 ELSE 1 END as isShow1
/* SUBSTRING(@inputStringCleaned2,1,1) as Stream2,
SUBSTRING(@inputStringCleaned2,2,1) as StreamNext2,
CASE WHEN SUBSTRING(@inputStringCleaned2,1,1) IN ('<','>') THEN 0 ELSE 1 END as isShow2*/
UNION ALL
SELECT
stpos+1, -- premier flux
StreamNext,
SUBSTRING(@inputStringCleaned,stpos+2,1),
CASE WHEN StreamNext IN ('<','>') THEN 0
WHEN Stream1 IN ('>') AND isShow1 = 0 THEN 1
WHEN Stream1 NOT IN ('<','>') AND isShow1 = 1 THEN 1 ELSE 0 END,
-- second flux
/* StreamNext2,
SUBSTRING(@inputStringCleaned2,stpos+2,1)
CASE WHEN StreamNext2 IN ('<','>') THEN 0
WHEN Stream2 IN ('>') AND isShow2 = 0 THEN 1
WHEN Stream2 NOT IN ('<','>') AND isShow2 = 1 THEN 1 ELSE 0 END */
FROM Split
WHERE stpos <= @max_recursion
SELECT @output+= CASE WHEN isShow1 = 1 THEN Stream1 ELSE '' END FROM Split OPTION (MAXRECURSION 8001)
SELECT @output = REPLACE(@output, ' ','')
INSERT INTO @freeHtml
SELECT CASE WHEN @inputStringCleaned IS NULL THEN CAST(NULL as VARCHAR) ELSE @output END
RETURN
END -
DOMParser and tags without value
Hi all,
I have a class that reads and rights a structure do XML.
I convert all the Structure to a String and pass it to DomParser to create Valid XML.
The problem is when I have something like <tag></tag> in the String output, the DOMParser converts this to just </tag> producing an incorrect output and impossible to read later.
Does anyone know how to solve this situation?
Thanks in advanceIgnore this question just done a workaround ...
Best Regards
A
Maybe you are looking for
-
Change recon account and transfer of Open items from Old recon a/c to New recon a/c.
Hi Gurus, User want to change recon account for some customer and also wants the open items to be transferred to new recon from old recon account. We follow the following process: Create a New GL Account for Adjustment Postings Change the Customer M
-
Excel with powershell and this big problem of locale
Hi Folks, I'm getting C R A Z Y with this Excel/Powershell Stuff... MY display language is EN My input language is fr_CH the following code : function Invoke([object]$m, [string]$method, $parameters) $m.PSBase.GetType().InvokeMember( $method, [Refle
-
Decimal points in quantity more than 3 digits
Hi I know that decimal point in quantity cannot be longer than 3 digitis - it's structure of field/ table but we have this requirement from pharma company and it's a kind of general requirement of pharma, life science, etc so I wonder how do we handl
-
Hi! Simple question - I think. I'm attempting to insert several photos into one shape in InDesign CS4. I'm sure it's something really simple but I'm just not figuring it out. Please help!! Thanks in advance!
-
Siebel 7.8 and Oracle 10g R2 Upgrade
We are in process of Upgrading Oracle to 10g R2 i.e. 10.2.0.4. from 9.2.0.8 with Siebel 7.8 being our Current Application Version? I would be thankful to people if they can advice me the Issue they came across and how did they fixed ? I have reviewed