GET YOUR SUBSCRIPT & SUPERSCRIPT FONTS HERE
Subscript and Superscript in Flash.html
SubscriptandSuperscriptinFlashActionscript.html
SubscriptandSuperscriptinFlashActionscriptHTML.html
flash-professional_subscript-numbers.html
index.html
repalce_subscript_superscript_flash.html
see a webcam girl.html
sitemap.html
subscript superscript in texatrea flash.html
subscript superscript in xml and flash.html
subscript superscript in xml.html
subscript tags superscript flash textarea actionscript.html
subscript_flash.html
subscript_flash_cs3_cs4.html
subscript_superscript in_xml_flash_actionscript.html
subscript_superscript in_xml_flash_actionscript_html.html
subscript_superscript.html
superscripd_subscript_in_actionscript_xml_flash.html
superscript flash actionscript adobe.html
webcam nude.html

GET YOUR SUBSCRIPT & SUPERSCRIPT FONTS HERE

How to use Subscript & Superscript in dynamic and input text field in Flash?

Issue: <sub> & <sup> tags are not supported by Flash. Here is example.swf:

Download Subscript & Superscript Fonts


Thanks.

Go to Top of Page

joefawcett
Advanced Member

United Kingdom
2668 Posts

Posted - 03/02/2006 : 03:46:32 AM Show Profile Visit joefawcett's Homepage Reply with Quote
If you want to display the XML, for instance using HTML, then you need to write a transform or maybe adjust the one that is currently being used.

At the moment the DisplayName element can contain PCDATA, as evinced by:

<!ELEMENT DisplayName (#PCDATA)>

This means its contents will be treated as markup so you should be able to do:

<DisplayName>Perks<sup>®</sup> Overview</DisplayName>

If this is causing an error then I suggest you try to get hold of the XSLT used to transform the document. If you can post it here then perhaps we can see how to modify it.

I'm sorry that you were upset by some of our comments but as I said responders on these forums give of their free time and when people shout that something is urgent it tends to irritate me.

In general it helps when posting to spend a few moments compiling your question so that all the main evidence is available along with a clear description of the problem.

If you rang the world's leading expert on XML and said
Superscript in XML
Dick Margulis margulisd at comcast.net
Tue Apr 25 06:10:28 MDT 2006

* Previous message: Superscript in XML
* Next message: Have you ever felt the need to create a new word?
* Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

Manisha Khurana wrote:
>
> Can anyone suggest me a solution of superscript and subscript in XML?
> How can I show superscript and subscript through XML? I shall be obliged.
>

See http://www.w3.org/TR/REC-html40/struct/text.html Search for the word
superscript on that long page.

If you can output html directly, just use <sup></sup> tags. The other
approach is to use a Unicode font that supports range 2070 to 2079
(superscripts) and 2080 to 2089 (subscripts), then output the
appropriate character codes.

Found the solution, it is &#8038;

It's at:

http://jroller.com/page/xueyunfeng/20050609#html_unicode_special_symbols
tsuji (TechnicalUser)
9 Jan 06 10:43
This too may furnish further info.
http://www.fileformat.info/info/unicode/category/No/list.htm
fawkes (TechnicalUser)
9 Jan 06 11:42
My original solution works when viewed in firefox but not ie so ignore it.

I've checked out jsuji's link and it gives me something similar.

It is the encoding in my xml that is causing the probelm?

CODE
<?xml version="1.0" encoding="UTF-8"?>
tsuji (TechnicalUser)
10 Jan 06 3:50
Could you show the concrete instance where it fails?
fawkes (TechnicalUser)
11 Jan 06 5:35
A sample of xml is:

CODE

<?xml version="1.0" encoding="UTF-8"?>
<fg:DimensionUnits xmlns="http://www.mysite.com/ns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:fg="http://www.mysite.com/ns" xsi:schemaLocation="http://www.mysite.com/ns DimensionUnits.xsd">
<fg:Type>Moment Of Inertia</fg:Type>
<fg:Units>
<fg:Unit>
<fg:Name>millimetre&#8308;</fg:Name>
<fg:Abbreviation>mm&#8308;</fg:Abbreviation>
<fg:Factor>1e-12</fg:Factor>
<fg:IsMetric>true</fg:IsMetric>
<fg:IsSIUnit>false</fg:IsSIUnit>
</fg:Unit>
</fg:Units>
</fg:DimensionUnits>

I haven't included the schema but I don't think you need it.

If you open this xml in firefox you see a subscript 4, if you open it in ie it doesn't show.
tsuji (TechnicalUser)
11 Jan 06 5:55
Thanks for the demo. But, it shows up all rights in ie as well on me, or am I missing something?
fawkes (TechnicalUser)
11 Jan 06 6:51
When I try and show it in ie6 I get square rectangles instead of the superscript 4.

I'm using windows xp pro. Is it something I've got on my machine? Or something I'm missing from my machine?

When I open the xml file in ie I get a blocked content message, could this be the problem?

I'm also reading from the xml file into a vb.net combo box and it isn't reading the superscript 4 character, again I just get a square rectangle instead.
tsuji (TechnicalUser)
11 Jan 06 9:23
Make sure you do not have your own stylesheet on the ie accessibility setting. Otherwise, I have no idea. It displays just fine for my archaic system with ie6, and I would be surprised xp be so intrusive in this aspect!
fawkes (TechnicalUser)
12 Jan 06 8:44
I don't understand the following

Quote:

Make sure you do not have your own stylesheet on the ie accessibility setting

tsuji (TechnicalUser)
12 Jan 06 9:11
I don't think you have it if you do not get it because it is a somewhat sophisticated tweak. It is in option-accessibility setting of ie.
fawkes (TechnicalUser)
13 Jan 06 3:56
I think it is a font issue.
tsuji (TechnicalUser)
13 Jan 06 5:27
I have nothing more to add...
Hi,

I am not able to use superscript tag in xml .
Kindly, let me know how to use the same .

Thanks,
Bhavana.

mhkay
Advanced Member

United Kingdom
3070 Posts

Posted - 02/28/2006 : 05:42:35 AM Show Profile Visit mhkay's Homepage Reply with Quote
I don't think you have understood XML. You can use any tags you like, for example

<superscript>2</superscript>

or

<sup>2</sup>

if you prefer.

What the tags mean is up to your application. If you want this to cause 2 to be rendered as a superscript, then you will need to convert the XML into something like XHTML or XSL-FO or SVG that is understood by your display or printing software. This transformation is usually done using XSLT.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Go to Top of Page

Bhavana.t
Starting Member

4 Posts

Posted - 02/28/2006 : 11:15:38 PM Show Profile Reply with Quote
I just know the basics of xml...

We have tried displaying registered trademark as superscript by placing sup tag as an attribute in DTD.
But it is showing Internal Server Error.

I dont know how to convert XML to XSLT.

Please reply ASAP.

FYI: we are using weblogic server 7.04 .

Go to Top of Page

joefawcett
Advanced Member

United Kingdom
2668 Posts

Posted - 03/01/2006 : 03:39:55 AM Show Profile Visit joefawcett's Homepage Reply with Quote
1) Show us a sample of your source XML.
2) Show a sample of what output you desire.
3) Show any efforts to date.
4) If you want replies ASAP pay for professional help, if you want pro bono help you take what you get at the responders own speed.

As Michael stated XML is a representation of data with NO display properties. If you want to show a superscript in HTML, which does display to users, then you use a standard HTML sup tag around the characters.

--

Joe (Microsoft MVP - XML)
Go to Top of Page

mhkay
Advanced Member

United Kingdom
3070 Posts

Posted - 03/01/2006 : 04:21:27 AM Show Profile Visit mhkay's Homepage Reply with Quote
I think you need to read some books and get an understanding of the basic concepts. I can't teach you that in replies to forum messages.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Go to Top of Page

Bhavana.t
Starting Member

4 Posts

Posted - 03/02/2006 : 02:01:21 AM Show Profile Reply with Quote
Thanks for your response.
As requested, I am sending the Code

I suppose to get the Superscript as "Perks® Overview"

***************** DTD File for the same **********************
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT NavigationModel (NavigationGroup+)>
<!-- the NavigationGroup represents a subset of the site that has a unique set of global navigation.
Currenty, this is expected to be one of the following
pacificare (includes SecureHorizons)
womenshealth
corporate (includes Investor Relations, Employment, Press Releases etc)
pacificare latino

isP13n : true or false - This indicates whether the Pages displayed in a NavigationGroup are filtered based on the NavigationP13nService

defaultPageGroupName - this indicates the "home" page Group within a NavigationGroup

-->
<!ELEMENT NavigationGroup (IsP13N, PageGroup+, DefaultPageGroupName?)>
<!ATTLIST NavigationGroup
name CDATA #REQUIRED
>
<!-- isP13n : true or false - This indicates whether the Pages displayed in a NavigationGroup are filtered based on the NavigationPersonalizationService -->
<!ELEMENT IsP13N (#PCDATA)>
<!-- the defaultPageGroupName indicates the "home" page Group within a NavigationGroup -->
<!ELEMENT DefaultPageGroupName (#PCDATA)>
<!-- The PageGroup defines a collection of pages that are rendered as menu items in the pull-down menu that appears when mouse-ing over a tab in the top-nav menu
-->
<!ELEMENT PageGroup (DisplayName, DisplayOrder, IsHidden?, DefaultImageURL?, SelectedImageURL?, RolloverImageURL?, ImageWidth?, Page+, DefaultPageName?)>
<!ATTLIST PageGroup
name CDATA #REQUIRED
>
<!-- The Page represents the logical Page that is displayed when the user selects a menu item from a pull-down menu from the top-nav menu.
PortalPageName - this is the name of the underlying WLP Portal Page - this is generallly it is 1-1 with the logical Page's name.
-->
<!ELEMENT Page (PortalPageName, DisplayName, DisplayOrder, IsHidden?, RootNavigationNode)>
<!ATTLIST Page
name CDATA #REQUIRED
>
<!-- The DefaultPageName indicates the Page within the PageGroup that will be navigated to when the PageGroup tab is selected in the top-nav bar -->
<!-- If this is not configured there will not be an action when the user clicks on the tab -->
<!ELEMENT DefaultPageName (#PCDATA)>
<!-- The RootNavigationNode represents the root of tree of NavigationNodes representing the left-nav menu.
The RootNavigationNode is not rendered in the left-nav menu.
The Action associated with the RootNavigationNode is the default Action for the logical Page to which the RootNavigationNode is related
-->
<!ELEMENT RootNavigationNode (Action?, NavigationNode*)>
<!-- The NavigationNode represents a item in the left-nav menu -->
<!ELEMENT NavigationNode (DisplayName, DisplayOrder, IsHidden?, Action?, NavigationNode*)>
<!ATTLIST NavigationNode
name CDATA #REQUIRED
>
<!-- Action represents the webflow event that is triggered when selecting a left-nav menu item.
For example, when performing a typical content query the action will be to invoke the generic content display portlet with the link.viewArticle event.

PortletName This is the name of the target portlet to which the PortletEvent is posted.
Typical values include
contentdisplay - the content display portlet handles rendering articles and handling IFRAME based functionality

PortletEvent This is the webflow event that will be posted to the Portlet named by PortletName.
Typical values include
link.viewArticle - this is the event that is posted into the contentdisplay portlet to trigger a article content query
link.iframe - this is the event that is posted into the contentdisplay portlet to trigger an iframe

The properties associated with an action provide a means of maintaining context informaiton that can be used by the target portlet.
Each property consists of a name and a value. The legal names and the expected values are determined by the portlet implementation.
However, in the DTD we have limited the name to the values expected by the implementation of the 'contentdisplay' portlet. This will need to be
modified later as new portlets are added that make use of these properties.


The Content Display Portlet - displaying an article
_______________________________________

The generic content display portlet supports the display of content based on a content query. The content query is driven by values maintained
in the PhsSession (defined in the EBCC) and to properties associated with the navigation node.

To invoke the contentdisplay portlet to perform a content query the action should be defined as follows
<Action>
<PortletName>contentdisplay</PortletName>
<PortletEvent>link.viewArticle</PortletEvent>
<Properties>
</Properties>
</Action>

Additionally, properties should be set-up in the following way

Property Name Description
____________ _________
ContentSelector This property is the name of the Content Selector defined in the Portal EBCC that will be used by when performing a content query.
The name of the content selector is a mnemonic which follows the content meta-data that should be supplied to the query.
The mnemonics are based on all of the permutations of CUPS where C = Contentdescriptor, U = Utility, p = Product, s = Segment, e.g.

contentdescriptor value description
___________________ _________
CContentSelector contentdescriptor only
CUContentSelector contentdescriptor and utility
CUPContentSelector contentdescriptor, utility and product
CUPSContentSelector contentdescriptor, utilty, product and segment
CPContentSelector contentdescriptor and product
ContentIDContentSelector content ID using the ContentID property
etc

In addition, to this explict query parameters the Content Display portlet will also add implicit parameters based on Product, Audience and Region of the
user executing the query. These are maintained in the HTTP Session and populated either by the Gateway page or after login from SiteMinder.

There are also content selector that disregard the "PAR" values. These are specifically for non-personalized navigation groups.

CorporateContentSelector This content selector expects the content descriptor to be defined on the navigation node but hardcodes the region
to '|Corporate|'

WHSContentSelector This retrieves content for the Women's Healtth Solutions site. The content selector is driven by the content descriptor
defined on the navigation node and hardcodes segment to 'Womens Health Solutions'.

ContentDescriptor This property defines the value of the "Content Descriptor" content meta-data attribute
Product This property defines the value of the "Property" content meta-data attribute
Utility This property defines the value of the "Utility" content meta-data attribute
Segment This property defines the value of the "Segment" content meta-data attribute
ContentID This property defines the value io the "id" content meta-data which holds the Vignette content id.
ContactUsType This is used be the Contact Us portlet to discriminate between different entry points.s
QIType This property identifies the type of QI Application - Core, Women, Hospital
MatrixType This property identifies the type of Selection Matrix displayed
OrderIDCardType This property identifies the type of Order ID card.
url The URL of an external web site - used by the popup portlet and contentdisplay portlet when generating
a pop-up frame or IFRAME respectively.
URLTransformer This property is the name of a class which will transform the 'url' property. Typically, this involves replacing
tokens in the 'url' property with literal values for product, audience and region. If the URLTransformer is not
supplied the popup and contentdisplay portlets use the URL directly.
URLTransformer class names include
com.phs.internet.cp.presentation.thirdparty.ConnectureURLTransformer
com.phs.internet.cp.presentation.thirdparty.GeoAccessURLTransformer
com.phs.internet.cp.presentation.thirdparty.MyHealth24URLTransformer
searchType Used by capitation search portlet
DefaultContentId This property is used for the generic content search portlet .
HideMenuFooter Property to decide whether to display menu bar and footer.
subsearchType Used by reports portlet
-->
<!ELEMENT Action (PortletName, PortletEvent?, Properties?)>
<!ELEMENT Properties (Property+)>
<!ELEMENT Property (#PCDATA)>
<!ATTLIST Property
name (ContentSelector | ContentDescriptor | Utility | Product | Segment | url | ContentID | ContactUsType | QIType | OrderIDCardType | URLTransformer | searchType | eventType | MatrixType | DefaultContentId | HideMenuFooter | subSearchType) #REQUIRED
value CDATA #REQUIRED
>
<!ELEMENT PortletEvent (#PCDATA)>
<!ELEMENT PortletName (#PCDATA)>
<!-- The DisplayName is used when rendering the UI components -->
<!ELEMENT DisplayName (#PCDATA)>
<!-- Display Order determines the left-right ordering of PageGroups, the top-bottom ordering of Pages within a PageGroup or top-bottom ordering of NavigationNode -->
<!ELEMENT DisplayOrder (#PCDATA)>
<!ELEMENT DefaultImageURL (#PCDATA)>
<!ELEMENT SelectedImageURL (#PCDATA)>
<!ELEMENT RolloverImageURL (#PCDATA)>
<!ELEMENT ImageWidth (#PCDATA)>
<!-- IsHidden is a flag that indicates whether the element should be appear in a navigation menu -->
<!ELEMENT IsHidden (#PCDATA)>
<!-- The Page represents the 2nd-level navigation. This is rendered as a menu item on a pull-down menu accessed from the tab in the top-nav -->
<!ELEMENT PortalPageName (#PCDATA)>
*********************** DTD File -End ******************************

XML File has the following Code :
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Brenda liu (PHS) -->
<PageGroup name="SpecialValues">
<Page name="SpecialValues.1">
<PortalPageName>WHSPerksContentDisplay</PortalPageName>
<DisplayName>Perks® Overview</DisplayName>
<DisplayOrder>1</DisplayOrder>
<RootNavigationNode>
<Action>
<PortletName>perkscontentdisplay</PortletName>
<PortletEvent>link.viewTeaserPage</PortletEvent>
<Properties>
<Property name="ContentSelector" value="CContentSelector"/>
<Property name="ContentDescriptor" value="Perks.Perks - Overview"/>
</Properties>
</Action>
</RootNavigationNode>
</Page>
<DefaultPageName>SpecialValues.1</DefaultPageName>
</PageGroup>
************************XML CODE END**********************

In the above XML Code, there is a field "<DisplayName>PacifiCare Perks® Overview</DisplayName>" where in we have to use the Superscript. ( to get Perks® Overview)

As you said we have used superscript tag around the charecters but it is showing "Internal server Error " in the application.

And I had project deadline I asked you to reply ASAP. Thats all.
This is the first time I have posted a query.

I really got hurt the way you both replied.

Hope you will get a solution for me.

 

Download Subscript & Superscript Fonts


GET YOUR SUBSCRIPT & SUPERSCRIPT FONTS HERE
Subscript and Superscript in Flash.html
SubscriptandSuperscriptinFlashActionscript.html
SubscriptandSuperscriptinFlashActionscriptHTML.html
flash-professional_subscript-numbers.html
index.html
repalce_subscript_superscript_flash.html
see a webcam girl.html
sitemap.html
subscript superscript in texatrea flash.html
subscript superscript in xml and flash.html
subscript superscript in xml.html
subscript tags superscript flash textarea actionscript.html
subscript_flash.html
subscript_flash_cs3_cs4.html
subscript_superscript in_xml_flash_actionscript.html
subscript_superscript in_xml_flash_actionscript_html.html
subscript_superscript.html
superscripd_subscript_in_actionscript_xml_flash.html
superscript flash actionscript adobe.html
webcam nude.html

GET YOUR SUBSCRIPT & SUPERSCRIPT FONTS HERE