OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Default XSL with XML

[ Lists Home | Date Index | Thread Index ]

At 2002-03-07 14:33 -0500, Sevigny Benoît wrote:
>For my needs,
>I want a stylesheet that will simply present me the content of my
>document. I don't want to see my tags. If I could have a stylesheet that
>will do that it will help me a lot.  If that stylesheet could make a
>return line after each tags it will be a bonus for me.

We have a free resource in our resource library that is an XSLT stylesheet 
to expose the XPath data model of an instance(follow the "Resource library" 
link at the top of our home page noted below, the third entry in the list, 
and the stylesheet is the third resource in the list).

You may find what you need by modifying that stylesheet.

I hope this helps.

........................ Ken

X:\samp>type partlist.xml
<?xml version="1.0"?>
<!--start-->
<part-list bin="78"><part nbr="A123">bolt</part>
<part nbr="B456">washer</part><warn type="refill"/>
<!--end of parts--><?cursor   blink  under?>
</part-list>

X:\samp>saxon partlist.xml z:\data\kendata\dev\showtree\showtree.xsl
SHOWTREE Stylesheet
Processor: SAXON 6.5 from Michael Kay
1  Comment: {start}
2  Element 'part-list':
2.A  Attribute 'bin': {78}
2.1  Element 'part' (part-list):
2.1.A  Attribute 'nbr': {A123}
2.1.1  Text (part-list,part): {bolt}
2.2  Text (part-list): {
}
2.3  Element 'part' (part-list):
2.3.A  Attribute 'nbr': {B456}
2.3.1  Text (part-list,part): {washer}
2.4  Element 'warn' (part-list):
2.4.A  Attribute 'type': {refill}
2.5  Text (part-list): {
}
2.6  Comment (part-list): {end of parts}
2.7  Proc. Inst. 'cursor' (part-list): {blink  under}
2.8  Text (part-list): {
}
X:\samp>


--
Upcoming: 3-days XSLT/XPath and/or 2-days XSLFO: June 17-21, 2002
-       : 3-days XML Information Modeling: July 31-August 2, 2002

G. Ken Holman                mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.         http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995)
ISBN 0-13-065196-6                        Definitive XSLT & XPath
ISBN 1-894049-08-X  Practical Transformation Using XSLT and XPath
ISBN 1-894049-07-1               Practical Formatting Using XSLFO
XSL/XML/DSSSL/SGML/OmniMark services, books(electronic, printed),
articles, training(instructor-live,Internet-live,web/CD,licensed)
Next public training:   2002-03-01,04,05,06,11,15,04-08,09,10,11,
-              05-06,07,09,10,20,06-04,07,10,11,13,14,17,20,07-31





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS